Bug 950864 - Sporadiacal a NullPointerException is thrown if a SFSB is removed
Summary: Sporadiacal a NullPointerException is thrown if a SFSB is removed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER2
: EAP 6.1.1
Assignee: Jaikiran Pai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 953033
TreeView+ depends on / blocked
 
Reported: 2013-04-11 06:08 UTC by wfink
Modified: 2018-12-01 16:27 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
: 953033 (view as bug list)
Environment:
Last Closed: 2013-09-16 20:27:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6862 0 Major Resolved EjbUtilities is used without regard for dependencies 2013-11-18 17:53:10 UTC

Description wfink 2013-04-11 06:08:17 UTC
Description of problem:
If a SFSB should be removed sometimes a NPE occurs.

The call stack of the application looks quite like this:

1.	client application calls servlet
2.	servlet calls stateless session bean A method which is transactional
3.	stateless session bean method calls some methods on the statefull session bean
4.	stateless session bean calls @remove annotated method on statefull session bean in the same transaction



Caused by: java.lang.NullPointerException
        at org.jboss.as.ejb3.cache.TransactionAwareObjectFactory.getCurrentTransaction(TransactionAwareObjectFactory.java:79) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.cache.TransactionAwareObjectFactory.destroyInstance(TransactionAwareObjectFactory.java:62) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.cache.impl.backing.NonPassivatingBackingCacheImpl.remove(NonPassivatingBackingCacheImpl.java:165) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.cache.impl.backing.NonPassivatingBackingCacheImpl.remove(NonPassivatingBackingCacheImpl.java:57) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.cache.spi.impl.AbstractCache.remove(AbstractCache.java:100) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.cache.spi.impl.AbstractCache.remove(AbstractCache.java:39) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.removeSession(StatefulSessionComponent.java:283) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.as.ejb3.component.stateful.StatefulRemoveInterceptor.processInvocation(StatefulRemoveInterceptor.java:100) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
        at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:67) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:200) [jboss-as-ejb3-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
        ... 103 more

Comment 1 Jaikiran Pai 2013-04-16 11:55:58 UTC
Pull request to EAP repo sent https://github.com/jbossas/jboss-eap/pull/103

Comment 3 Jason T. Greene 2013-04-19 16:27:19 UTC
Need the acks

Comment 6 Paul Gier 2013-07-01 22:18:44 UTC
Looks like this fix was included in 6.1.0 but was never verified by QA.  Marking for 6.1.1 to be tested.

Comment 7 Jan Martiska 2013-07-03 11:35:54 UTC
Verified in 6.1.1.ER2

Comment 8 Scott Mumford 2013-08-23 05:52:07 UTC
Have added the beginning of a Release Note to the text field above.

Requesting information about how this issue was resolved. 
Was EjbUtilities removed as suggested in WFLY-65?


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