implement PofSerializer, serialize/deserialize not invoked

Hello

I have an object of a certain type that I want to put in coherence and a serializer for the type that implements PofSerializer. When I put/get the subject to consistency, I expect to serialize/deserialize methods to call. But I breakpoints in the serializer class and I see that these overridden methods are not called. Can you help me with this? I'll put here the classes and configurations:
public class Item extends CacheItem {
     private String guid;
     private String cvc;
     
     public String getGuid() {
          return guid;
     }
     public void setGuid(String guid) {
          this.guid = guid;
     }
     public String getCvc() {
          return cvc;
     }
     public void setCvc(String cvc) {
          this.cvc = cvc;
     }
}
The serializer:
public class CacheItemSerializer implements PofSerializer {

     @Override
     public Object deserialize(PofReader reader) throws IOException {
          Item item = new CardCacheItem();
          item.setCvc(reader.readString(0));
          item.setGuid(reader.readString(1));
          item.setAcc(reader.readInt(2));
          item.setAm(reader.readDouble(3));
          reader.readRemainder();
          return item;
     }

     @Override
     public void serialize(PofWriter writer, Object o) throws IOException {
          Item item = (Item) o;
          writer.writeString(0, item.getCvc());
          writer.writeString(0, item.getGuid());
          writer.writeInt(2, item.getAcc());
          writer.writeDouble(3, item.getAm());
          writer.writeRemainder(null);
     }
} 
In these two methods above I breakpoints and that they are not called.

The pof file - config.xml:
<user-type-list>
      <include>coherence-pof-config.xml</include>

      <!-- User types must be above 1000 -->
      <user-type>
         <type-id>2001</type-id>
            <class-name>com.betfair.site.coherence.entities.Item</class-name>
            <serializer>
                <class-name>com.betfair.site.coherence.serializers.CacheItemSerializer</class-name>
            </serializer>
        </user-type>
    </user-type-list>
I initialize the cache like this:
CacheFactory.ensureCluster();
namedCache = CacheFactory.getCache(cacheName);
And then call put / get on the namedCache object.

I have the following arguments:
-Dtangosol.pof.enabled = true
-Dtangosol.pof.config = pof-config. XML
And in the console, I see it load the pof file.

It's on all the configurations that I do. Am I missing something?

Published by: user11200171 on January 25, 2013 13:03

Hello

just had a quick glance, but maybe your POF config is wrong. The name of the class that you want to serialize format POF is "Item", while the name in config POF you is 'CardCacheItem '.
Make sure that the class full name in the correct POF (i.e. your item class belongs to the com.betfair.site.coherence.entities package).

Also, make sure that your config POF file is used by your client and your server.

Please, I beg you, shout if it did not help.

Thank you

Tags: Fusion Middleware

