Results 1 to 3 of 3

Thread: Unable to use an existing rmiregistry

  1. #1

    Default Unable to use an existing rmiregistry

    When I don't start an rmiregistry manually, spring starts it for me and everyting works fine.
    If I start it manually, I get the following exception:

    Code:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientExporter' defined in null: Initialization of bean failed; nested exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
    	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:350)
    	at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    	at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:169)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1037)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:305)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
    	at davinci.jedi.kernel.JediModule.start(JediModule.java:107)
    	at davinci.jedi.kernel.JediModule.main(JediModule.java:173)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:324)
    	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    	java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
    Caused by: java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
    Is it even possible to use an rmiregistry that is not started by spring?
    I use port 1199

  2. #2
    Join Date
    Jul 2005
    Posts
    1

    Default Am experiencing same problem

    I am also experiencing the same characteristics. Did you ever resolve the issue so that Spring will work with a registry that it does not start?

  3. #3

    Default

    Nope, I couldn't solve this (and I didn't have the time to search for it )
    My workaround:
    I do start my rmi registry now with a little do-nothing-spring application, which starts the rmi registry for me. This simple application is running as a service, so it is started always before my other app's do...

Similar Threads

  1. Beandoc crashing (on its samples!)
    By aaime in forum Container
    Replies: 17
    Last Post: Oct 7th, 2005, 07:21 AM
  2. PerformanceMonitorInterceptor
    By tnist in forum AOP
    Replies: 3
    Last Post: Aug 24th, 2005, 01:39 PM
  3. Replies: 2
    Last Post: May 28th, 2005, 04:51 PM
  4. Using Existing web.xml As Security Config
    By sethladd in forum Security
    Replies: 4
    Last Post: Jan 31st, 2005, 12:42 PM
  5. Replies: 16
    Last Post: Nov 19th, 2004, 09:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •