RMI Trouble - UnmarshalException

I had several classes thata had been working great under RMI until I made a smalla change
I change the package path of my classes adding a parent package and adding a level in the
directory path (from D:\Des\MicroApl to D:\Des\MicroAplsrc), so my directory tree change from:
D:\Des\MicroApl
transmision
modelo
controlador
vista
to:
D:\Des\MicroApl
jars
make
classes
docs
src
rut
transmision
modelo
controlador
vista
So I change the package statement in the classes adding the new level, for instance, from:
package modelo;
to:
package rut.modelo;
and i change my make files in order to compile the classes acordingly, from:
javac modelo\ModeloMaestro.java
to:
javac rut\modelo\ModeloMaestro.java
and from:
rmic modelo.ModeloMaestro
to:
rmic rut.modelo.ModeloMaestro
I also changed the path of my call from:
java -cp .\mimjdbc-2_2.jar;. modelo.ModeloMaestro
to:
java -cp D:\Des\MicroApl\jars\mimjdbc-2_2.jar;. rut.modelo.ModeloMaestro
Now, after compiling without any error, I get a big runtime error, as follows:
Excepcion Remota de servidor: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: rut.modelo.ModeloMaestro_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: rut.modelo.ModeloMaestro_Stub
     at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352)
Does anyone knows whats going on?
I had not made any other change,
not at all
Juan
[email protected]

I had a similar problem after connecting the internet using a modem
Win 98 coudln't restore the local TCP/IP after that

