-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 7.1.1.Final
-
Fix Version/s: 7.1.3.Final (EAP), EAP 6.1.0.Alpha (7.2.0.Final)
-
Component/s: EJB
-
Labels:None
-
Steps to Reproduce:
-
Affects:Compatibility/Configuration
-
Workaround:Workaround Exists
-
Workaround Description:
If any ejbHome business method is called more then once in same EJB transaction JBOSS7.1.1 server calls getPrimaryKey() on entity home interface. Following exception is thrown by JBOSS server.
(java.lang.String): javax.ejb.EJBTransactionRolledbackException: JBAS014527: Cannot call getPrimaryKey() when state is entity bean home method
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)