Bug 963448 - Incorrect exception handling in CoreGroupCommunicationService#handle
Summary: Incorrect exception handling in CoreGroupCommunicationService#handle
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Clustering
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: DR0
: EAP 6.3.0
Assignee: Paul Ferraro
QA Contact: Jitka Kozana
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-15 20:03 UTC by dereed
Modified: 2018-12-01 18:10 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:31:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-1351 0 Major Closed Incorrect exception handling in CoreGroupCommunicationService#handle 2016-05-05 15:17:30 UTC

Description dereed 2013-05-15 20:03:52 UTC
org/jboss/as/clustering/impl/CoreGroupCommunicationService#handle catches and hides any internal exceptions, and just returns null instead.

This breaks callers of CoreGroupCommunicationService when they get a null value where it's not expected (after verifying that the response was not flagged as an exception)

java.lang.NullPointerException
at org.jboss.as.clustering.lock.AbstractClusterLockSupport.lock(AbstractClusterLockSupport.java:157)

It also catches an exception from the called method, and returns it as the return value, instead of just throwing it as an exception so it can be properly returned as an exception inside JGroups' RequestCorrelator.

Comment 2 JBoss JIRA Server 2013-07-25 18:57:22 UTC
Paul Ferraro <paul.ferraro> updated the status of jira WFLY-1351 to Closed

Comment 3 JBoss JIRA Server 2013-07-25 18:57:22 UTC
Paul Ferraro <paul.ferraro> made a comment on jira WFLY-1351

CoreGroupCommunicationService is obsolete.  This issue does not apply to its replacement, CommandDispatcher.

Comment 5 Paul Ferraro 2013-08-29 19:25:55 UTC
Technically, this issue is still relevant to 6.2 and 6.3, as this class will continue to exist.  However, the plan for EAP 6.3 is to drop usage of this object for locking web sessions.

Comment 6 Paul Ferraro 2013-12-12 15:38:16 UTC
Rather than change the API (which would be necessary to return the appropriate exception back to the caller), we'll handle the null response in the distributed lock manager.

Comment 7 Paul Ferraro 2014-01-03 22:02:32 UTC
https://github.com/jbossas/jboss-eap/pull/750

Comment 8 Richard Janík 2014-02-18 13:55:37 UTC
6.3.0.DR0 verified.

Comment 11 sgilda 2014-05-12 18:18:36 UTC
Changed <literal></literal> tags in Doc Text to ticks (`) to fix Bug 1096865

Comment 12 sgilda 2014-05-12 18:28:00 UTC
Changed <literal></literal> tags in Doc Text to ticks (`) to fix Bug 1096865


Note You need to log in before you can comment on or make changes to this bug.