Java.rmi.ServerException:

I am new to RMI concept
i stuck with the below problem
when i execute
E:\MyProjects\StockRMI>java -Djava.security.policy=policy.all StockMarketServerStockMarketServer is as shown below
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
import SimpleStocks.*;
public class StockMarketServer {
  public static void main(String[] args) throws Exception {
    if(System.getSecurityManager() == null) {
      System.setSecurityManager( new RMISecurityManager() );
    StockMarketImpl myObject = new StockMarketImpl( "NASDAQ" );
    System.out.println( "RMI StockMarketServer ready..." );
} i got the following error
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
        java.lang.ClassNotFoundException: SimpleStocks.StockMarketImpl_Stub
RMI StockMarketServer ready...Interface class, Interface implementation class and stub all reside in MyProjects\StockRMI\SimpleStocks directory
where as Server class(StockMarkerServer) is in MyProjects\StockRMI
even i place the stub in MyProjects\StockRMI directory i got the same error.
Can any one please save me out of this problem

hurry!
Thank u First of all
I got it.. finally after 2 days
The error is in CLASSPATH only , i set it
Thanks once again

Similar Messages

  • Error: while generating SQL.java.rmi.ServerException:

    Hi:
    I tried the JGuru's "MusicStore" example. HOwever at Task 6 and 7 I am getting the following error:
    Error: while generating SQL.java.rmi.ServerException:
    RemoteException occured in server thread; nested exception is:
    * java.rmi.RemoteException: Error connecting to database;
    nested exception is:
    * SQL Exception: Failed to start database 'MusicStoreDB', see
    the next exception for details.
    Please make sure the database name/user/password is valid
    and the J2ee server and database are running.
    However when i check my database it is running perfectly:
    E:\>%j2ee_home%\bin\cloudscape -start
    Sun Feb 16 12:48:11 PST 2003: [RmiJdbc] Starting Cloudscape RmiJdbc Server Version
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] COM.cloudscape.core.JDBCDriver registered i
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] Binding RmiJdbcServer...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] No installation of RMI Security Manager...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] RmiJdbcServer bound in rmi registry
    Server:
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
    DB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
    eDB;create=true
    Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/MusicStore, url = jdbc:cloudscape:rmi:MusicStore
    DB;create=false
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
    re.RemoteXaDataSource@1d88db7
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    Starting web service at port: 9191
    J2EE SDK/1.3.1
    J2EE server startup complete.
    Can anyone suggest me a way out..plz

    what type of persistent u r using also post ur query if bmp and check with another example with cmp.

  • Java.rmi.ServerException: Server unavailable, please try later

    I'm testing a service proxy in JDeveloper 10.1.3.1.
    I'm using encryption and signing.
    Now that I have the encryption/signing key loading, I get the following error:
    WARNING: Subject Key ID extension not found.Using BST Referencing scheme
    java.rmi.ServerException:
    start fault message:
    Server unavailable, please try later
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:560)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at pkg.service.client.runtime.RequestSoap_Stub.execute(RequestSoap_Stub.java:84)
         at pkg.service.client.RequestSoapClient.execute(RequestSoapClient.java:48)
         at pkg.service.client.RequestSoapClient.main(RequestSoapClient.java:34)
    Process exited.
    Debugger disconnected from local process.
    Is this a failure of the RMI server on my side or is it a failure to connect to the service? Is the destination service sending this to me or just the transmission code?
    It looks to me from the trace and the vagueness of the message that this is from the Oracle transmission code in the StreamingSender class, not a message received from the destination webservice. Would love some confirmation, though.
    Thanks for any help.

    This error generally means there is trouble in the host file, or there is trouble with anti-virus software. Check this section of the support document that you came here from.
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors: 
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • Java.rmi.ServerException: RuntimeException

    Hi All,
    i had an issue related to sockets.Please see the code below where am getting the following exception,
    java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.RuntimeException: java.io.EOFException
    what my concern is while debugging am not getting this issue.
    code comes here-----------------------------------------------
    Socket s = null;
    byte[] readBytes1 = null;
    try {
    s = new Socket(txControlServer, 7777);
    SocketObject sob = makeSocketObject(pFromFiles, pToFiles, pCorrStylesheets,
    pHTMLUtilityServer, pOrientation, pDocumentClassif, pClientInfo, pFormats,
    pCorrCode, images);
    ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
    oos.writeObject(sob);
    ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
    readBytes1 = ((SocketObject) ois.readObject()).getFileData();
    System.out.println("The byte length " + readBytes1.length);
    ois.close();
    oos.close();
    s.close();
    System.out.println("\n----------------The length of the bytes read first ----- "
    + readBytes1.length);
    catch (Exception e) {
    ExceptionUtil.wrap(e);
    Am getting the exception at this line in the above code
    ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
    Can any one help me out why this problem occurs and how to resolve.
    Thanks in Advance,
    vamsy.

    The other side has closed the socket before sending you an object.

  • Java.rmi.ServerException Problem

    The exception that has occured is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Process00Impl_Stub
    I have the interface, Client, Server and the Implementation java files
    in the same machine.
    11/29/2002 08:52p 282 Process00.class
    11/29/2002 08:25p 221 Process00.java
    11/29/2002 07:40p 215 Process00.java.bak
    11/29/2002 08:56p 1,008 Process00Client.java
    11/29/2002 08:55p 1,010 Process00Client.java.bak
    11/29/2002 08:57p 451 Process00Impl.class
    11/29/2002 08:57p 936 Process00Impl.java
    11/29/2002 08:52p 934 Process00Impl.java.bak
    11/29/2002 08:57p 2,153 Process00Impl_Skel.class
    11/29/2002 08:57p 3,938 Process00Impl_Stub.class
    11/29/2002 08:56p 995 Process00Server.class
    11/29/2002 08:57p 645 Process00Server.java
    11/29/2002 08:56p 643 Process00Server.java.bak
    I also have the _Stub.class. I do not know why I get this error. If any
    one have an idea, kindly share with me.
    Thanks.

    Hi,
    I had the same problem. In my machine, path was having jre1.1.7 before my jdk 1.4. So it was picking up from jre1.1.7.
    Java was happy when I moved my jdk1.4 path to the beginning of the path variable.
    Hope this helps you.

  • Java.rmi.ServerException: Missing port information

    when i call the service ,i got the error:
    run-test-client:
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
    ender.java:382)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:234)
    [java] at sys.SetIF_Stub.getdeviceid(SetIF_Stub.java:68)
    [java] at sys.StockPriceFetcher.getdeviceid(Unknown Source)
    [java] at sys.TestPriceFetcher.main(Unknown Source)
    what cause it??
    in my SetImpl.java i use wurfltags.jar
    //SetImpl.java
    package sys;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import net.sourceforge.wurfl.wurflapi.*;
    public class SetImpl implements SetIF {
         private String ret="";
    private ProConf pc;
    private MyObjectsManager mom;
         public SetImpl(){}
    public String getdeviceid(String request)
    String result="";           
    try{              
    mom=new MyObjectsManager();
    mom.wurflWebInit();
    UAManager uam =mom.getUAManagerInstance();
    result=uam.getDeviceIDFromUA("MOT-T720/05.08.41R MIB/2.0 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    System.out.println(result);
    catch(Exception e){}
    return result;     
    and, i generate the wsdl file and deploy it successfully. but in the client
    when i call the service it will be error.
    the client code is:
    /////////StockPriceFetcher.java
    package sys;
    import javax.xml.rpc.*;
    import com.sun.xml.rpc.client.*;
    public final class StockPriceFetcher {
    public static final String getdeviceid(String req,String endpoint) {
    String result="";
    try {
    SetIF_Stub stub =(SetIF_Stub)(new SystemConfiguration_Impl().getSetIFPort());
    stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,endpoint);
    result = stub.getdeviceid(req);
    } catch (Exception ex) {
    ex.printStackTrace();
    return result;
    } // getLonNowItem
    //////////////////////TestPriceTetcher.java
    package sys;
    import java.math.BigDecimal;
    import java.util.*;
    public class TestPriceFetcher {
    public static void main(String[] args) {
    try {
    // String result=StockPriceFetcher.endsetinfo("ball=5&srv=7&pcode=500001","http://192.152.251.224:8080/jaxrpc-sys/jaxrpc");
    String result=StockPriceFetcher.getdeviceid("ball=5&srv=7&pcode=500001","http://192.152.251.224:8080/jaxrpc-sys/jaxrpc");
    System.out.println(result+"bb");
    } catch (Exception ex) {
    ex.printStackTrace();
    when i run the testpricefetcher.java it will raise the above error infomation.
    it spent 2 days for me to find the problem, but i cannot solve it.
    i think it does matter with the wurfl package.because i doesnt use the method of the package in the SetImpl.java it will be ok. How to call the package?please give me a hand.

    can you give me a hand!thank you

  • Java.rmi.ServerException: JAXRPCSERVLET28: Missing port information

    Hi
    We are getting errors when we run the webservice client..
    With this we have also provided the webservice code.
    Please any one help us to resolve this issue...
    Thanks in advance.
    We are using
    J2EE 1.4
    Error:
    java.rmi.ServerException: JAXRPCSERVLET28: Missing port information
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:510)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.j
    ava:103)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
    at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocatio
    nHandler.java:121)
    at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocatio
    nHandler.java:85)
    at $Proxy0.flowrequest(Unknown Source)
    at dynamicproxy.MathClient.main(MathClient.java:52)
    Web service Client Code:
    package dynamicproxy;
    import java.net.URL;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    //import com.ibm.ctg.client.JavaGateway;
    //import com.ibm.ctg.client.ECIRequest;
    import dynamicproxy.*;
    public class MathClient
    static String message;
    static String err=null;
         static StringBuffer sb = null;
         public String s1;
         public static int iValidationFailed = 0;
    public static void main(String[] args)
    try {
    String nameSpaceUri = "urn:Foo";
    String serviceName = "CtgService";
    String portName = "MathFacePort";
    // Specify the location of the WSDL file
    URL url = new URL("http://localhost:8080/math-ctgservice/math?WSDL");
    // Create an instance of service factory
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    // Create a service object to act as a factory for proxies.
    Service mathService = serviceFactory.createService(url,
    new QName(nameSpaceUri, serviceName));
    // Create a proxy
    dynamicproxy.MathFace
    myProxy = (dynamicproxy.MathFace) mathService.getPort(new
                             QName(nameSpaceUri,
    portName), dynamicproxy.MathFace.class);
    // Invoke the add method
    //System.out.println(myProxy.add(23, 12));
              //get the input value and pass it to the function
                   String a = args[0]+"~"+"------------------------------------------------------------";
                   //String a = b.toUpperCase();
                   // Invoke the add method
                   myProxy.flowrequest(a);
                   System.out.println("Message:"+message);
         catch (Exception ex)
    ex.printStackTrace();
    }

    As is so often the case, Google is your friend.
    Googling for the exception message (JAXRPCSERVLET28: Missing port information) yields the following list.
    http://www.google.com/search?hl=en&q=JAXRPCSERVLET28%3A+Missing+port+information&btnG=Google+Search
    Follow the bouncing link, it will lead you to the solution.
    PS.

  • Java.rmi.ServerException: RemoteException occurred in server thread

    I have written a simple CMP Entity Bean,While Running the Client I am getting the Exception,I have included all jars needed.
    EXCEPTION IS
    err in HomeCreatejava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:287)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:250)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:226)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:136)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
    at $Proxy0.create(Unknown Source)
    at StudentClient.main(StudentClient.java:39)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:140)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
    at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
    at org.jboss.ejb.Container.invoke(Container.java:726)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
    at java.lang.reflect.Method.invoke(Method.java:313)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:256)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:211)
    at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:122)
    at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
    at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
    ... 20 more
    Caused by: java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:33)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:263)
    at java.lang.Class.newInstance0(Class.java:301)
    at java.lang.Class.newInstance(Class.java:254)
    at org.jboss.ejb.plugins.BMPPersistenceManager.createBeanClassInstance(BMPPersistenceManager.java:145)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
    at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
    ... 24 more
    Pls explain what can i do now.
    regards,
    NaveenBabu.A
    my client code is
    import javax.ejb.*;
    import javax.naming.*;
    import java.rmi.*;
    import javax.rmi.*;
    import java.util.*;
    import student.student1.*;
    public class StudentClient
    public static void main(String args[])
    System.out.println("i am in start");
    StudentHome home= null;
    try{
    System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    System.setProperty("java.naming.provider.url", "localhost:1099");
    Context context = new InitialContext();
    try{
    home = (StudentHome)PortableRemoteObject.narrow(context.lookup("Student"), StudentHome.class);
    }catch(Exception e){System.out.println("err in StudentHome"+e);}
    /* try{
    home.create("Ammamn","A01");
    }catch(Exception e){System.out.println("err in HomeCreate"+e);}*/
    }catch(Exception e){System.out.println("error in client"+e);}
    System.out.println("i am in end");
    }

    Try this,
    Context context = new InitialContext(System.getProperties());

  • Java.rmi.ServerException: Internal Server Error (serialization error....)

    Hi to all.
    I have two classes.
    The first is:
    public class FatherBean implements Serializable {
    public String name;
    public int id;
    /** Creates a new instance of ChildBean */
    public FatherBean() {
    this.name= null;
    this.id = 0;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getId() {
    return id;
    public void setId(int id) {
    this.id = id;
    The second is :
    public class ChildBean extends FatherBean implements Serializable {
    public double number;
    /** Creates a new instance of ChildBean */
    public ChildBean() {
    super();
    this.number = 0.0;
    public double getNumber() {
    return number;
    public void setNumber(double number) {
    this.number = number;
    A test client class implements the following method that is exposed as web service:
    public java.util.Collection getBeans() {
    java.util.Collection beans = new ArrayList();
    ChildBean childBean1 = new ChildBean();
    ChildBean childBean2 = new ChildBean();
    childBean1.setId(100);
    childBean1.setName("pippo");
    childBean1.setNumber(3.9);
    childBean2.setId(100000);
    childBean2.setName("pluto");
    childBean2.setNumber(4.7);
    beans.add(childBean1);
    beans.add(childBean2);
    return beans;
    When I invoke the web service to url:
    http://localhost:8080/Prova
    and invoke the correspondent method on jsp client, throws exception:
    java.rmi.ServerException: Internal Server Error (serialization error: no serializer is registered for (class test.ChildBean, null))
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
         at ws.ProvaClientGenClient.ProvaRPC_Stub.getBeans(ProvaRPC_Stub.java:59)
         at ws.ProvaClientGenClient.getBeans_handler.doAfterBody(getBeans_handler.java:64)
         at jasper.getBeans_TAGLIB_jsp._jspService(_getBeans_TAGLIB_jsp.java:121)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Where is the problem? Will be ChildBean that extends FatherBean? Wich settings on Sun Java Studio Enterprise 6 2004Q1?
    Thank you.

    Hi,
    This forum is for Sun Java Studio Creator related questions. Could you pls post your message in the appropriate forum.
    Thank you
    Cheers :-)

  • Java.rmi.ServerException: Internal Server Error (deserialization error: XML

    I am trying to transmit a document as a byte array to a web service using jax-rpc, and I get the following error:
    2004-05-25 08:04:39,468 exception [Thread-5] - [email protected]33fd java.rmi.ServerException: Internal Server Error (deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:58: Expected "</ns0:receivexmldocument>" to terminate element starting on line 2)
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
         at com.mobius.cmsl.client.contentindexlistener.ContentWebServiceListenerIF_Stub.receivexmldocument(ContentWebServiceListenerIF_Stub.java:63)
         at com.mobius.cmsl.adapters.convera.client.ContentWebServiceClient.sendxml(ContentWebServiceClient.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doGet(ContentInterceptor.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doPost(ContentInterceptor.java:110)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    The code looks like:
    Client:
    clientStub = (ContentWebServiceListenerIF_Stub)new ContentIndexService_Impl().
    getContentWebServiceListenerIFPort();
    clientStub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, endPoint);
    obj = clientStub.receivexmldocument(cd.externalLink.contents,inxml);
    Web Service:
    public String receivexmldocument(byte docstream[],
    String inxml
    ) throws RemoteException {
    The wsdl looks like:
    <message name="ContentWebServiceListenerIF_receivexmldocument">
    <part name="arrayOfbyte_1" type="xsd:base64Binary"/>
    <part name="String_2" type="xsd:string"/></message>
    <operation name="receivexmldocument" parameterOrder="arrayOfbyte_1 String_2">
    <input message="tns:ContentWebServiceListenerIF_receivexmldocument"/>
    <output message="tns:ContentWebServiceListenerIF_receivexmldocumentResponse"/></operation>
    The documents I am sending do contain special characters like maybe japanese or italian.

    Sounds like the xml you are sending is not well-formed. Please start with simple xml documents to see if it works.

  • Trouble: java.rmi.ServerException:

    Hi all,
    I tried to execute the example given in Sun tutorial.
    I am getting the following error
    Trouble: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: CalculatorImpl_Stub
    Thanks

    Hi,
    This exception means the client attempted to download a stub from the server and couldn't find it.
    You can get this exception for a variety of reasons:
    1) The server-side doesn't have the stub. This is done by running the rmic tool against the implementation of a remote Interface
    2) The server doesn't store the stub where the client can find it. This may be due to setting the System property java.rmi.server.codebase incorrectly, or not at all.
    3) The server doesn't serve ("export") the stub. The server must have rmiregistry runnning on the server, and must make sure the rmiregistry CANNOT see the exportable object via its CLASSPATH.
    3) The client is looking in the wrong place for the stub.
    Anil.
    Developer Technical Support
    Sun Microsystem Inc,
    http://www.sun.com/developers/support

  • Exception occurred: java.rmi.ServerException

    Hello,
    I am trying to run small rmi program on sun solaris unix server. but after running the rmiregistry when I have execute the server program, it's throwing me following error. The same program is running fine in my local windows machine.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: RMITest.myRMIInterface
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:255)
    at sun.rmi.transport.Transport$1.run(Transport.java:168)
    at java.security.AccessController.doPrivileged(AccessController.java:274)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912)
    at java.lang.Thread.run(Thread.java:797)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:263)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:239)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:358)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
    at java.rmi.Naming.rebind(Naming.java:174)
    at RMITest.myRMIImpl.<init>(myRMIImpl.java:14)
    at RMITest.myRMIServer.main(myRMIServer.java:12)
    I have check that this exception occured when IMPL class's naming.rebind method called.
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIImpl extends UnicastRemoteObject implements myRMIInterface
    public myRMIImpl(String name) throws RemoteException
    super();
    try
    Naming.rebind(name, this);
    catch(Exception e)
    System.out.println("Exception occurred: " + e);
    public java.util.Date getDate()
    return new java.util.Date();
    Can you help me how to solve this problem.
    Note : my rmiregistry is running on 4999 port.
    - Hiren Modi

    java.lang.ClassNotFoundException: RMITest.myRMIInterfaceThe Registry can't find that class on its CLASSPATH.
    Solution: do something about that. Either run the registry as a separate task with a suitable CLASSPATH setting, or run it in the server JVM via LocateRegistry.createRegistry().

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone,
    I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
    I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
    Please have a look at the stacktrace below.
    Thank you for your help.
    Best Regards
    Patric
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
         java.rmi.UnmarshalException: skeleton class not found but required for client version
         sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         sun.rmi.transport.Transport$1.run(Transport.java:153)
         java.security.AccessController.doPrivileged(Native Method)
         sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         java.lang.Thread.run(Thread.java:595)
         sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         java.rmi.Naming.lookup(Naming.java:84)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
    Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
    Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
    Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib

  • UnmarshalException while using prop  java.rmi.server.ignoreStubClasses=true

    I have created a test program to check the behaviour of setting the java.rmi.server.ignoreStubClasses property to true on the server side and not setting this flag on the client side.
    This requirement is due to updation of an already running system, with stubs to a new version without stubs, without shutting down the system.
    The files used by me are given below.
    File Hello.java
    package example.hello;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Hello extends Remote {
    String sayHello() throws RemoteException;
    File Server.java
    package example.hello;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.server.UnicastRemoteObject;
    public class Server implements Hello {
    public Server() {}
    public String sayHello() {
    return "Hello, world!";
    public static void main(String args[]) {
    try {
    LocateRegistry.createRegistry(1099);
    Server obj = new Server();
    Hello stub = (Hello) UnicastRemoteObject.exportObject(obj, 0);
    // Bind the remote object's stub in the registry
    Registry registry = LocateRegistry.getRegistry();
    registry.bind("Hello", stub);
    System.err.println("Server ready");
    catch (Exception e)
    System.err.println("Server exception: " + e.toString());
    e.printStackTrace();
    File Client.java
    package example.hello;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    public class Client {
    private Client() {}
    public static void main(String[] args) {
    String host = (args.length < 1) ? null : args[0];
    try {
    Registry registry = LocateRegistry.getRegistry(host);
    Hello stub = (Hello) registry.lookup("Hello");
    String response = stub.sayHello();
    System.out.println("response: " + response);
    } catch (Exception e) {
    System.err.println("Client exception: " + e.toString());
    e.printStackTrace();
    First I run file Server.java using the following script (server.bat)
    java -Djava.rmi.server.ignoreStubClasses=true -classpath .; example.hello.Server
    pause
    Then the client is run using the following script (client.bat)
    java -classpath .; example.hello.Client 132.186.96.210
    pause
    While running the client, the following exception is obtained.
    Client exception: java.rmi.ServerException: RemoteException occurred in server thread; nested except
    java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at example.hello.Client.main(Client.java:52)
    Caused by: java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:243)
    ... 6 more
    I am not able to figure out why this thing is happening, If i also set the property java.rmi.server.ignoreStubClasses=true on the client side everything goes fine. But this I can't do. I can't set the property on the client side as the system is up and already running.
    I am using JDK version 1.5.0_06. Same exception comes under JDK 6.0
    Any help will be highly appreciated.

    I think this is a bug. When you exported the Registry from your server JVM it was also exported with java.rmi.server.ignoreStubClasses=true, but the Registry bootstrap at the client requires the 1.1 stub protocol for compatiblity reasons so you got this error. I would report this on the Bug Parade.
    You could get around it by setting java.rmi.server.ignoreStubClasses after exporting the Registry.
    BTW java.rmi.server.ignoreStubClasses isn't supposed to do anything at the client whether true or false so you can cut your testing space in half.

  • Java.rmi.RemoteException:  newServlets not found

    I am developing a java servlet using J2EE 1.4 RI.
    I have developed a new application called newServlets.ear. This application has a web component named Servlet1. When I click on Tools, Deploy I get the following error:
    stop newServlets
    running...
    java.rmi.ServerException: RemoteException occured in server thread; nested exception is:
    java.rmi.RemoteException: newServlets not found; nested exception is
    javax.management.InstanceNotFoundException: newServlets not found at
    com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:61)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at
    org.omg.stub.com.sun.enterprise.tools.deployment.backend.JarInstaller_Stub.stop(Unknown Source)
    The J2EE RI Verifier produces no failed tests or warnings.
    I have no idea what is causing this. Each time this happens, the Command Prompt window that is running J2ee server displays the message:
    Stop recieved
    I have tried stopping and restarting both the j2ee server and deploytool, but this has not fixed the problem.
    In my servlet, I would like to take information that has been entered into an HTML text field and add it to a MS Access database. I have the following code in my servlet to load the driver:
    final String pathConnection="jdbc:odbc:"+dataBase;
    con = null;
    String driverName="sun.jdbc.odbc.JdbcOdbcDriver";
    try{
    try{
    Class.forName(driverName);
    System.out.println("OK");
    catch (ClassNotFoundException e)
    System.out.println(" ERROR : driver not found");
    e.printStackTrace();
    }//end inner try/catch
    System.out.println("Drivers (DriverManager.getDrivers()) :");
    con = DriverManager.getConnection(pathConnection, "", "");
    }//end outer try block
    catch (Exception e)
    e.printStackTrace();
    }//end outer catch
    The following code is being used to enter the data into the database:
    try {
    stmt = con.prepareStatement(
    "INSERT INTO User (emailAddress, passWord) VALUES (?, ?)");
    stmt.setString(1, emAddress);
    stmt.setString(2, passWord);
    stmt.executeUpdate();
    catch (SQLException e) {
    System.err.println(e);
    e.printStackTrace();
    finally {
    con.close();
    Is it possible that something in the code above is causing the problem??
    Please help!!
    I am running J2EE 1.4 RI and J2SDK1.4.1_01 on Windows XP Professional.

    java.rmi.ServerException: RemoteException occured in
    server thread; nested exception is:
    java.rmi.RemoteException: newServlets not found;
    nested exception is
    javax.management.InstanceNotFoundException:
    newServlets not found at
    I'm having a similar problem trying to deploy an EJB on the j2ee 1.4 ri. It appears to be some sort of JMX problem. I suspect it has something to do with having a wrong value somewhere in the sun-j2ee-ri.xml descriptor, but I haven't figured it out yet. If you have, can you let me know what you did to fix it?
    Thanks,
    Steve

Maybe you are looking for

  • EPM 11.1.2.0 and Smartview 11.1.2.1

    We currently use Office 2003 and 2007 with EPM 11.1.2.0. Our IT is going to be rolling Office 2010, we have been told that we need Smartview 11.1.2.1. We currently have no plans to upgrade EPM 11.1.2.1. The question what is the best way to rollout Sm

  • Is there a way to convert from Flash to Dreamweaver???

    Hi, this is my first forum question on here, so I hope I am explaining this okay. I have a Flash website ready to go and what I would like to do (after the recent news about flash I was advised to change it) is export the file to dreamweaver and load

  • Choppy playback with mxf files...

    Hello.  I have been working with Premiere Pro CS3 for quite sometime until just recently.  Then last week I installed Windows 7, then Premiere Pro CS5.5 along with various updates.  I usually work with DVCProHD (Panasonic), 720p, 60p.  I just started

  • "lightroom encountered an erorr when reading from it's preview cache and needs to close"

    I can't get rid of this error message.  I have moved/deleted the preview cache..did not help.  I then deleted all the other files in the "Lightroom" folder...doesn't help.  Please help!!  thank you in advance

  • CRM and BW?

    Hi Friend’s Integration between CRM and BW Regards, Mahesh Kumar [email protected]