[JBoss JIRA] Created: (JBESB-605) MessageAwareListener may not shutdown executor
by Kevin Conner (JIRA)
MessageAwareListener may not shutdown executor
----------------------------------------------
Key: JBESB-605
URL: http://jira.jboss.com/jira/browse/JBESB-605
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Management
Reporter: Kevin Conner
Assigned To: Kevin Conner
Fix For: 4.2
The doRun method of the MessageAwareListener is not guaranteed to run if the lifecycle has been stopped prior to the execution of the thread.
In this circumstance the MessageAwareListener will not have the opportunity to shutdown the executor, causing the doDestroy method to timeout while waiting for the executor to finish.
The executor shutdown should be called in the doDestroy method once the lifecycle state has changed to STOPPED.
--
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
17 years, 4 months
[JBoss JIRA] Created: (JBESB-568) ActionUtils.getTaskObject NullPointerException when message is null
by Daniel Bevenius (JIRA)
ActionUtils.getTaskObject NullPointerException when message is null
-------------------------------------------------------------------
Key: JBESB-568
URL: http://jira.jboss.com/jira/browse/JBESB-568
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Daniel Bevenius
Assigned To: Mark Little
Priority: Minor
Test method:
public void testGetTaskObjectNegative()
{
ActionUtils.getTaskObject( null );
}
ActionUtils :
public static Object getTaskObject(Message message)
{
Object payload = (null==message)? null : message.getBody().get(CURRENT_OBJECT);
if(payload == null) {
payload = message.getBody().getByteArray();
}
return payload;
}
I'm not sure if it is ever possible for the message object passed in to be null but perhaps the code should be modified anyway just in case.
--
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
17 years, 4 months