11g 1.3 provides a new Serializable class warning ?

We have an adf swing app we moved to version 1.3
we now get this warning in most of the app classes:
Serializable class contains non-serializable fields: [contactX]
this is an example class as basic as you can get that extends JDialog and It uses another class. The warning wants to mark ContactX.class as transient ?
This should not require the "private transient" Keyword as it has nothing to do with Jdialog being Serializable.
Is this produced for some reason due to changes in use of the adf binding or
has something changed that could impact the application now or in the future or is this warning in error?
public class ContactXDialog extends JDialog {
private ContactX contactX;
}

Ok I think I understand your confusion better now.
- JDialog implements Serializable
- You extends JDialog, so ContactXDialog also implements Serializable
- Serialization implies the serialization of all fields, so contactX is a serialization candidate
- Now there's two possibilities.
1. contactX is calculable, meaning you can compute it back at runtime if needed, this is often the case of cached or lazy fetched values. Then you can make the field transient, effectively removing it from the serializable candidates
2. contactX must be set, then it must be serialized, therefore it must be Serializable as well. So the only option here is to have ContactX class implement the Serializable interface.
The warning offered the easiest way out, albeit likely a problematic one, to add the transient modifier.
Regards,
~ Simon

Similar Messages

  • Client can't access Serializable classes on Server

    Hi there, i have created a very simple client server model and had it running fine. I then added a new serializable class to the server and return it in a new method. Now when i try to run that method on the client side it complains it cannot find my new serializable class ("no class def found exception: rmi/server/ServerObject.class"). This is how it's setup at the moment:
    Server
    -ServerFront extends Remote
    -Server implements ServerFront
    -ServerObject implements Serializable
    The server binds itself to the registry as such:
    ServerFront engine = new Server();
    String name = "Server";
    ServerFront stub = (ServerFront)UnicastRemoteObject.exportObject(engine, 0);
    Registry registry = LocateRegistry.getRegistry();
    registry.rebind(name, stub);The ServerObject class looks like this:
    public class ServerObject implements Serializable
        private static final long serialVersionUID = 10L;
        //methods
    }The ServerFront interface has a method as such:
    ServerObject getServerObject () throws RemoteException;    Client
    -Client
    The client gets a reference to the server as follows:
    String name = "Server";
    Registry registry = LocateRegistry.getRegistry("127.0.0.1");
    server = (ServerFront)registry.lookup(name);Then tries to run the getServerObject() method:
    ServerObject = server.getServerObject();I run the client and server from jar files using the following commands:
    start java -Djava.rmi.server.codebase="http://www.xenwars.com/Server.jar" -Djava.security.policy=security.policy -jar Server.jar
    java -Djava.security.policy=security.policy -jar Client.jar"security.policy" allows all access, and the codebase URL points to my webserver where i uploaded an identical copy of the Server jar file that i'm trying to run.
    So... i've read all the Sun documentation and such and i'm massively confused why my client isn't simply downloading the serializable class as it's supposed to. Any help is massively appreciated, thanks :D
    Edited by: Aldarn on Feb 8, 2009 10:03 AM
    Edited by: Aldarn on Feb 8, 2009 10:05 AM

    By a mirrored interface i mean i just created an interface based off my existing serializable classes, i.e. copied the method constructors into an interface class and made the serializable class implement that interface.
    I think that must have been the problem then, that i wasn't giving the client an interface to the serializable classes on the server that it was attempting to download. I thought by using RMI on a serializable class it would just download that class when it needs it and so wouldn't need an interface pre-defining it.
    Thanks for the help! I'm now working on a system with 3 servers and one client, where two servers have various methods implemented and the third one acts as a bridge between the other two servers and the client - so the client only has to deal with one server. It's working fine but it's pretty annoying having to mirror all the methods from both servers' interface classes in the server that acts as a bridge's interface class - is there any way that the bridge server can inherit the other two servers interfaces into its own so i don't need to make loads of duplicate "shell" methods like this:
    // second server
    public ArrayList<Thing> getAllThings ()
        return things;
    // bridge server
    private SecondServerFront secondServer; // reference loaded in constructor
    public ArrayList<Thing> getAllThings () throws RemoteException
        return secondServer.getAllThings();
    }  

  • Providing an newer class than the application-server provides

    I have the problem that I must provide a newer class of "javax.xml.namespace.QName" than the application-server provide.
    In the spec of j2ee is written, that the lib-directory of a war-archive must searched for classes before the server searches his directories.
    But the behaviour of the Netweaver 6.40 is not like that.
    I know there are other application-servers which have the same behaviour. For this servers it exists a way to configure this.
    Is there also a way to configure this in the Netweaver.

    I have the problem that I must provide a newer class of "javax.xml.namespace.QName" than the application-server provide.
    In the spec of j2ee is written, that the lib-directory of a war-archive must searched for classes before the server searches his directories.
    But the behaviour of the Netweaver 6.40 is not like that.
    I know there are other application-servers which have the same behaviour. For this servers it exists a way to configure this.
    Is there also a way to configure this in the Netweaver.

  • Can weblogic run serializer classes created by wscompile tool

    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by 'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and it should
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get the following error:
    weblogic.webservice.server.ConfigException: failed to add type mapping to registry:
    - with nested exception:
    [java.lang.InstantiationException: com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    at weblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.java:228)
    How can we deploy a webservice created with JAX-RPC standard (with either Apache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

    JAX-RPC serializer classes are not portable. So you can not use the
    serializer classes
    generated by Sun's RI in weblogic JAX-RPC runtime.
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.You dont have to refer any weblogic specific classes to use WLS JAX-RPC
    impl. You
    only need to use the weblogic provied tools. The application code you write
    is portable.
    Check out the edoc for more details:
    http://edocs.bea.com
    -regards,
    manoj
    "davinder" <[email protected]> wrote in message
    news:3e66e03a$[email protected]..
    >
    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get thefollowing error:
    >
    weblogic.webservice.server.ConfigException: failed to add type mapping toregistry:
    - with nested exception:
    [java.lang.InstantiationException:com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    atweblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.
    java:228)
    >
    How can we deploy a webservice created with JAX-RPC standard (with eitherApache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

  • XSQL-022 error on using FOP - serializer class not found; urgent!

    Hi all,
    currently using XDK 9.2.0.1.0. On trying to invoke Apache FOP serializer I just get the following error message:
    XSQL-022: Cannot load serializer class oracle.xml.xsql.serializers.fopserializer
    and I really don't know why....
    Running XSQL Servlet within Tomcat 4 Engine, but error pops up using both, Tomcat way and/or just the commandline invoker xsql.bat.
    Generally XSQL Servlet is working correctly.
    My classpath setting contains:
    xmlparserv2.jar; batik.jar; classes12.jar; fop.jar; fopserializer.jar; oraclexsql.jar; sax2.jar; xalan-2.0.0.jar; xalanj1compat.jar; xerces-1.2.3.jar; xschema.jar; XSQLConfig.jar; xsu12.jar
    The serializer being redefined in XSQLConfig is just:
    <serializer>
    <name>FOP203</name>
    <class>oracle.xml.xsql.serializers.fopserializer</class>
    </serializer>
    This is because of using FOP 0.20.3, so having my own serializer class due to API change in FOP 0.20.x; my fopserializer is looking like that:
    package oracle.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.messaging.MessageHandler;
    import org.apache.fop.apps.*;
    import java.io.*;
    // FOP 0.20.3 Serializer implementation for XSQL
    public class fopserializer implements XSQLDocumentSerializer
    private static final String PDFMIME="application/pdf";
    public void serialize(Document doc, XSQLPageRequest req) throws Throwable
    try
    Driver FOPDriver = new Driver();
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    MessageHandler.setOutputMethod(MessageHandler.NONE);
    FOPDriver.setupDefaultMappings();
    req.setContentType(PDFMIME);
    FOPDriver.setOutputStream(req.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e)
    e.printStackTrace(System.err);
    In my XSQL file I'm using the following PI:
    <?xml-stylesheet type="text/xsl" href="listemps.fo" serializer="FOP203"?>
    Any suggestions what is wrong in here ?
    Can't use the original xsqlserializer.jar either - same error.
    Thanks in advance
    Jochen

    Hi Jochen,
    I'm working with Tomcat 4.0.3, FOP 20.0.3 and XDK 9.2.0.1.0, too.
    I've copied all the jar-files into tomcat/common/lib. I think that you can't use the MessageHandler in fop20.0.3. I'm using the following serializer:
    package diva.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.apps.*;
    import org.apache.log.*;
    import org.apache.log.format.*;
    import org.apache.log.output.io.*;
    import org.apache.avalon.*;
    import java.io.*;
    public class XSQLFOP203Serializer implements XSQLDocumentSerializer {
    private static final String PDFMIME = "application/pdf";
    private static final String CONFPATH = "/usr/local/fop/conf/userconfig.xml";
    public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
    try {
    // Open user config file
    File userConfigFile = new File(CONFPATH);
    Options options = new Options(userConfigFile);
    // First make sure we can load the driver
    Driver FOPDriver = new Driver();
    // Setup logging
    Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
    PatternFormatter formatter = new PatternFormatter("[%{priority}]: %{message}\n%{throwable}" );
    LogTarget target = null;
    target = new StreamTarget(System.out, formatter);
    hierarchy.setDefaultLogTarget(target);
    Logger log = hierarchy.getLoggerFor("fop");
    log.setPriority(Priority.INFO);
    FOPDriver.setLogger(log);
    // Then set the content type before getting the reader/
    env.setContentType(PDFMIME);
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    FOPDriver.setOutputStream(env.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e) {
    // Cannot write PDF output for the error anyway.
    // So maybe this stack trace will be useful info
    e.printStackTrace(System.err);
    Hope this helps
    Uwe

  • Copy multiple dispatch vi to new child class

    Hi, I have just started with LVOOP and while I'm pretty sure I have a good understanding of the overall theme, there is one problem I foresee if I continue.
    Situation:
    BoardType is parent of classes CC2600 and CC1300. Currently the child classes are just empty place holders.
    Almost all the methods in the child classes will be of dynamic dispatch type (currently only one).
    From what I understand a dynamic dispatch must be available in all child classes plus parent class in order to work as intended. 
    Problem:
    If I would go forward and implementing LVOOP this would require approx 30 dynamic dispatch vis for each class. I can right click but for just these two children that's 60 + 30 vis I must create manually. I would much prefer just to create a template once and then just basically drag and drop 30+ new vis for each new class that is created.
    Is there a way I can define a set of template dispatch vis in the parent BoardType and have them added to all the child classes? 
    I tried the save as copy, but the problem is that I still have to replace the connector pane to represent the new owning class.
    If it helps here's a very basic block diagram of what's going to happen, just after Reset.vi there will be a lot of other dynamic dispatch vis.
    Thanks in advance.
    Michael

    From the OP it sounded like you were literally just copying from the parent.
    What I tend to do is finish one child class and then save a copy to a new name and change the internal data (if required) and DD vis (if required).
    I do agree though that these kinds of operations could be hugely simplified using helper programs.  Give the link provided by others a try.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • NullPointerException (Unknown Source) in Serializable class

    Hi, I have a Serializable class, and I just added a new class variable to it, with its get and set methods. When I try to call either the get or the set method from outside the class, I get a NullPointerException, which refers to the method in the following format:
    java.lang.NullPointerException
    at setMethod (Unknown Source)
    or at getMethod (Unknown Source)I'm very confused about why this is happening, and I can't seem to come up with any solutions as to why it happens only for this variable and not for the other ones.
    I wrote the two following files, trying to reproduce this problem outside work, but I wasn't successful. Please help out!
    import java.io.Serializable;
    public class Profile implements Serializable {
         private static final long serialVersionUID = 1835312781905234523L;
        private String name;
        private String phone;
        private String city;
        private int age;
        public Profile() {}
        public Profile(String name, String phone, String city, int age)
             this.name = name;
             this.phone = phone;
             this.city = city;
             this.age = age;
        public String getName()
             return name;
        public void setName(String name)
             this.name = name;
        public String getPhone()
             return phone;
        public void setPhone(String phone)
             this.phone = phone;
        public String getCity()
             return city;
        public void setCity(String city)
             this.city = city;
        public int getAge()
             return age;
        public void setAge(int age)
             this.age = age;
    public class ProfileTester {
        Profile profile;
         public ProfileTester()
             profile = new Profile();
             profile.setName("Nazli");
             profile.setPhone("650-234-1234");
             profile.setCity("Menlo Park, CA");
             profile.setAge(30);
             System.out.println("Name: "+profile.getName());
             System.out.println("Phone: "+profile.getPhone());
             System.out.println("City: "+profile.getCity());
             System.out.println("Age: "+profile.getAge());
         public static void main (String [] args)
              ProfileTester tester = new ProfileTester();
    }

    My guess is that your get or set method is a little more complex than a simple retrieval or assignment.
    Make sure there are no null references in the body of those methods.

  • ERROR: serializable class HelloComponent does not declare a static final

    Hi everyone! I'm sorry but I'm a newbie to Java and I'm having some, I assume, basic problems learning to compile and run with javac. Here is my code:
    import javax.swing.* ;
    import java.awt.* ;
    public class MyJava {
    * @param args
    public static void main(String[] args)
    // TODO Auto-generated method stub
    JFrame frame = new JFrame( "HelloJava" ) ;
    HelloComponent hello = new HelloComponent() ;
    frame.add( hello ) ;
    frame.setSize( 300, 300 ) ;
    frame.setVisible( true ) ;
    class HelloComponent extends JComponent
    public void paintComponent( Graphics g )
    g.drawString( "Hello Java it's me!", 125, 95 ) ;
    And here is the error:
    1. WARNING in HelloJava.java
    (at line 20)
    class HelloComponent extends JComponent {
    ^^^^^^^^^^^^^^
    The serializable class HelloComponent does not declare a static final serialVersionUID field of type long
    ANY HELP WOULD BE GREAT! THANKS! =)

    Every time I extend GameLoop, it gives me the warning
    serializable class X does not declare a static final serialVersionUID field of type long
    This is just a warning. You do not need to fix this because the class you are writing will never be serialized by the gaming engine. If you really want the warning to go away, add the code to your class:
    static final long serialVersionUID=0;

  • Serialization (Class Reference) Problem.

    I have developed a class which only job is to save my serializable objects and load them. This class works very simple. In the constructor you pass the instance of the class you wish to save or load data in, and you call the method save(..) or load (..) accordingly!
    Now the serialiazation works more then fine :) The problem is in the reference of classes. That is my object instance in the class responsable for serialization is initialized ok when the data is loaded. However the same object (that means passed as a paramter to the Serialiaztion class) is not being initialized.
    Now as much as I know all parameters that are objects are always transfered as Reference types. That mean pointing to the same memory address. So how can my instance be initalize in one point and not in the other?
    Following is my Serialization class:
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    public class DataSerializer {
        private Object serializableObject;
        public DataSerializer(Object o){
            this.serializableObject = o;
        public void Save(String filePath) throws IOException{
            ObjectOutputStream objectOutputStream = null;
            try {
                objectOutputStream =
                    new ObjectOutputStream(new FileOutputStream(filePath));
                objectOutputStream.writeObject(this.serializableObject);
            finally{
                try{
                    objectOutputStream.flush();
                    objectOutputStream.close();
                catch(Exception e){}
                objectOutputStream = null;
        public void Load(String filePath) throws ClassNotFoundException,
                ClassCastException, IOException{
            ObjectInputStream objectInputStream = null;
            try {
                objectInputStream =
                        new ObjectInputStream(new FileInputStream(filePath));
                this.serializableObject  = (AllData)objectInputStream.readObject();
                // TESTING: HERE IT RETURNS CORRECT VALUE (1)
                System.out.println("c:"+((AllMyData)this.serializableObject).count());
            finally{
                try{
                    objectInputStream.close();
                catch(Exception e){}
                objectInputStream = null;
        public Object getSerializableObject(){
            return this.serializableObject;
        public void setSerializableObject(Object o){
            this.serializableObject=o;
    }And this is how I call the class:
    AllMyData d = new AllMyData();
    d.add(new MyData("Hello"));
    new DataSerializer(d).save("C:\\Test1.txt");
    // Problem here:
    AllMyData d2 = new AllMyData();
    new DataSerializer(d2).load("C:\\Test1.txt");
    System.out.println(""+d2.count);  // returns 0 instead 1!!Thanks in advance for any help!

    BTW: By using the get and set method it works fine :)
    But just a question I wanted to ask, Since from what I know about referencing it should be working like it is above!! I know it most probably is silly!? but can't explain it to myself!
    here is the way I code it to work:
    AllMyData d = new AllMyData();
    d.add(new MyData("Hello"));
    new DataSerializer(d).save("C:\\Test1.txt");
    // Problem here:
    AllMyData d2 = new AllMyData();
    // NEW CODE BELOW
    DataSerializer loader = new DataSerializer(d2);
    loader .load("C:\\Test1.txt");
    d2.getSerializableObject();
    // NOW IT RETURNS CORRECT RESULT!
    System.out.println(""+d2.count); 

  • Basic question - extending Serializable classes...

    Hi everyone,
    I've got a quick question: if I create a new class that extends a Serializable class, is that class automatically considered to be Serializable, or do I need to explicitly declare that?
    Thank you in advance,
    Pete

    I've got a quick question: if I create a new class that extends a
    Serializable class, is that class automatically considered to be
    Serializable [ ... ]Yes, you're derived class is automagically considered to be Serializable.
    This is what the API docs for the Serializable interface have to say
    about it:
    All subtypes of a serializable class are themselves serializable
    kind regards,
    Jos

  • Error getting while creating the custom pof serializer class

    the error which i am getting is
    2011-07-19 15:16:38.767/4.840 Oracle Coherence GE 3.7.0.0 <Error> (thread=main, member=1): Error while starting se
    vice "AspNetSessionCache": (Wrapped) (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext")
    Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClas
    )) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.
    ava:1102)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:934
    at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:81)
    at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheServer.java:250)
    at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:55)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
    Caused by: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load c
    ass for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClass)) (Wrapped) java.lang.Cl
    ssNotFoundException: examples.testJavaClass
    at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:46)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:1
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:32)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(Par
    itionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: (Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.
    estJavaClass)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1254)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:956)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:42)
    ... 7 more
    Caused by: (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
    at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1198)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:952)
    ... 10 more
    Caused by: java.lang.ClassNotFoundException: examples.testJavaClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3056)
    at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1194)
    ... 11 more
    Exception in thread "main" (Wrapped) (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext")
    Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClas
    )) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.
    ava:1102)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:934
    at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:81)
    at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheServer.java:250)
    at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServer.java:55)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
    Caused by: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load c
    ass for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.testJavaClass)) (Wrapped) java.lang.Cl
    ssNotFoundException: examples.testJavaClass
    at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:46)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:1
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:32)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(Par
    itionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: (Wrapped: Unable to load class for user type (Config=pof-config.xml, Type-Id=1001, Class-Name=examples.
    estJavaClass)) (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1254)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:956)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.io.ConfigurableSerializerFactory.createSerializer(ConfigurableSerializerFactory.java:42)
    ... 7 more
    Caused by: (Wrapped) java.lang.ClassNotFoundException: examples.testJavaClass
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
    at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1198)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:952)
    ... 10 more
    Caused by: java.lang.ClassNotFoundException: examples.testJavaClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:3056)
    at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1194)
    ... 11 more
    2011-07-19 15:16:38.825/4.898 Oracle Coherence GE 3.7.0.0 <D4> (thread=ShutdownHook, member=1): ShutdownHook: stop
    ing cluster node
    2011-07-19 15:16:38.826/4.899 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=1): Service Cluster left th
    cluster
    Press any key to continue . . .
    coherence-pof-config.xml is
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
    <user-type-list>
    <user-type>
    <type-id>1001</type-id>
    <class-name>examples.testJavaClass</class-name>
    <serializer>
    <class-name>com.tangosol.io.pof.PortableObjectSerializer</class-name>
    <init-params>
    <init-param>
    <param-type>string</param-type>
    <param-value>1</param-value>
    </init-param>
    </init-params>
    </serializer>
    </user-type>
    </user-type-list>
    </pof-config>
    testJavaClass.CLASS file is
    package examples;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    import com.tangosol.util.Base;
    import java.io.IOException;
    public class testJavaClass implements PortableObject
    private String MembershipId;
    private String m_sStreet;
    private String m_sCity;
    public testJavaClass()
    public testJavaClass(String sName, String sStreet, String sCity)
    setName(sName);
    setStreet(sStreet);
    setCity(sCity);
    public void readExternal(PofReader reader)
    throws IOException
    setName(reader.readString(0));
    setStreet(reader.readString(1));
    setCity(reader.readString(2));
    public void writeExternal(PofWriter writer)
    throws IOException
    writer.writeString(0, getName());
    writer.writeString(1, getStreet());
    writer.writeString(2, getCity());
    // accessor methods omitted for brevity
    Thanks.

    Hi Wijk,
    I have created java class with using NetBeans IDE .
    and running with .NET client and i kept it in the folder (C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java\src\examples).
    Thanks....

  • Transfer of existing assets to new asset class

    Hello Experts,
    We are working in a one-year old implementation of SAP ECC 6.0. A need has raised which is forcing us to transfer an asset with some Depreciation areas (we are currently working with ten areas between Real Depreciation Areas and Derived Depreciation Areas) to a new asset belonging to a new asset class with fewer areas.
    We created the new Asset Class and tested in the quality environment using transaction ABUMN. An example was transferring an asset with two months of depreciation already posted and transferring this one to the new asset at the beginning of the next month.
    The main issue is that we desire that the original asset keeps posting depreciation for the areas that are not transferred. Unfortunately, in our tests in the quality environment we have not accomplished this, what the system does is transfer the values to the new asset and then when you run transaction AFAB the new asset does post depreciation in the fewer areas that the Asset Class it is assigned to has but the original asset does not post any depreciation in any area.
    We tried maintaining the Transaction Types for Transfers that were used by the system by deselecting the 'Deactivate fixed asset' but it did not work and then we tried creating our own Transaction Types but this also was of no use.
    Hope you can shed some light into the issue!

    Dear Sankar,
    Thanks for such a quick reply. I have already considered that (SAP forcing you to transfer the whole asset) as a possibility. Unfortunately, as I have already mentioned here at our implementation we need something like this to happen.
    Let me elaborate. For the fiscal Depreciation Areas we are required to keep the original information on the asset so that the depreciation that is calculated does not change but conversely for the other areas we desire to change the depreciation that is calculated and posted (for example, some assets will suffer a change in the useful life others might merge into one big asset, etc.) but what we definitely need is to keep the original information in the fiscal areas so we can keep reporting that and therefore can keep paying the correct amount to our local tax authorities.
    As I mentioned before I have already considered that as an option. So what we thought was duplicating the assets (through a mass charge of all our assets with the current values), then transferring the 'clones' to assets with fewer Depreciation Areas (we will eliminate the Fiscal Areas since this new assets will be only useful for the non-fiscal depreciation calculation which is the one that will change).
    To sum up: the clones will not generate depreciation because when transferred they will be worthless. The assets they were transferred to will generate the non fiscal depreciation.
    And finally on the original assets we will deactivate the non-fiscal Depreciation Areas so that these assets continue to calculate the fiscal depreciation.
    I would really appreciate your opinion on this strategy or if you think it is a bad or incorrect strategy I would appreciate even more an advise on this matter.
    PS. a little doubt now also strikes me: what is the "Deactivate Fixed Asset" in the Transaction Type definition for?

  • Us Payoll : Tax Model Changes : Creation Of A New Tax Class : Impact

    Hi Experts,
    Has anyone earlier created a new tax class specification of PC 71 for a wagetype so that it is taxed only for a particular tax authority , if yes how did you handle the impact on the other tax authorities ,did you create new entries ( with the new specification ) for other tax authorities as well so that the existing tax calculations happen as it is.
    The issue is explained IN DETAIL below :
    We have one requirement to include certain wage types X Y Z for  the calculation of Transit  District Excise Tax /435 in the tax authority ABC
    When we checked our system, for these wage types X Y Z the corresponding tax classification is set as 0 ( Regular taxable wages ) which is linked to tax type 1 and not linked to 35 tax type , so we need to assign it to a specification which is having both 1 and 35 tax types. We can assign this to 935 which is linked to both 1 and 35 however this will impact all the wage types that are linked to 0 ( Regular taxable wages ) specification in PC 71.
    Our business does not want these other wagetypes to be impacted i.e the requirement is that ONLY X Y Z wagetypes should be included in the calculation of Transit District Exercise Tax /435 for the tax authority ABC.So the option is that  we have is to create a new 71 tax class specificaiton say * and assign it to these wagetypes and then create a new entry assining this * in the table  T5UTM to 935 for this tax authority so that it is taxed for Transit  District Excise Tax /435.
    However since we are assigning a new tax class specffication to these wagetypes, there will be a impact on ALL THE OTHER tax authorities where these wagetypes X Y Z  are having an old specification of  0 ( Regular taxable wages ). So we have to create newe entries with this new specification * in the table T5UTM so that the current tax calcutions are not impacted.
    We have about 500 tax authoties or  500 tax models where we will have to create new entries with the new tax class specirication '" * " , so that these wagetypes are taxed as they are being taxed today, for all of the other tax authorities.
    Has anyone earlier created a new tax class specirication of PC 71 , if yes how did you handle the impact on the other tax authorities ,did you create new entries for other tax authorities., which is next to being impossible as we cannot create 500 entries.
    Alternatively we are looking at using the TAX MODIFIER for this requirement , please advise if anyone has used TAX MODIFIER  for this kind of a requirement mentioned above. Any suggestions are most welcome.
    Regards,
    Vineeth
    Please Dont use Caps letters
    Edited by: Moderator

    Yes we are also referring to the same and this is the actual issue we have , each tax authority has its own tax model. We have to customize (add) this new tax type in the tax models or it won't be considered ( as you have mentioned ).
    But we have over 500 different tax models and we cannot be adding this new specification in each tax model , Please advise how this could be handled other than writing a rule. We are just thinking loud if there is anything that we are missing.
    These wagetypes are quiet common in all tax authorities , so have to be added in all the tax models i.e. for all tax authorities.

  • Us Payoll : Creation Of A New Tax Class

    Hi Experts,
    Has anyone earlier created a new tax class specification of PC 71 so that it is linked to some tax type.
    If yes how did you handle the impact on the other tax authorities when  the wagetypes  are linked to this specification?
    Did you create new entries for other tax authorities?
    Thanks in advance

    Yes we are also referring to the same and this is the actual issue we have , each tax authority has its own tax model. We have to customize (add) this new tax type in the tax models or it won't be considered ( as you have mentioned ).
    But we have over 500 different tax models and we cannot be adding this new specification in each tax model , Please advise how this could be handled other than writing a rule. We are just thinking loud if there is anything that we are missing.
    These wagetypes are quiet common in all tax authorities , so have to be added in all the tax models i.e. for all tax authorities.

  • Unable to load your custom module provider's module-factory-class

    I am having a problem while I deploy my application. it gives me following error:
    Unable to load your custom module provider's module-factory-class com.bea.p13n.descriptor.module.ConfigModuleFactory
    Dont know how to resolve it. the class is in p13n_system.jar file, I have added that jar as a library in deployment but still it shows the same error.
    Added it in classpath as well but same error. (Dont know exactly how to add in class path, i have added just in "Start Server" tab's classpath)
    Any help will be greatly appreciated

    Below link might be helpful.
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=1049509&tstart=0
    Regards,
    Anandraj
    http://weblogic-wonders.com/

Maybe you are looking for

  • How do I install apps on an iPhone without using appstore?

    I'd Like to install a couple of apps on several iPhones without having to go through the AppStore on each one. The users of these phones ar really lightweight users, so they'll never use the AppStore. All they do is check/write e-mails and call/text.

  • Disable "Save a copy" in Adobe Reader

    Can anyone suggest me of disabling the "Save a copy" menu item... Its very urgent...

  • Screen doesn't come back after sleeping

    Occassionally I find that after closing my MPB to put it to sleep the screen doesn't come back up after re-opening the laptop. The pulsing white light which tells you the machine is sleeping goes off, so it seems as if the machine has woken up.... bu

  • Please make it easier to position images in height and have them adapt to browser width!

    Maybe I'm missing a method but I have now long enough stumbled on something I would think obvious to exist within the program. I just want a highres intro image to pop up. i want to position it a bit down from the vertical center, but it should fill

  • Audio settings

    How do you make the audio setting work? I cannot change my audio capture setting it is in gray and I cannot access it. HELP. I am running an IMac IC with FCE 4 TIA.