[jboss-user] [Remoting] - Connections to Linux servers fail

FrankTheTank do-not-reply at jboss.com
Tue May 5 07:43:34 EDT 2009


Hello all.

An issue came up with a client running under WinXP tries to connect to a Linux system using the Linux systems hostname if the name contains an underscore (_).

Setup:
Debian Etch 4 Linux server
Samba for name resolution
Jboss 4.2.3
Jboss-remoting 2.4.0.SP1

The client RCP client knows the name of the Linux server and tries to connect to it, but fails with a RuntimeException:


  | Caused by: java.lang.RuntimeException: server_name.domain.it
  |             at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:275)
  |             at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:75)
  |             at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39)
  |             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |             at java.lang.reflect.Method.invoke(Unknown Source)
  |             at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:425)
  |             at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:324)
  |             at org.jboss.remoting.Client.connect(Client.java:484)
  |             at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61)
  |             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |             at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
  |             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |             at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
  |             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |             at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
  |             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |             at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
  | 
  | 

This seems to only affect the remoting stuff as no other system has issues.
A simple (beanshell) lookup works fine:

  | print(InetAddress.getByName("server_name"));
  | 

I know that the hostname should not have an underscore but remoting seems ATM the only thing that has problems with this.

What can I do besides not using underscores?
Thanks

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228613#4228613

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228613



More information about the jboss-user mailing list