-
Apr 20th, 2012, 04:13 AM
#1
RMI Service lookup from client: Does not work sometimes
Hi,
I am using Web Sphere Application Server. I have configured RMIServiceExporter in my spring config file in the application. When I try to access the same from my client using RmiProxyFactoryBean, I am getting the error "Could not find RMI Service".
The service URL is correct. This was working sometime back. This doesnt work unexpectedly now.
Below is the exception trace:
org.springframework.remoting.RemoteLookupFailureEx ception: Could not find RMI service [rmi://host:50000/RMIClient] in RMI registry; nested exception is java.rmi.NotBoundException: RMIClient
at org.springframework.remoting.rmi.RmiClientIntercep tor.lookupStub(RmiClientInterceptor.java:211)
at org.springframework.remoting.rmi.RmiClientIntercep tor.prepare(RmiClientInterceptor.java:147)
at org.springframework.remoting.rmi.RmiClientIntercep tor.afterPropertiesSet(RmiClientInterceptor.java:1 35)
at org.springframework.remoting.rmi.RmiProxyFactoryBe an.afterPropertiesSet(RmiProxyFactoryBean.java:68)
at Test.main(Test.java:26)
Caused by: java.rmi.NotBoundException: RMIClient
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl. java:118)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Regist ryImpl_Skel.java:81)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:391)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:255)
at sun.rmi.transport.Transport$1.run(Transport.java:1 71)
at java.security.AccessController.doPrivileged(Access Controller.java:284)
at sun.rmi.transport.Transport.serviceCall(Transport. java:167)
at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:547)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run0(TCPTransport.java:802)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:661)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:896)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:735)
at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:267)
at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:245)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:3 71)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Registry Impl_Stub.java:96)
at java.rmi.Naming.lookup(Naming.java:95)
at org.springframework.remoting.rmi.RmiClientIntercep tor.lookupStub(RmiClientInterceptor.java:200)
... 4 more
Please give any clue, so that I can resolve it.
Regards,
Bharat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules