1 Reply Latest reply on Feb 18, 2002 9:29 PM by Mike

    Cannot get a client ID: Cannot assign requested address: con

    Mike Newbie

      By god the frustration is mounting...

      I have seen this problem with 2.4.4 posted about 6 times but no-one has the answer, so I will ask once again:

      When running 2.4.4 on Win 98 jdk 1.3.1, whenever I try to run the HelloPublisher/HelloSubscriber pairs from the volonteer docs and I keep getting the following (even when I run with the ant scripts or from the commandline):

      C:\jdk1.3\bin\javaw -classpath "E:\JBoss-2.4.1\examples;E:\JBoss-2.4.1\client\jaas.jar;E:\JBoss-2.4.1\client\jboss-client.jar;E:\JBoss-2.4.1\client\jboss-j2ee.jar;E:\JBoss-2.4.1\client\jbossmq-client.jar;E:\JBoss-2.4.1\client\jndi.jar;E:\JBoss-2.4.1\client\jnp-client.jar;E:\JBoss-2.4.1\client\log4j.jar;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\jre\lib\jaws.jar;C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\jre\lib\sunrsasign.jar;C:\jdk1.3\jre\lib\ext\classes12.zip;C:\jdk1.3\jre\lib\ext\j3daudio.jar;C:\jdk1.3\jre\lib\ext\j3dcore.jar;C:\jdk1.3\jre\lib\ext\j3dutils.jar;C:\jdk1.3\jre\lib\ext\vecmath.jar;C:\jdk1.3\jre\lib\ext\sunjce_provider.jar;C:\jdk1.3\jre\lib\ext\jsse.jar;C:\jdk1.3\jre\lib\ext\jnet.jar;C:\jdk1.3\jre\lib\ext\jcert.jar;C:\jdk1.3\jre\lib\ext\jai_codec.jar;C:\jdk1.3\jre\lib\ext\jai_core.jar;C:\jdk1.3\jre\lib\ext\mlibwrapper_jai.jar;C:\jdk1.3\jre\lib\jce1_2_1.jar;C:\jdk1.3\jre\lib\jaxp.jar;C:\jdk1.3\jre\lib\vecmath.jar;C:\jdk1.3\jre\lib\parser.jar;C:\jdk1.3\jre\lib\deploy.jar;C:\jdk1.3\jre\lib\ejb.jar;C:\jdk1.3\jre\lib\interest-client.jar;C:\jdk1.3\jre\lib\j3daudio.jar;C:\jdk1.3\jre\lib\j3dcore.jar;C:\jdk1.3\jre\lib\j3dutils.jar;C:\jdk1.3\jre\lib\jaas.jar;C:\jdk1.3\jre\lib\jasper.jar;C:\jdk1.3\jre\lib\jboss-client.jar;C:\jdk1.3\jre\lib\jbossmq-client.jar;C:\jdk1.3\jre\lib\jcert.jar;C:\jdk1.3\jre\lib\jcsi_base.jar;C:\jdk1.3\jre\lib\jcsi_jce.jar;C:\jdk1.3\jre\lib\jcsi_krb.jar;C:\jdk1.3\jre\lib\jcsi_pki.jar;C:\jdk1.3\jre\lib\jcsi_provider.jar;C:\jdk1.3\jre\lib\jcsi_smime.jar;C:\jdk1.3\jre\lib\jcsi_ssl.jar;C:\jdk1.3\jre\lib\jmf.jar;C:\jdk1.3\jre\lib\jndi.jar;C:\jdk1.3\jre\lib\jnet.jar;C:\jdk1.3\jre\lib\jnp-client.jar;C:\jdk1.3\jre\lib\jsse.jar;C:\jdk1.3\jre\lib\jta-spec1_0_1.jar;C:\jdk1.3\jre\lib\magtree.jar;C:\jdk1.3\jre\lib\servlet.jar;C:\jdk1.3\jre\lib\skinlf.jar;C:\jdk1.3\jre\lib\skinlf-nojimi.jar;C:\jdk1.3\jre\lib\skinregion.jar;C:\jdk1.3\jre\lib\sound.jar;C:\jdk1.3\jre\lib\stop.jar;C:\jdk1.3\jre\lib\sunjce_provider.jar;C:\jdk1.3\jre\lib\TestBeanClient.jar;C:\jdk1.3\jre\lib\tools.jar;C:\jdk1.3\jre\lib\crimson.jar;C:\jdk1.3\jre\lib\webserver.jar;C:\jdk1.3\jre\lib\xalan.jar;C:\jdk1.3\lib\dt.jar;C:\jdk1.3\lib\tools.jar;C:\jdk1.3\lib\htmlconverter.jar;C:\jdk1.3\demo\jfc\Java2D\Java2Demo.jar" org.jboss.docs.jms.client.HelloPublisher
      An exception occured while testing HelloPublisher: org.jboss.mq.SpyJMSException: Cannot get a client ID: Cannot assign requested address: connect
      org.jboss.mq.SpyJMSException: Cannot get a client ID: Cannot assign requested address: connect
      at org.jboss.mq.Connection.askForAnID(Connection.java:370)
      at org.jboss.mq.Connection.(Connection.java:113)
      at org.jboss.mq.Connection.(Connection.java:135)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:58)
      at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:64)
      at org.jboss.docs.jms.client.HelloPublisher.(HelloPublisher.java:76)
      at org.jboss.docs.jms.client.HelloPublisher.main(HelloPublisher.java:124)
      linked exception is:
      java.net.BindException: Cannot assign requested address: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
      at java.net.Socket.(Socket.java:273)
      at java.net.Socket.(Socket.java:127)
      at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.java:254)
      at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.java:248)
      at org.jboss.mq.il.oil.OILServerIL.getID(OILServerIL.java:95)
      at org.jboss.mq.Connection.askForAnID(Connection.java:367)
      at org.jboss.mq.Connection.(Connection.java:113)
      at org.jboss.mq.Connection.(Connection.java:135)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:58)
      at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:64)
      at org.jboss.docs.jms.client.HelloPublisher.(HelloPublisher.java:76)
      at org.jboss.docs.jms.client.HelloPublisher.main(HelloPublisher.java:124)


      If I use these same classes against 2.4.1 (after recomiling against the old jars so as not to get a serialversion prob), they work as expected.

      Now is this a bug in 2.4.4 or have I miss-configured it? I'm using the default configuration BTW.

      Please note this happens with 2.4.4 whether I use my cable modem hostname or localhost or the fully qualified IP.

      So, anyone solved this?

      Mike

        • 1. Re: Cannot get a client ID: Cannot assign requested address:
          Mike Newbie

          Well, I believe I have solved my mystery. I have it working now.

          How? Nothing to to with JBossMQ or JBoss directly, but the network setup of my machine.

          Since this worked flawlessly on NT, and since some other posts seem to indicate problems from the /etc/hosts file on Linux causing this I went straight to my hosts file under c:\windows...

          Sure enough, something had written "0.0.0.0 javascript of unknown origin127.0.0.1 localhost" instead of an entry for
          "127.0.0.1 localhost" (as it should be). I also added an entry for my cable internet provider host name and IP and tried again...

          Everything worked fine. Apparently when it worked under 2.4.1, that was a bug.

          So, if you get the above error, check your network configuration...

          Mike

          PS. Go Canada Go!!