JNDI service is not bound in the registry for URL
Contremo <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all
First, I apologize my poor english.
I have a little problem running the OpenJMS 0.7.6.1. When launch the
service and inmediately the runsender example, I got the next error:
javax.naming.ServiceUnavailabl
eException: JNDI service is not bound in the
registry for URL: rmi://192.168.51.10:1099/JndiServer
at org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(RmiJndiI
nitialContextFactory.java:140)
at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFacto
ry.java:109)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at openjms.examples.client.console.ContextHelper.getContext(ContextHelper.java:121
)
at openjms.examples.client.console.SimpleSender.main(SimpleSender.java:95)
where 192.168.51.10 is the IP address of my computer. This is defined
changing the openjms.xml line:
<ServerConfiguration host="localhost" embeddedJNDI="true" />
This change was made because before OpenJMS assumed 192.168.1.1 as the localhost
IP. I have probed to set embedded JNDI="false" and configure JNDI as
a external provider, but no solution here.
This is not all, folks!
If I launch runsender a few minutes later, he tryes to connect to the
service, and many minutes later I have a beautiful timeout like this:
javax.naming.ServiceUnavailableException: Connection refused to host:
192.168.1.1; nested exception is:
java.net.ConnectException: Connection timed out [Root
exception is java.rmi.ConnectException: Connection refused to host:
192.168.1.1; nested exception is:
java.net.ConnectException: Connection timed out]
at org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(RmiJndiInitialContextFactory.java:155)
at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:109)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at openjms.examples.client.console.ContextHelper.getContext(ContextHelper.java:121)
at openjms.examples.client.console.SimpleSender.main(SimpleSender.java:95)
Caused by: java.rmi.ConnectException: Connection refused to host:
192.168.1.1; nested exception is:
java.net.ConnectException: Connection timed out
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub.getNameParser(Unknown
Source)
at org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(RmiJndiInitialContextFactory.java:151)
... 7 more
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 12 more
I don't know why try to connect 192.168.1.1 if this address is not set
in my configuration files or java code.
I don't know why last friday this example works, but yesterdey (and today) not.
Have I a gremlin or simply a headache?
Thanks all coming help
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005