Hey,
I looked through the FAQ and the forum and didn't realy find an similar issue...

On closing of the JMSConnection we sometimes get the following stacktrace (I 
will try to get a TRACE output of this):
anonymous wrote : 
  | 16:21:33,580 ERROR [SocketManager] Failed to handle: 
org.jboss.mq.il.uil2.msgs.CloseMsg32378465[msgType: m_connectionClosing, msgID: 
-2146749334, error: null]
  | java.lang.NullPointerException
  |         at 
org.jboss.mq.server.JMSDestinationManager.connectionClosing(JMSDestinationManager.java:509)
  |         at 
org.jboss.mq.server.JMSServerInterceptorSupport.connectionClosing(JMSServerInterceptorSupport.java:128)
  |         at 
org.jboss.mq.security.ServerSecurityInterceptor.connectionClosing(ServerSecurityInterceptor.java:77)
  |         at 
org.jboss.mq.server.TracingInterceptor.connectionClosing(TracingInterceptor.java:193)
  |         at 
org.jboss.mq.server.JMSServerInvoker.connectionClosing(JMSServerInvoker.java:128)
  |         at 
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:126)
  |         at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
  |         at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
  |         at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
  |         at java.lang.Thread.run(Thread.java:534)
  | 

We use the following code to close the connection :
  private static class ConnectionWrapper
  |   {
  |     public QueueConnection connection;
  |     public QueueSession session;
  |     public Queue currentReceiveQueue;
  |   }
  | 
  |   public void closeConnection(ConnectionWrapper con)
  |   {
  |     try
  |     {
  |       if (con.session != null)
  |         con.session.close();
  |     }
  |     catch (JMSException e)
  |     {
  |       LOG.error("Failed to close JMS session", e);
  |     }
  | 
  |     try
  |     {
  |       if (con.connection != null)
  |         con.connection.close();
  |     }
  |     catch (JMSException e)
  |     {
  |       LOG.error("Failed to close JMS Connection", e);
  |     }
  | 
  |     con.session = null;
  |     con.connection = null;
  |   }
  | 

Any ideas ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930295#3930295

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930295


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to