Similar Questions

  • [ADF, JDev12.1.3] How to implement the serialization of a bean extended session? It is necessary here?

    Hallo,

    I have an extended session bean that contains some features and some simple attributes (integer and string).

    I have written/public class implements Serializable MySessionBean without the implementation of serialization (de).

    Now I would like to add a new attribute to a custom class to the bean, I defined: class contains attributes of simple type and some attributes in the hash table.

    HashMap implements serialization (de)... so this means that my class is serializable and while I do not worry (de) serialization?

    Thank you

    Federico

    Yes, some respond that in your other thread. The bean is serializable if each attribute, or if this is not it must be marked as transient. More info on http://www.javabeat.net/what-is-transient-keyword-in-java/

    Timo

  • paintBackground not invoked.

    Hello

    I've marked in previous thread as resolved, so I put my new problem here

    I have

    public class LocationMainScreen extends FullScreen
    {
        public LocationMainScreen()
        {
            super(DEFAULT_CLOSE | DEFAULT_MENU);
    
                  ....Some Fields...
        }
    
        private void update(){}
    
        protected void makeMenu(Menu menu, int instance)
        {
            super.makeMenu(menu, instance);
            menu.add(new MenuItem("Update", 10, 10)
            {
                public void run()
                {
                    update();
                }
            });
        }
    
        protected void paintBackground(Graphics graphics) {
            graphics.setBackgroundColor(Color.AQUA);
            graphics.clear();
            graphics.setColor(Color.PURPLE);
            graphics.drawRect(20, 20, 200, 200);
        }
    }
    

    and it works very well... I can see background and fields form builder...

    then I have similar class:

    public class WelcomeScreen extends FullScreen
    {
    
        public WelcomeScreen()
        {
            super(DEFAULT_CLOSE | DEFAULT_MENU);
    
                    ...Some fileds...
    
        }
    
        private void update()
        {
            LocationMainScreen ls = new LocationMainScreen();
            UiApplication.getUiApplication().pushScreen(ls);
        }
    
        protected void makeMenu(Menu menu, int instance)
        {
            super.makeMenu(menu, instance);
            menu.add(new MenuItem("Update", 10, 10)
            {
                public void run()
                {
                    update();
                }
            });
        }
    
        protected void paintBackground(Graphics g)
        {
            g.drawLine(0, 0, 60, 60);
        }
    

    but I'm getting

    WARNING! : method "WelcomeScreen.paintBackground (Graphics)" not invoked.

    How is it possibble?

    In fact, it seems that you can import the bad Graphics class. Check your import declarations and make sure that the following line is:

    import net.rim.device.api.ui.Graphics;
    
  • /Shell/action.XML:1748: could not invoke method cloneProjectBP

    Hello

    This error [/ shell / action.xml:1748: could not invoke method cloneProjectBP] creating new project using project creation BP. It happens after you import certain configuration of workflow BPs in shell model. But it works for the old model.

    Thank you

    You have to make a ticket with the support of Oracle to better understand this issue.

    Here are the patches from the past for this kind of question. But better to seek the support of the Oracle.

    (1) re - assign groups / assignees to each step in each workflow for all BP

    (2) check your permissions on the application BP project

    (3) check the WF design and the redeployment of BP all the new

    (4) check whether everything has been removed, which was used in queries, forms etc.

    (5) question with Table space so ask your DBA to increase the table space

    Thank you

    Samba

  • Solution ID put 201056033 implement but passes to not yet seen signin.html

    Customers have implemented the solution id 201056033 in WebLogic 9.2 MP3 patch 2 with PT 8.49.12.
    However, when changing signin.html for a website change is not seen. The browser cache is purged.
    Yes, the web server were brought down and back up.
    Yes, the solution is implemented. It does not work as described.

    The problem is:
    Able to change static HTML code and saw it by the user
    Browser. The web server is still caching the same static HTML page
    If the Solution ID told what to do which is documented in the
    solution will solve the problem.
    I need an answer to why the Solution ID does not work. I need
    in order to change statuc HTML and the web server serve
    output to the browser.




    WebLogic.XML has been updated as 201056033 solution, which is to add
    ' < resource-charging-check-dry > 0 < / resources-charging-check-dry > ':

    <>container-descriptor
    -< servlet-charging-check-dry > 1 < / servlet-charging-check-dry >
    < session compatible surveillance > true < / session-monitoring-enabled >
    < resource-charging-check-dry > 0 < / resources-charging-check-dry >
    < / container-descriptor >

    201056033 implemented. It does not solve the problem. Why is this not
    solve the problem?
    All thoughts, pls help.
    Thank you

    It does not work because this change causes only the server side to reload the resource. The browser has cached yet, so he ignores it.

    What you have to do is send the HTTP headers and the response that convinces the browser not to cache the resource. To do this is to implement a servlet filter that injects the appropriate HTTP headers to cause this.

    The code for the class might look like this (I have not declared in a package, but you should):

    --------------------------
    import java.io.IOException;

    to import javax.servlet.Filter;
    Import javax.servlet.FilterChain;
    Import javax.servlet.FilterConfig;
    to import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    to import javax.servlet.http.HttpServletResponse;

    / public class NoCachingFilter implements filter
    {
    private FilterConfig filterConfig = null;

    public void destroy()
    {
    this.filterConfig = null;
    }

    Public Sub init (FilterConfig arg0) throws ServletException
    {
    this.filterConfig = filterConfig;
    }

    public void doFilter (ServletRequest request,
    ServletResponse response,
    FilterChain chain)
    throws IOException, ServletException
    {
    HttpServletResponse HttpResponse = response (HttpServletResponse);
    httpResponse.setHeader ("Cache-Control", "non-cache");
    httpResponse.setDateHeader ("Expires", 0);
    httpResponse.setHeader ("Pragma", "No-cache" "");
    chain.doFilter (request, response);
    }
    }
    -------------------------

    You would report this filter to your web.xml like this file:
    --------------------------

    No filter caching
    Carousel. NoCachingFilter


    No filter caching
    /*

    --------------------------

  • listener class not invoked after deployment to weblogic Server

    I have a third party class (Quartz Scheduler) that implements ServletContextListener I added in my weblogic-application.xml and web.xml files as a listener. This class should support certain data in the server starts. But is not to be called.

    Technology used:

    Jdeveloper 11.1.2.3

    Weblogic 10.3.5

    Third party library:Quartz 1.6

    Everything works very well for Jdeveloper and the listener class get invoked when the application is deployed in the weblogic with the local computer. But the listener class is not called when the application deployment as .ear file in weblogic on external server server.

    Extract of weblogic-application.xml and web.xml files:

     <listener> <listener-class>scheduler.WebListener</listener-class> </listener>

    where scheduler is the name of packge and WebListener is the class of earphone

    -Important updates-

    Two projects consist of the application that I am trying to deploy the view and the model projects. For testing, I remove the model project of the application and deploy the application to a new. Quartz scheduler of work and in the listener class called WORK without model project and without interaction of the DB.

    I'll double check the data source with the web-logic Nothing seem wrong to me. I use the same source of data name in the application and as said before the application runs from JDeveloper

    I also checked the server logs. No exception or an error. demonstrate that the application is running in Active mode. But the listener class is not called weblogic when the model project is existing in the application where the DB interaction occurred.

    Any idea because of this as possible of this problem

    -------------------------------Update 2---------------------------------

    I think that this update will give any idea of the question. After clouse look in the server log after deployment, I found this line.

    NewSchedulerApplication-ViewController-context-root has context-root specified in application.xml: "NewSchedulerApplication-ViewController-context-root". The context-root specified in weblogic.xml: "NewSchedulerApplication-ViewController-context-root" will be ignored

    where NewSchedulerApplication is the name of the application.

    Finally, the issue is resolved.

    The problem is resolved after you delete the following jar files in my view-controller project: Api .jar-Trinity and the Trinity - impl.jar

  • Serialization does NOT

    I'm trying to serialize an object, but it does NOT work.

    Test class:
    public class Test{
         
         public void f() throws IOException{
              ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream("Untitled.out"));
              ObjectInputStream input = new ObjectInputStream(new FileInputStream("Untitled.out"));
              
              Test2 t2 = new Test2();
              
              output.writeObject(t2);
              output.close();
              
              Test2 newt2 = (Test2)input.readObject(t2);  // <-------------  This line is NOT working
              input.close();
         }
    
         public static void main(String[] args) throws IOException{
              Test ttt = new Test();
              ttt.f();
              
              System.out.println();
         }
    Class test2:
    import java.io.*;
    
    public class Test2 implements Serializable{
         int i = 1;
         String s = "Hello World";
    }
    Output:
    Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
    The method readObject() in the type ObjectInputStream is not applicable for the arguments (Test2)
    Does anyone know what is wrong with my code?
    output.close();
    ObjectInputStream input = new ObjectInputStream(new FileInputStream("Untitled.out")); // Move this line to after output.close()
    

    In addition, readObject takes no argument, so, no, the code you provided does not produce the output you claim it does, because they do not even compile.

    Edited by: jverd April 10, 2011 11:05

  • Wireless printer HP officejet 4500 has been implemented and it is not

    All of a sudden, my printer does not print unless it is connected by usb cable.  I lost my cd to install for the printer and can't seem to implement wireless again.  I am using cisco linksys e-series wireless. Any thoughts on what to do?  I think that I tried everything, but the wireless just repeat that the printer was not installed.

    All of a sudden, my printer does not print unless it is connected by usb cable.  I lost my cd to install the printer and no can't do implement wireless again.  I am using cisco linksys e-series wireless. Any thoughts on what to do?  I think that I tried everything, but the wireless just repeat that the printer was not installed.

    Hello

    Uninstall and reinstall your printer using the right drivers and installation on the HP Web site information.

    And there are some troubleshooting steps for her there too.

    There is more than one model for this shortened printer issue, you have given us.

    Choose the right pair of the list in the link

    http://WWW8.HP.com/us/en/support-search.HTML?tab=1#/qryterm=OfficeJet%204500%20Printer&search_searchtype=s-002

    Or you can also ask in the Forums of HP's Support.

    http://h30434.www3.HP.com/PSG/

    @@@@@@@@@@@@@@@@@@@@@@@

    This can also help you:

    "Solve printer problems.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    "Solve printer problems.

    In the upper right corner, select your operating system from the menu drop-down.

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-XP&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    See you soon.

  • Closing popup workflow throws exceptions of serialization is not the managed beans.

    JDev 11.1.1.6

    When a popup that is launched from a work stream is closed, this exception is thrown for a lot of managed beans I set:

    [< SessionBasedScopeMap > < writeScopeMap > ADFc: scope objects serialization failed (no serializable object), scope='viewScope[/WEB-INF/get-value-rules-task-flow.xml#get-value-rules-task-flow@GetValueRules]', objectKey = 'GetValueRuleBean', 'com.mtg.fwd.view.beans.GetValueRuleBean' = objectType.

    < SessionBasedScopeMap > < writeScopeMap >

    java.io.NotSerializableException: com.mtg.fwd.view.beans.GetValueRuleBean

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

    at oracle.adfinternal.controller.util.Utils.verifySerializable(Utils.java:341)

    at oracle.adfinternal.controller.state.SessionBasedScopeMap.writeScopeMap(SessionBasedScopeMap.java:122)

    at oracle.adfinternal.controller.state.ViewScope.writeObject(ViewScope.java:90)

    ...

    Related Posts: ADFC-0619: check failure of popup by taskflow application approval

    I tried setting the scope of control of data in the workflow for the popup shared and isolated, the behavior is the same.  I thought that the scope must be insulated for the tf of the pop-up window.  The data-control-scope on the calling workflow shared.

    No idea why?

    Thanks - Rudy

    I don't know if you can disable registration points. However, I'd go for the second option to bind components to ask the beans reach max.

    This way you don't have problems later and it is best practice not to tie UI components to the higher bean then ask. You can adopt the UIManager (https://blogs.oracle.com/groundside/entry/the_uimanager_pattern) model.

    Or use ComponentReference as shown here https://blogs.oracle.com/ATEAM_WEBCENTER/entry/rules_and_best_practices_for

    Timo

  • onMessage in MDB not invoked

    Hi all

    I followed all the instructions of the "Oracle® containers for J2EE Enterprise JavaBeans Developer Guide" to create an MDB that creates a queue.
    The onMessage() prints only a message.
    However my client, whenever I have send a message to the queue, the onMessage is not called.
    Below, I show the MDB, the client and the jms.xml file

    //////////////////////////////////////////
    Message Bean
    /////////////////////////////////////////

    () @MessageDriven
    activationConfig = {}
    @ActivationConfigProperty (propertyName = "messageListenerInterface", propertyValue = "javax.jms.MessageListener"),
    @ActivationConfigProperty (propertyName = "connectionFactoryJndiName", propertyValue ="jms/PayrollQueueConnectionFactory"),
    @ActivationConfigProperty (propertyName = "destinationName", propertyValue ="jms/payrollQueue"),
    @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
    @ActivationConfigProperty (propertyName = "messageSelector", propertyValue = "RECIPIENT ="MDB"")})
    / public class MessageDrivenEJBBean implements MessageListener {}


    public void onMessage (message Message) {}

    System.out.println ("MessageDrivenEJBBean: inside onMessage");

    }


    private static context getInitialContext() throws NamingException {}

    return new world;
    }

    }

    ///////////////////////////////
    Customer
    //////////////////////////////
    try {}

    Research of the queue
    System.out.println ("sendMessage started");
    Queue queue (tail) = context.lookup("jms/payrollQueue");
    System.out.println ("queue name =" + queue.getQueueName ());

    Research of the queue connection factory
    Factory qcf = (QueueConnectionFactory) context.lookup("jms/PayrollQueueConnectionFactory");
    QueueConnection qc = qcf.createQueueConnection ();
    QC. Start();
    QueueSession qs = qc.createQueueSession (false,
    Session.AUTO_ACKNOWLEDGE);


    SND QueueSender = qs.createSender (tail);
    MessageProducer producer = qs.createProducer (tail);
    Msg message = qs.createMessage ();
    msg.setJMSCorrelationID ("dimitris");
    SND. Send (MSG);
    Producer.Send (MSG);

    SND. Close();
    Producer.Close ();
    QS. Close();
    QC. Close();
    System.out.println ("completed sendMessage");

    }
    catch (Exception e) {}
    System.out.println ("exception = sendMessage" + e.getMessage ());
    }

    //////////////////////////////////////////////
    JMS.Xml
    /////////////////////////////////////////////
    < port server jms '9228' = >

    < queue name = "Tail of payroll" location = "jms/payrollQueue" > < / queue >
    < queue connection factory name = "Factory of connections pays" location = "jms/PayrollQueueConnectionFactory" > < / queue-connection-factory >

    < Log >
    "" < path = "... / log/payroll_jms.log" / >
    < / log >
    < / jms-Server >



    My client runs smoothly without exception. However I don't see the onMessage () to print the message that he has executed.
    Anyone can figure out where could be the problem?

    Hello

    I don't see that your client code defined corresponding message selector property.
    As

    msg.setStringProperty ("CONTAINER", "MDB");

  • On my iPhone, my photo library is taking 8 GB, but I deleted everything to implement and it is not the flow of shared photos. I don't know how to get rid of this storage

    On my iPhone, the library takes up 8GB, but I deleted everything to implement and my shared photo stream takes up no storage

    See this: why my iOS device say I more pictures I can find?

  • Wire not invoked in a custom field?

    It is a field of 2048 blocks game, I made an animation effect to show a new block to his manager, but he did not.

    package com.walkline.util.ui;
    
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    
    import com.walkline.util.Function;
    
    public class BlockField extends Field
    {
        private static Font _font;
        private static final int CORNER_RADIUS = 12;
    
        private Object LOCK = new Object();
        private int _value = 0;
        private int _fore_color = 0;
        private int _background_color = 0;
        private String _text = "";
        private int _animation_size = 0;
    
        public BlockField()
        {
            super(NON_FOCUSABLE);
    
            try {
                int fontSize = 7;
                FontFamily family = FontFamily.forName("Tahoma");
    
                if (Display.getWidth() > Display.getHeight())
                {
                    if (Display.getWidth() > 480) {fontSize = 9;}
                } else {
                    if (Display.getHeight() >= 480) {fontSize = 9;}
                }
    
                _font = family.getFont(Font.EXTRA_BOLD, fontSize, Ui.UNITS_pt);
            } catch (ClassNotFoundException e) {}
        }
    
        public void clear() {setValue(0);}
    
        public int getValue() {return _value;}
    
        public void setValue(int value)
        {
            _value = value;
            _text = ((value != 0) ? String.valueOf(value) : ""); 
    
            _fore_color = ((_value > 4) ? 0xf9f6f2 : 0x776e65);
            setBackgroundColor();
        }
    
        public void setBackgroundColor()
        {
            switch (_value)
            {
                case 0:
                    _background_color = 0xccc0b3;
                    break;
                case 2:
                    _background_color = 0xeee4da;
                    break;
                case 4:
                    _background_color = 0xeee0c8;
                    break;
                case 8:
                    _background_color = 0xf2b179;
                    break;
                case 16:
                    _background_color = 0xf59563;
                    break;
                case 32:
                    _background_color = 0xf67c5f;
                    break;
                case 64:
                    _background_color = 0xf65e3b;
                    break;
                case 128:
                    _background_color = 0xffedcf72;
                    break;
                case 256:
                    _background_color = 0xffedcc61;
                    break;
                case 512:
                    _background_color = 0xffedc850;
                    break;
                case 1024:
                    _background_color = 0xffedc53f;
                    break;
                case 2048:
                    _background_color = 0xffedc22e;
                    break;
                case 4096:
                    _background_color = 0xff3c39;
                    break;
            }
        }
    
        public void startRun()
        {
            Thread thread = new Thread(new Runnable()
            {
                public void run()
                {
                    while (_animation_size < getWidth());
                    {
                        Function.errorDialog("size: " + _animation_size + ", width: " + getWidth());    
    
                        try {
                            Thread.sleep(1000);
                        } catch (InterruptedException e) {new Exception("thread exception: " + e.toString());}
    
                        _animation_size += 10;
                        if (_animation_size > getWidth()) {_animation_size = getWidth();}
    
                        invalidate();
                    }
                }
            });
            thread.start();
        }
    
        protected void layout(int width, int height)
        {
            _animation_size = width / 2;
            setExtent(width, height);
        }
    
        protected void paint(Graphics g)
        {
            g.setColor(_fore_color);
            g.setFont(_font);
            g.drawText(_text, (getWidth() - _font.getAdvance(_text)) / 2, (getHeight() - _font.getHeight()) / 2);
        }
    
        protected void paintBackground(Graphics g)
        {
            g.setColor(_background_color);
            g.fillRoundRect((getWidth() - _animation_size) / 2, (getHeight() - _animation_size) / 2, _animation_size, _animation_size, CORNER_RADIUS, CORNER_RADIUS);
        }
    }
    

    In the startRun() method, I changed the size of the painting and call invalidate(), but it is similar to code not working in the run() block, someone knows how to make it effective?

    Here's the correct code, FYI

    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    
    public class BlockField extends Field
    {
        private static Font _font;
        private static final int CORNER_RADIUS = 12;
    
        private int _value = 0;
        private int _fore_color = 0;
        private int _background_color = 0;
        private String _text = "";
        private int _animation_size = 0;
        private boolean _need_animation = false;
    
        public BlockField()
        {
            super(NON_FOCUSABLE);
    
            try {
                int fontSize = 7;
                FontFamily family = FontFamily.forName("Tahoma");
    
                if (Display.getWidth() > Display.getHeight())
                {
                    if (Display.getWidth() > 480) {fontSize = 9;}
                } else {
                    if (Display.getHeight() >= 480) {fontSize = 9;}
                }
    
                _font = family.getFont(Font.EXTRA_BOLD, fontSize, Ui.UNITS_pt);
            } catch (ClassNotFoundException e) {}
        }
    
        public void clear()
        {
            setValue(0);
            invalidate();
        }
    
        public void setAnimationMode(boolean value) {_need_animation = value;}
    
        public int getValue() {return _value;}
    
        public void setValue(int value)
        {
            _value = value;
            _text = ((_value != 0) ? String.valueOf(value) : "");
            _fore_color = ((_value > 4) ? 0xf9f6f2 : 0x776e65);
            _animation_size = getWidth() / 3;
    
            setBackgroundColor();
        }
    
        public void setBackgroundColor()
        {
            switch (_value)
            {
                case 0:
                    _background_color = 0xccc0b3;
                    break;
                case 2:
                    _background_color = 0xeee4da;
                    break;
                case 4:
                    _background_color = 0xeee0c8;
                    break;
                case 8:
                    _background_color = 0xf2b179;
                    break;
                case 16:
                    _background_color = 0xf59563;
                    break;
                case 32:
                    _background_color = 0xf67c5f;
                    break;
                case 64:
                    _background_color = 0xf65e3b;
                    break;
                case 128:
                    _background_color = 0xffedcf72;
                    break;
                case 256:
                    _background_color = 0xffedcc61;
                    break;
                case 512:
                    _background_color = 0xffedc850;
                    break;
                case 1024:
                    _background_color = 0xffedc53f;
                    break;
                case 2048:
                    _background_color = 0xffedc22e;
                    break;
                case 4096:
                    _background_color = 0xff3c39;
                    break;
            }
        }
    
        public synchronized void startAnimation()
        {
            new Thread()
            {
                public void run()
                {
                    while (_animation_size < getWidth())
                    {
                        try {
                            Thread.sleep(10);
    
                            _animation_size += 10;
                            if (_animation_size > getWidth()) {_animation_size = getWidth();}
    
                            synchronized (UiApplication.getEventLock()) {doPaint();}
                        } catch (InterruptedException e) {}
                    }
    
                    _need_animation = false;
                }
            }.start();
        }
    
        public synchronized void doPaint() {this.invalidate();}
    
        protected void layout(int width, int height) {setExtent(width, height);}
    
        protected void paint(Graphics g)
        {
            g.setColor(_fore_color);
            g.setFont(_font);
            g.drawText(_text, (getWidth() - _font.getAdvance(_text)) / 2, (getHeight() - _font.getHeight()) / 2);
        }
    
        protected void paintBackground(Graphics g)
        {
            g.setColor(_background_color);
    
            if (_need_animation)
            {
                g.fillRoundRect((getWidth() - _animation_size) / 2, (getHeight() - _animation_size) / 2, _animation_size, _animation_size, CORNER_RADIUS, CORNER_RADIUS);
            } else {
                g.fillRoundRect(0, 0, getWidth(), getHeight(), CORNER_RADIUS, CORNER_RADIUS);
            }
        }
    }
    
  • navigationUnclick() is sometimes not invoked

    In some cases, navigationUnclick() is not called when the user clicks and releases the trackball. This is reproducible with any device or Simulator I have test it with (8300, 8900, 9000, 9700).

    The use case is the following: the user clicks on an item in a ListField and expects a context menu is displayed if they release the ball within a fixed period of time. If they continue to hold the ball until the end of the period, the default action is executed.

    The navigationUnclick() event is necessary to stop the stopwatch and to display the context menu. However, it seems that the first time the user clicks on an element, the navigationUnclick() method is never called. On the presses, the method is called.

    The problem is that when certain operations occur, appear to us a 'busy indicator' top of the screen and turn off the painting during this period. In this case, the busy light interfered with the invocation of Navigation.unClick (). In this case turn off busy indicator has solved the problem.

  • Can I download Adobe Flash, but it is not actually install or implement. It does not go as far to ask permission of the admin and nothing.

    First asked me to update my flash from adobe, which I tried to do only to show there was a mistake and failed to install (or launch, I don't remember).  So I tried to uninstall adobe and reinstall.  Nothing.  I just get extra download of the update, but will not be installed.  So thenon can't know how to solve this problem.

    Troubleshoot Flash Player installation - Windows
    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Troubleshooting of stability and performance
    http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

    Adobe Flash Player not is not supported for playback in a 64-bit browser
    http://kb2.Adobe.com/CPS/000/6b3af6c9.html

    Flash Player Support Forum
    http://forums.Adobe.com/community/webplayers/flash_player

    Adobe Flash Player 10 fix for Windows XP, IE8, Firefox, ect.
    http://www.dslreports.com/Forum/r22361930-Adobe-Flash-Player-10-fix-for-WinXP-IE8-Firefox-ECT

    Download the latest version of Flash here:
    http://www.Adobe.com/support/flashplayer/downloads.html

    J W Stuart: http://www.pagestart.com

  • I just started learning the PLSQL and I wrote this code of implementation, but it does not work?

    CREATE TABLE LUKE

    (Department_nn varchar (12),)

    Number of Emp_idd (12) not null

    );

    insert into values Luke ("accounting", 11);

    insert into values Luke ('Sales', 00);

    insert into values of Luke (TI", 22);

    DECLARE

    CURSOR cur_luc is

    Select

    Department_nn,

    Emp_idd

    Luke;

    My_cur_luc cur_luc % ROWTYPE;

    BEGIN

    Open cur_luc;

    LOOP

    extraction cur_luc

    in My_cur_luc;

    DBMS_OUTPUT. Put_line ('Emp ID: ' |) My_cur_luc.emp_idd);

    dbms_output.put_line ('Row count: ' |) My_cur_luc % number of lines);

    END LOOP;

    / * IF cur_luc % isopen THEN

    close cur_luc;

    END IF; */

    END;

    Thank you very much, I just figured out the problem, I have not called on my cursor in dbms_output.putline(cur_luc%rowcount). I called the recordname My_cur_luc instead.

Maybe you are looking for