[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-635) Closing connections without clearing ExceptionListener might cause NPE on remoting

Clebert Suconic (JIRA) jira-events at jboss.com
Tue Nov 7 11:05:41 EST 2006


Closing connections without clearing ExceptionListener might cause NPE on remoting
----------------------------------------------------------------------------------

                 Key: JBMESSAGING-635
                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-635
             Project: JBoss Messaging
          Issue Type: Bug
          Components: JMS Remoting
    Affects Versions: 1.0.1.GA
            Reporter: Clebert Suconic
         Assigned To: Ovidiu Feodorov


This leads into exception:

         for (int i=0;i<100;i++)
         {
            Connection conn = factoryServer1.createConnection();
            conn.setExceptionListener(new LocalListener());
            conn.close();
         }

This is the exception:

java.lang.NullPointerException
	at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:114)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)


I don't know if we should setException(null) on ConnectionAspect:handleClose or if we should look up for a bug on remoting

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list