0 Replies Latest reply on Jun 12, 2008 11:39 AM by ashish.abrol

    org.jboss.mq.SpyJMSException: Cannot authenticate user

    ashish.abrol

      Hi

      I am trying to connect to JBoss MQ which is running on a remote unix box.

      I am simulating a client from a windows machine. I am unable to connect because of a authentication issue. I am not exactly sure what is it that causes it. I am a newbie. Please see the exception below. I would much appreciate if somebody could solve my problem.


      Note: I have tried "telnet 1099 and I do get a response back. so I guess there is not firewall issue.

      thanks
      Ashish

      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
      at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
      at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
      at org.jboss.mq.Connection.authenticate(Connection.java:1118)
      at org.jboss.mq.Connection.(Connection.java:267)
      at org.jboss.mq.Connection.(Connection.java:338)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:68)
      at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
      at JbossSample.runExample(JbossSample.java:104)
      at JbossSample.main(JbossSample.java:159)
      Caused by: java.net.ConnectException: Connection refused: connect