1 Reply Latest reply on Mar 11, 2005 4:15 PM by Adrian Brock

    pyJMSException: Cannot authenticate user (nested throwable j

    Tomas Muller Newbie

      Hello,

      I have a stateless session bean which creates a connection to a JMS topic (via XAConnectionFactory) in its ejbCreate (and disconnects it in ejbRemove). Sometimes, I get the following exception:

      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.io.EOFException)
       at org.jboss.mq.Connection.authenticate(Connection.java:1161)
       at org.jboss.mq.Connection.<init>(Connection.java:248)
       at org.jboss.mq.Connection.<init>(Connection.java:325)
       at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:66)
       at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
       at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:136)
       at ...
      Caused by: java.io.EOFException
       at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at org.jboss.mq.il.uil2.msgs.CheckUserMsg.read(CheckUserMsg.java:67)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:305)
       at java.lang.Thread.run(Thread.java:534)
      


      Any idea what is going wrong? I'm using JBoss 3.2.6.