0 Replies Latest reply on Feb 14, 2007 2:21 AM by krishnakumarns

    org.jboss.mq.SpyJMSException: Cannot authenticate user; - ne

      i have an application that having a jms client communicating with the jboss server (Topic) and sending messages .The jboss server is installed in a private ip machine and connected to the public ip machine in which the related ports are forwarded to the private ip machine . After that when communicating through the public ip from the external network i got all the access to the jboss(ejbs) except that of the Connection to the topic(durable).the exception thrown in the line

      qcf.createTopicConnection();


      the exception is



      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
      at org.jboss.mq.Connection.authenticate(Connection.java:1168)
      at org.jboss.mq.Connection.(Connection.java:255)
      at org.jboss.mq.Connection.(Connection.java:332)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:66)
      at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
      at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:136)
      at com.klc.klnetcenter.jms.SendClient.(SendClient.java:53)
      at com.klc.klnetcenter.KLNetcenterData.(KLNetcenterData.java:42)
      at com.klc.klnetcenter.KLNetcenterData.getInstance(KLNetcenterData.java:53)
      at com.klc.klnetcenter.KLNetcenterFrame.(KLNetcenterFrame.java:101)
      at com.klc.klnetcenter.KLNetcenterFrame.getInstance(KLNetcenterFrame.java:183)
      at com.klc.klnetcenter.KLNetcenter.(KLNetcenter.java:24)
      at com.klc.klnetcenter.KLNetcenter.main(KLNetcenter.java:35)
      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 com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.net.ConnectException: Connection timed out: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.(Unknown Source)
      at java.net.Socket.(Unknown Source)
      at javax.net.DefaultSocketFactory.createSocket(Unknown Source)
      at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:642)
      at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:532)
      at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:334)
      at org.jboss.mq.Connection.authenticate(Connection.java:1160)


      : what configuration i have to do for that .Thanks in advance