Similar Messages

  • Please help! HelloWorld RMI getting UnmarshalException

    I am just trying to run the HelloWorld RMI example from SUN:
    http://java.sun.com/j2se/1.3/docs/guide/rmi/getstart.doc.html
    And I want to dynamic download the stub class to the client.
    I have read the other threads here but no suggestions solved the problem. Of course if I copy the stub class to the client PC, it will work.
    I am running server and client on two NTs. The policy file grants all permissions. And I don't have the stub class available thru the server's classpath (it won't work if I do either). Actually I didn't add anything to the classpath.
    The codebase looks like:
    -Djava.rmi.server.codebase=http://ip address of the server/classes/
    or -Djava.rmi.server.codebase="file:/C:\Netscape\Server4\docs\classes/"
    or -Djava.rmi.server.codebase="file://C:/Netscape/Server4/docs/classes/"
    I use IPlanet as the webserver so C:/Netscape/Server4/docs/ is the public html dir. And the stub, skel, and server classes are under classes dir.
    The error is:
    java.io.IOException: Malformed URL: file:/C:/AT/ file:/C:/Netscape/Server4/docs
    /javax.jar file:/C:/iPlanet/iAS6/ias/lib/java/kfcjdk11.jar file:/C:/iPlanet/iAS
    Series Client/java/lib/com.ibm.mq.jar file:/C:/Program Files/MQSeries Client/ja
    :/C:/AT/scripts/ file:/C:/AT/xml/xerces.jar
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.ja
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.jav
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:89)
    at examples.hello.HelloClient.main(HelloClient.java:15)
    It looks like it takes the classpath on my server PC as the URL instead of taking the codebase.
    At last I want to point out that the example SUN provided was using an Applet on the client side, which works fine when I tried it. But I want to test an application running on the client, so I just wrote this HelloClient.java, which caused all the problem:
    package examples.hello;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    public class HelloClient {
    static public void main(String args[]) {
         try {
    Hello obj = (Hello)Naming.lookup("//" + args[0] + "/HelloServer");
         String message = obj.sayHello();
         System.out.println("HelloClient: " + message);
         } catch (Exception e) {
         System.out.println("HelloClient exception: " +
                        e.getMessage());
         e.printStackTrace();
    To run the client: java examples.hello.HelloClient 111.11.11.111 (IP address of the server)
    I know there are a lot RMI gurus here, please suggest if you tried running RMI on two PCs with stub downloading to an Java application. Thanks a lot,

    the UnmarshalException can also be thrown bcause of not implementing Serializable interface to ur RMIServer class...
    just try out this,
    cause i was also getting the same pb. and got solved ....
    Regards,
    Ritesh

  • RMI Client UnmarshalException with UNC paths

    I have a 'none' Java application, that has an embedded JVM which is being used as an RMI server to allow communication to the application from a browser. The applet detects the presence of the RMI server and if not detected, will start the application, which in turns starts the RMI server. Once the RMI server is started the Client then invokes the method on the server, and hence into the application.
    If the executable for this application is pathed to either a local or mapped drive then everything works as expected, if I then try to use a UNC path, once the RMI server is started, the client returns an UnmarshalException:
    java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
    java.io.EOFException
    java.io.EOFException
    at java.io.DataInputStream.readByte(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Unknown Source)
    I guess that the problem is that the serialization process has been started, and as the client starts reading from the datastream the UNC paths cause the EOF Exception. any help on how to get round this problem would be gratefully received. Unfortunately using a mapped drive is not a solution to this problem due to the way the application is being served.

    Hi all,
    It turns out that when the java.policy file is being read, it ignores the servername on the UNC path and therefore looks for a directory of the remaining data of the UNC path for the file. I guess it is now a task of figuring out why this is...

  • RMI Exceptions:UnmarshalException and AccessControlException

    Hi,
    While running my RMI Application, the client throws the exception:
    java.rmi.UnmarshalException:Error unmarshalling return header; nested exception is:
    java.io.EOFException
    while the server throws the following exception:
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    0.10.2.0:1325 accept,resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:267)
    at java.security.AccessController.checkPermission(AccessController.java:
    394)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
    at java.lang.SecurityManager.checkAccept(SecurityManager.java:1157)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.checkAcceptPermi
    ssion(TCPTransport.java:562)
    at sun.rmi.transport.tcp.TCPTransport.checkAcceptPermission(TCPTransport
    .java:201)
    at sun.rmi.transport.Transport$1.run(Transport.java:146)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
    60)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:701)
    at java.lang.Thread.run(Thread.java:479)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    0.10.2.0:1327 accept,resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:267)
    at java.security.AccessController.checkPermission(AccessController.java:
    394)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
    at java.lang.SecurityManager.checkAccept(SecurityManager.java:1157)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.checkAcceptPermi
    ssion(TCPTransport.java:562)
    at sun.rmi.transport.tcp.TCPTransport.checkAcceptPermission(TCPTransport
    .java:201)
    at sun.rmi.transport.Transport$1.run(Transport.java:146)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
    60)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:701)
    at java.lang.Thread.run(Thread.java:479)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    0.10.2.0:1326 accept,resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:267)
    at java.security.AccessController.checkPermission(AccessController.java:
    394)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
    at java.lang.SecurityManager.checkAccept(SecurityManager.java:1157)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.checkAcceptPermi
    ssion(TCPTransport.java:562)
    at sun.rmi.transport.tcp.TCPTransport.checkAcceptPermission(TCPTransport
    .java:201)
    at sun.rmi.transport.Transport$1.run(Transport.java:146)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
    60)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:701)
    at java.lang.Thread.run(Thread.java:479)
    I would be glad to receive assistance from anyone, please.
    Best regards

    I looks like you forgot to specify the security policy:
    see http://java.sun.com/docs/books/tutorial/rmi/running.html
    Genady

  • RMI Trouble with ImageIcon

    Hi,
    I would like to send an objekt by RMI to a client.
    The object extends a DefaultTreeCellRenderer which needs
    several ImageIcons to show a tree correctly.
    The class for this looks like this
    public class AppTreeRenderer extends DefaultTreeCellRenderer
         private static ImageIcon whi_Ico;
         private static ImageIcon gre_Ico;
            public AppTreeRenderer()
              whi_Ico = new ImageIcon("wth.gif");
              gre_Ico = new ImageIcon("grn.gif");
    }Right now i can receive the object. (At least i can see some "System.out.println" on the client i added to the class)
    But i can't see the ImageIcons. I know that there are problems
    with Images over RMI. But I thought that ImageIcon should do as they
    are Serializable.
    Thanks
    Oliver

    Yes it is,
    i will give you a short description of what my application does.
    Server looks periodically into a directory and stores filelist
    as DefaultMutableTreeNode.
    Client gets DefaultMutableTreeNode when a button is pressed a and shows it correctly as JTree.
    Everything works fine so far
    But now I would like to set my own TreeCellRenderer with other icons.
    So i thought about transmitting a DefaultTreeCellRenderer with my own ImageIcons.
    But it doesn't show the icons.
    Oliver

  • Rmic and java.rmi troubles

    Hi
    Have been trying to run the rmi calculator-example at http://java.sun.com/developer/onlineTraining/rmi/RMI.html, but keep getting:
    Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class CalculatorImpl
    <<No stacktrace available>>
    Caused by: java.lang.ClassNotFoundException: java.rmi.server.UnicastRemoteObject not found in [file:./, core:/]
    <<No stacktrace available>>
    when i do ">rmic CalculatorImpl"
    Suspected at first that it was a classpath-problem. But using ">rmic -classpath c:\j2sdk1.4.2_05\lib CalculatorImpl" gave the same error.
    Anyone know why I get this error?
    regards

    Sorry, my error, I didn't read your post closely.
    Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class CalculatorImplInternal Error = Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.
    VirtualMachineError =Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.
    I would have to take a wild guess and that wouldn't be fair to you. Normally I would congradulate you on breaking the JVM but I don't suppose you're ready for that yet.

  • Client1 to RMIServer to Client2

    I have actually have 2 applications.
    (GUI)application1 is the sent request to the Rmi server.
    the server will update the database and then update the application2.(GUI)
    Can I have the brief concept on this kind of implementation?
    thanx a lot

    Hi
    The main (RMI) trouble to get past here is that RMI can not be used to push things from server to client, it's function calls right.
    What you need to do is define a Remote interface (say 'callMe')that 'Client2' implements and exports. The server can then expose an interface (say 'whoToCall') for registering clients that want to be called by this interface. So when 'Client2' starts it creates an instance of 'callMe' and connects to the servers 'whoToCall' interface to register the local 'callMe' interface. Then the server can use the 'callMe' interface to push information to client2.
    Hope this helps
    //Samuel

  • 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

  • Java.rmi.UnmarshalException:

    hai,
    I am facing a problem in rmi , when running my RMI server program, I am a beginner to this area, earlier it was working and i got the output, i didnt change anything, i used three windows to test my program, one for rmiregistry, another for running the server and other for running the client.
    But when i execute server, after two seconds i got the following error,
    Trouble java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
    java.net.SocketException: Connection reset
    please help me to solve this.
    rajesh kumar

    I am a beginner to this area, earlier
    it was working and i got the output, i didnt change
    anythingevidently, you did, or it would still be working

  • RemoteException: java.rmi.UnmarshalException in jdk 1.4.2

    i'm implementing an RMI over the jdk 1.4.2 (can't do it in the 1.5 or 1.6) i've seen this topic [http://forum.java.sun.com/thread.jspa?threadID=370196&messageID=1808449] but it didn't help me, or i'm doing something wrong...
    i know the RMI code is ok because it runs on java 1.6 (with the automatic generation of stubs and skeletons) but when i change the platform to 1.4 it throws the exception:
    RemoteException: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: servidor.MensageiroImpl_Stub
    the VM is configured to use the -Djava.security.policy=C:\Projecto\Policy\permissions.policy both in the client and server
    please help me :S i've been burning my head with this for 3 days
    i leave my code here:
    The interface:
    package rmiinterface;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Mensageiro extends Remote {
        public void sendMsg(String msg) throws RemoteException;
        public String readMsg() throws RemoteException;
    }the implementation:
    package servidor;
    import rmiinterface.Mensageiro;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class MensageiroImpl extends UnicastRemoteObject implements Mensageiro {
        public MensageiroImpl() throws RemoteException {
            super();
        public void sendMsg(String msg) throws RemoteException {
            System.out.println(msg);
        public String readMsg() throws RemoteException {
            return "This is not a Hello World! message";
    }the server:
    package servidor;
    import rmiinterface.Mensageiro;
    import java.rmi.Naming;
    import java.rmi.RMISecurityManager;
    public class MensageiroServer {
        public MensageiroServer() {
            System.setSecurityManager(new RMISecurityManager());
            try {
                Mensageiro m = new MensageiroImpl();
                java.rmi.registry.LocateRegistry.createRegistry(1099);
                System.out.println("RMI registry successfully initiated");
                Naming.rebind("MensageiroService", m);
                System.out.println("Servidor Online");
            } catch (Exception e) {
                System.out.println("Trouble: " + e.getMessage());
        public static void main(String[] args) {
            new MensageiroServer();
    }and the client:
    package cliente;
    import rmiinterface.Mensageiro;
    import java.rmi.RMISecurityManager;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.NotBoundException;
    import java.net.MalformedURLException;
    public class MensageiroClient {
        public MensageiroClient() {
        public static void main(String args[]) {
            System.setSecurityManager(new RMISecurityManager());
            try {
                Mensageiro m = (Mensageiro) Naming.lookup("//localhost/MensageiroService");
                System.out.println(m.readMsg());
                m.sendMsg("Hello World!");
            } catch (MalformedURLException e) {
                System.out.println();
                System.out.println("MalformedURLException: " + e.toString());
            } catch (RemoteException e) {
                System.out.println();
                System.out.println("RemoteException: " + e.toString());
            } catch (NotBoundException e) {
                System.out.println();
                System.out.println("NotBoundException: " + e.toString());
            } catch (Exception e) {
                System.out.println();
                System.out.println("Exception: " + e.toString());
    }NOTE: my IDE is Netbeans 6.1. and the client and server are in diffrent projects
    thanks in advance
    Best Regards,
    Carlos Daniel Ribeiro

    the stub and the skeleton are being generated, and they are there, in the server project! i don't know why the class defs for the stub filearen't downloded by the client project...I don't know why you think they will be downloaded. They won't be, unless you're using the codebase feature. The client needs the remote interface and the stub on its classpath, and all classes that the remote interface depends on, and so on recursively until closure. You have to do something about that.
    It works under 1.6 because it doesn't need the stub at all.

  • 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

  • Trouble to invoke BPEL from Java Client following rmi example

    I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi .
    I created my Java class within NetBeans IDE. And the following line of code return null for url,
    java.net.URL url = ClassLoader.getSystemResource("context.properties");
    I think that I need to have SystemResource set up somewhere, how should I do that?

    if you using oc4j.. then please make a small change in oc4j_context.properties
    from
    java.naming.provider.url=[java.naming.provider.url]
    to
    java.naming.provider.url=ormi://hostname/orabpel
    And please make sure the context.properties file which gets copied to classes/context.properties has this above entry. For more details please refer to build.xml under rmi folder.
    Please do let me know if you face any issue.

  • 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.

  • Trouble in executing RMI from servlet

    hello everybody..
    I have trouble in invoking RMI from the servlet.. i get an exception saying connection refused to 192.168.16.65 (my RMI server is running on this system) .
    Later i tried running RMI on the same system and got the exception saying connection refused to 127.0.0.1 .
    pls help me to solve this trouble.
    thanks
    - abdel Olakara

    Plz send me code where you are using lookup() method bcoz without seeing code we cant undersatnd the error(pblm). plz also send the interface.

  • UnmarshalException, client and rmi

    Hello,
    I'm developing client/server application using RMI. The problem occurs when I want to run it all and test. I do as follows:
    (first of all, I compile each project (server and client) from Eclipse.
    then with server:
    rmic engine/ServerImplementation.class
    start rmiregistry
    java SpikServerand with client:
    java -Djava.security.policy=c:\wideopen.policy SpikClient 127.0.0.1and then I receive such an errors:
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
            java.lang.ClassNotFoundException: engine.ServerImplementation_Stub
            at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
            at java.rmi.Naming.lookup(Unknown Source)
            at engine.ClientImplementation.connect(ClientImplementation.java:44)
            at userInterface.Console.run(Console.java:19)
            at SpikClient.main(SpikClient.java:9)
    Caused by: java.lang.ClassNotFoundException: engine.ServerImplementation_Stub
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
            at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
            at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
            at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
            at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
            at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
            at java.io.ObjectInputStream.readClassDesc(Unknown Source)
            at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
            at java.io.ObjectInputStream.readObject0(Unknown Source)
            at java.io.ObjectInputStream.readObject(Unknown Source)
            ... 5 moreHow can I fix it? Any suggestions are welcome. If more information are required just let me know, I will deliver them.
    Kind regards,
    John.

    I read that part of a faq but still I don't know what should I do. I don't want to use http or ftp protocols to transfer needed data. On the other hand I can run an example from this page: http://www.javacamp.org/moreclasses/rmi/rmi6.html without any problem. I also read that before running rmiregistry the classpath should be unset. And I do so but after starting rmiregistry I have to set classpath to make work derby database (set CLASSPATH=C:\eclipse-java-europa-win32\eclipse\plugins\org.apache.derby.core_10.3.2\derby.jar;C:\eclipse-java-europa-win32\eclipse\plugins\org.apache.derby.core_10.3.2\derbytools.jar;.)
    so maybe that's the problem? What do you think about this?

Maybe you are looking for

  • Cant ping windows computers with new E4200 LAN/wLAN

    just replaced a WRT54G with E4200. Most functions work well. 4 wireless computers (1 Macbook, 3 Win 7), 1 wireless android, 1 wired Win7 computer, 1 ethernet connected hard drive, 1 ethernet connected printer. All computers can ping router, access ha

  • White Macbook 15" Keyboard and Trackpad Freeze

    I'm hoping someone can help me.  I have a white 15" macbook that is having some issues with the keyboard and trackpad freezing.  Both are completely dead.  When I wiped the machine, during the OS install, it said there was no keyboard attached.  I ca

  • Playing background music across all pages in an application

    I want to have background music playing as people use my application but I want to give them the option to turn it off. My solution is to have a button on my homepage that the user clicks to start background music. The code that launchs the music and

  • HOW DO YOU CLAME ON THE PRODUCT WARRENTY ON A CRAKED IPOD SCREEN

    how do you clame on the product warrenty on a cracked ipod 4g screen 9 months old?

  • My Screen Has White Marks In It. Can It Be Fixed?

    My Mac Book Pro screen has these two white blobs on it and they wont clean off so they have to be premanate, I think i recall placing my foot on it while it was closed on the ground. Did really step on it hard but has to be the only reason why this i