1 Reply Latest reply on Dec 25, 2008 11:23 PM by gan.gary

    org.jboss.mq.SpyJMSException: Cannot authenticate user

    gan.gary

      I have a multithreaded app that stress test the JBoss version jboss-4.2.2.GA, and i got the following exception intermittened. IS this related to this JIRA ticket: https://jira.jboss.org/jira/browse/JBAS-1380?


      ERROR [STDERR] org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Connection reset)
      2008-12-24 00:03:22,984 ERROR [STDERR] at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
      ...
      ERROR [STDERR] Caused by: java.net.SocketException: Connection reset
      2008-12-24 00:03:40,703 ERROR [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:168)

      else what could be the root cause?

      I have set socketTimeout in "jboss-log4j.xml" :
      <mbean code="org.jboss.remoting.transport.Connector"
       name="jboss.remoting:service=Connector,transport=socket"
       display-name="Socket transport Connector">
      ...
      <attribute name="socketTimeout" isParam="true">600000</attribute>


      and
      <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
       name="jboss:service=invoker,type=pooled">
      ..
       <attribute name="ClientMaxPoolSize">300</attribute>
       <attribute name="SocketTimeout">60000</attribute>


      to 0, but seems not affect.