-
1. Re: JNDI Hangs
jonlee May 28, 2003 8:22 PM (in response to keith_elliott)Have you implemented JBoss's third JNDI requirement - the factory packages?
Programmatically:
Properties jndiProps = new Properties();
jndiProps.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
jndiProps.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
jndiProps.setProperty("java.naming.provider.url","jnp://jboss-server:1099");
Or in your JNDI properties file:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://jboss-server:1099
If you are working with multiple J2EE servers, I'd suggest a JNDI reference factory class where you can swap in the desired property instantiations for the install. Or just use jndi.properties? Depends how much you trust the installation engineers. ;) -
2. Re: JNDI Hangs
keith_elliott May 28, 2003 8:31 PM (in response to keith_elliott)Thanks for the quick response!
I did have the factory packages set, and I just updated the code to set it programmatically to be sure.
However, still no luck.
The same code was working fine last week. No errors are thrown during startup. The installation engineer did mess around with things, but he said he didn't mess with Jboss.
I'm still stumpted. Any other thoughts? Are there external factors that could effect it?
Thanks!
Keith -
3. Re: JNDI Hangs
jonlee May 28, 2003 8:52 PM (in response to keith_elliott)Anything changed since last week? I assume that the clients are in a different JVM from JBoss.
Can you connect to the 1099 port via telnet?
I assume because it was working last week that "localhost:1099" works. I've always used the form "jnp://localhost:1099".
Can the jmx-console app work? Can you get a JNDI list from it? Juts to make sure JNDI is up and running properly. -
4. Re: JNDI Hangs
keith_elliott May 29, 2003 6:23 AM (in response to keith_elliott)I can connect via telnet, and I get output similar to a machine that works.
You are correct, the clients are in a different JVM than Jboss. We are running Tomcat separately, on Linux.
But, I cannot access JNDI via the code above, nor with a JNDI browser. Both work on other machines.
I haven't tried the JMX console, simply because I don't currently know how to access it and don't have time to figure it out at the moment (localhost/jmx-console does not work).
At any rate, it's seems clear that JNDI simply does not work.
We've tried a different java version (IBM). That didn't work.
We've inspected the configuration, and it looks fine - plus it worked fine in the past.
The installation engineer made some various changes last week, like installing linuxconf. But nothing Jboss related.
So, we are still stumpted. Again, any suggestions would be helpful.
Thanks,
Keith -
5. Re: JNDI Hangs
jonlee May 29, 2003 7:05 AM (in response to keith_elliott)Normally, you get a connection refused error if the Linux host resolution is not correctly set up, but check this link and see that things are properly configured at this end of things:
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= jmx-console is web-based so if your JBoss embedded servlet container is still running it would be http://localhost:8080/jmx-console. It is all point-and-click stuff. -
6. Re: JNDI Hangs
keith_elliott May 30, 2003 8:07 AM (in response to keith_elliott)The thread you referenced shed some light!
We did have our /etc/hosts file setup incorrectly - the machine name was pointing to an invalid IP. We fixed that (actually got rid of the line in the file for the hostname), restarted Jboss, and it's working!
The fact that no errors appeared in the logs (not even with DEBUG settings on), made this hard to track down.
But now we are rolling!
Jonlee, I really appreciate your help!
Peace,
Keith -
7. Re: JNDI Hangs
arabin Oct 17, 2003 5:14 PM (in response to keith_elliott)I am running Jboss 3.2.2RC3 on Linux RedHat 9, version 2.4.20-8 #1
I am experiancing problems with connecting from java program on one machine (192.168.1.43) to Jboss running on another one (192.168.1.40).
The java program creates initial context using the following code
{
Properties prop = new Properties ();
prop.put (Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
prop.put (Context.PROVIDER_URL, jnp://192.168.1.40:1099");
prop.put (Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
initCtx = new InitialContext (prop);
}
Then it creates
QueueConnectionFactory qfact = (QueueConnectionFactory) initCtx.lookup("QueueConnectionFactory");
Then it creates other staff (QueueConnection, Queue, QueueSender) and sends the message.
Everything works OK under Windows (when both machines are windows XP machines), the messages from machine 192.168.1.43 are sent correctly to machine 192.168.1.40
Under Linux situation is different. I try various versions of the file /etc/hosts on machine 192.168.1.40, as well as different ways to start Jboss on 192.168.1.40 machine. Those two different ways are with the line -Djava.rmi.server.hostname=192.168.1.40 and without this option in my run.sh file.
Any ideas?
The results are the following:
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
option -Djava.rmi.server.hostname=192.168.1.40
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.40 192.168.1.40
option -Djava.rmi.server.hostname=192.168.1.40
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost 192.168.1.40
option -Djava.rmi.server.hostname=192.168.1.40
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
no output, send from 192.168.1.43 completed correctly, but message driven bean on 192.168.1.40 did not get the results
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.40 localhost.localdomain localhost 127.0.0.1
option -Djava.rmi.server.hostname=192.168.1.40
server output (192.168.1.40)
2003-10-17 17:49:40,720 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 127.0.0.1:54027
2003-10-17 17:49:40,726 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
2003-10-17 17:49:40,742 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-10-17 17:49:40,745 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-10-17 17:49:40,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-10-17 17:49:40,746 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception:
org.jboss.mq.SpyJMSException: Could not pong; - nested throwable: (java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:827)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:183)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
... 5 more
client output (192.168.1.43)
no output, send from 192.168.1.43 completed correcttly
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.40 localhost.localdomain localhost
option -Djava.rmi.server.hostname=192.168.1.40
server output (192.168.1.40)
2003-10-17 17:53:40,769 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
2003-10-17 17:53:40,842 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-10-17 17:53:40,846 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-10-17 17:53:40,846 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-10-17 17:53:40,846 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception:
org.jboss.mq.SpyJMSException: Could not pong; - nested throwable: (java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:827)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:183)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
... 5 more
client output (192.168.1.43)
no output, send from 192.168.1.43 completed correcttly
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
no option -Djava.rmi.server.hostname=192.168.1.40, just plain start
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correcttly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
IP 192.168.1.40 Host 192.168.1.40 initCtx javax.naming.InitialContext@cb6009
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSenderImpl.obtainQueueConnectionFactory(MessageServiceObjectSenderImpl.java:357)
>That is call initCtx.lookup("QueueConnectionFactory");
at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendToHubAndWait(MessageServiceObjectSender.java:378)
at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitResponse(MessageServiceObjectHighSender.java:382)
at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceive(MessageServiceObject.java:659)
at com.wrn.teamworks.cms.client.ExampleRemoteSenderAndAsynchWaiter.main(ExampleRemoteSenderAndAsynchWaiter.java:59)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
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:101)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
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:562)
... 12 more
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.40 192.168.1.40
no option -Djava.rmi.server.hostname=192.168.1.40, just plain start
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correcttly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
same thing
IP 192.168.1.40 Host 192.168.1.40 initCtx javax.naming.InitialContext@cb6009
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSenderImpl.obtainQueueConnectionFactory(MessageServiceObjectSenderImpl.java:357)
>That is call initCtx.lookup("QueueConnectionFactory");
at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendToHubAndWait(MessageServiceObjectSender.java:378)
at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitResponse(MessageServiceObjectHighSender.java:382)
at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceive(MessageServiceObject.java:659)
at com.wrn.teamworks.cms.client.ExampleRemoteSenderAndAsynchWaiter.main(ExampleRemoteSenderAndAsynchWaiter.java:59)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
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:101)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
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:562)
... 12 more
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost 192.168.1.40
no option -Djava.rmi.server.hostname=192.168.1.40, just plain start
server output (192.168.1.40)
no output, send from 192.168.1.43 completed correcttly, but message driven bean on 192.168.1.40 did not get the results
client output (192.168.1.43)
same thing
IP 192.168.1.40 Host 192.168.1.40 initCtx javax.naming.InitialContext@cb6009
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSenderImpl.obtainQueueConnectionFactory(MessageServiceObjectSenderImpl.java:357)
>That is call initCtx.lookup("QueueConnectionFactory");
at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendToHubAndWait(MessageServiceObjectSender.java:378)
at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitResponse(MessageServiceObjectHighSender.java:382)
at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceive(MessageServiceObject.java:659)
at com.wrn.teamworks.cms.client.ExampleRemoteSenderAndAsynchWaiter.main(ExampleRemoteSenderAndAsynchWaiter.java:59)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
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:101)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
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:562)
... 12 more
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.40 localhost.localdomain localhost 127.0.0.1
no option -Djava.rmi.server.hostname=192.168.1.40, just plain start
server output (192.168.1.40)
2003-10-17 18:09:42,049 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
2003-10-17 18:09:42,076 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-10-17 18:09:42,079 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-10-17 18:09:42,080 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-10-17 18:09:42,080 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception:
org.jboss.mq.SpyJMSException: Could not pong; - nested throwable: (java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:827)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:183)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
... 5 more
2003-10-17 18:09:42,265 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 127.0.0.1:54494
2003-10-17 18:09:42,266 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.close(OILClientIL.java:72)
at org.jboss.mq.server.JMSDestinationManager.connectionClosing(JMSDestinationManager.java:569)
at org.jboss.mq.server.JMSServerInterceptorSupport.connectionClosing(JMSServerInterceptorSupport.java:112)
at org.jboss.mq.security.ServerSecurityInterceptor.connectionClosing(ServerSecurityInterceptor.java:61)
at org.jboss.mq.server.TracingInterceptor.connectionClosing(TracingInterceptor.java:158)
at org.jboss.mq.server.JMSServerInvoker.connectionClosing(JMSServerInvoker.java:114)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:268)
at java.lang.Thread.run(Thread.java:534)
client output (192.168.1.43)
javax.jms.IllegalStateException: The session is closed
at org.jboss.mq.SpyQueueSession.createSender(SpyQueueSession.java:128)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSenderImpl.getQueueHubSender(MessageServiceObjectSenderImpl.java:864)
> in the line QueueSender queueSender = session.createSender(queue);
at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendToHubAndWait(MessageServiceObjectSender.java:383)
at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitResponse(MessageServiceObjectHighSender.java:382)
at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceive(MessageServiceObject.java:659)
at com.wrn.teamworks.cms.client.ExampleRemoteSenderAndAsynchWaiter.main(ExampleRemoteSenderAndAsynchWaiter.java:59)
/etc/hosts on machine 192.168.1.40
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.40 localhost.localdomain localhost
no option -Djava.rmi.server.hostname=192.168.1.40, just plain start
server output (192.168.1.40)
2003-10-17 18:15:19,061 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 127.0.0.1:54578
2003-10-17 18:15:19,067 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
2003-10-17 18:15:19,093 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2003-10-17 18:15:19,096 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2003-10-17 18:15:19,097 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2003-10-17 18:15:19,097 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception:
org.jboss.mq.SpyJMSException: Could not pong; - nested throwable: (java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:827)
at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:308)
at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:712)
at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:310)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:329)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:183)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.pong(OILClientIL.java:112)
at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:823)
... 5 more
2003-10-17 18:15:19,279 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 127.0.0.1:54578
2003-10-17 18:15:19,279 ERROR [org.jboss.mq.il.oil.OILClientIL] Cannot connect to the ConnectionReceiver/Server
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:153)
at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
at org.jboss.mq.il.oil.OILClientIL.close(OILClientIL.java:72)
at org.jboss.mq.server.JMSDestinationManager.connectionClosing(JMSDestinationManager.java:569)
at org.jboss.mq.server.JMSServerInterceptorSupport.connectionClosing(JMSServerInterceptorSupport.java:112)
at org.jboss.mq.security.ServerSecurityInterceptor.connectionClosing(ServerSecurityInterceptor.java:61)
at org.jboss.mq.server.TracingInterceptor.connectionClosing(TracingInterceptor.java:158)
at org.jboss.mq.server.JMSServerInvoker.connectionClosing(JMSServerInvoker.java:114)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:268)
at java.lang.Thread.run(Thread.java:534)
client output (192.168.1.43)
javax.jms.IllegalStateException: The session is closed
at org.jboss.mq.SpyQueueSession.createSender(SpyQueueSession.java:128)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSenderImpl.getQueueHubSender(MessageServiceObjectSenderImpl.java:864)
at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendToHubAndWait(MessageServiceObjectSender.java:383)
at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitResponse(MessageServiceObjectHighSender.java:382)
at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceive(MessageServiceObject.java:659)
at com.wrn.teamworks.cms.client.ExampleRemoteSenderAndAsynchWaiter.main(ExampleRemoteSenderAndAsynchWaiter.java:59)