1 Reply Latest reply on Jan 26, 2004 10:22 AM by Gary Kephart

    Bug in JRMPInvoker?

    Gary Kephart Newbie

      I have a Swing client connecting to JBoss (3.2.1). It's using Web Start and also RMI over HTTP. My network connection is:
      Cox->cable modem->wireless modem->photeus
      The wireless modem (IP 68.4.172.99) has its own DHCP server (which I need to use) and therefore the IP for photeus is 192.168.1.103. My client app cannot connect, and the exception is:
      java.rmi.ConnectException: Connection refused to host: 192.168.1.103; nested exception is:
      java.net.ConnectException: Connection timed out: connect

      Therefore, it seems that JRMPInvoker is returning 192.168.1.103 instead of the wireless modem's IP of 68.4.172.99. I don't expect JRMPInvoker to know the wireless router's IP address, but I do expect it to use the http-invoker attributes that I set up in the jboss-service.xml instead of InetAddress.getLocalHost().getHostName().

      < mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
      name="jboss:service=invoker,type=http,target=Naming">
      <!-- The Naming service we are proxying -->
      < attribute name="InvokerName">jboss:service=Naming< /attribute>
      <!-- Compose the invoker URL from the cluster node address -->
      <!--
      < attribute name="InvokerURLPrefix">http://< /attribute>
      < attribute name="InvokerURLSuffix">:8080/invoker/JMXInvokerServlet< /attribute>
      -->
      < attribute name="UseHostName">true< /attribute>
      < attribute name="ExportedInterface">org.jnp.interfaces.Naming< /attribute>
      < attribute name="JndiName">< /attribute>
      < attribute name="InvokerURL">http://www.photeus.com:8080/invoker/JMXInvokerServlet< /attribute>
      < /mbean>

        • 1. Re: Bug in JRMPInvoker?
          Gary Kephart Newbie

          Let me add on more of the exception stack trace:

          java.rmi.ConnectException: Connection refused to host: 192.168.1.103; nested exception is:
          java.net.ConnectException: Connection timed out: connect
          at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
          at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
          at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
          at sun.rmi.server.UnicastRef.invoke(Unknown Source)
          at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
          at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
          at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
          at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
          at $Proxy2.create(Unknown Source)