org.jboss.remoting.CannotConnectException (ejb3)
mhaerdi May 11, 2005 11:47 AMHello
When trying to connect to jboss (behind firewall) from a java client outside, i get a
org.jboss.remoting.CannotConnectException: Can not get connection to server. Pr
oblem establishing socket connection.
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(Soc
ketClientInvoker.java:232)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.jav
a:117)
at org.jboss.remoting.Client.invoke(Client.java:201)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemot
eInterceptor.java:39)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:66)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPr
opagationInterceptor.java:44)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:66)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityC
lientInterceptor.java:38)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:66)
at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalIntercept
or.java:32)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:66)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteP
roxy.java:82)
at $Proxy1.getAllDomains(Unknown Source)
at ch.own.fdomaintab.client.FDomaintabService.(FDomaintabService.j
ava:26)
at ch.own.fdomaintab.client.FDomaintabService.inst(FDomaintabService.jav
a:45)
at ch.own.immo.client.LiegenschaftTypPanel.initComponents(LiegenschaftTy
pPanel.java:43)
at ch.own.immo.client.LiegenschaftTypPanel.(LiegenschaftTypPanel.j
ava:33)
at ch.own.immo.client.LiegenschaftWizard.(LiegenschaftWizard.java:
38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at ch.own.fclient.panels.FDesktop$2.run(FDesktop.java:233)
at ch.own.fclient.thread.foxtrot.AbstractWorkerThread$2.run(AbstractWork
erThread.java:49)
at java.security.AccessController.doPrivileged(Native Method)
at ch.own.fclient.thread.foxtrot.AbstractWorkerThread.runTask(AbstractWo
rkerThread.java:45)
at ch.own.fclient.thread.foxtrot.workers.DefaultWorkerThread.run(Default
WorkerThread.java:153)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
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.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at org.jboss.remoting.transport.socket.SocketClientInvoker.getConnection
(SocketClientInvoker.java:450)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(Soc
ketClientInvoker.java:228)
... 29 more
My configuration:
jboss 4.0.2RC1
ejb3 preview 4
firewall ports forwarded to jboss:
1098 1099 4444 4445 3528 (all TCP&UDP)
I did not change any jboss config file
I start jboss with run.bat -c all -Djava.rmi.server.hostname=<outer-ip-addr> -Djava.rmi.server.useLocalHostanme=false
The client is behind a firewall too, but all ports are open in lan->wan direction
Thanks in advance