geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ApolloX <sc...@selikoff.net>
Subject Re: NullPointerException by MDB in getCurrentContext()
Date Thu, 20 Mar 2008 02:01:04 GMT


djencks wrote:
> Can you post a stack trace?

Sure.  See below.  It seems to imply it might be a transactional attribute
issue, but the deployment descriptors are set up with transactional
attributes of "Required" so I still think its a Geronimo bug.

javax.ejb.TransactionRolledbackLocalException
	at org.apache.openejb.transaction.TxRequired.invoke(TxRequired.java:64)
	at
org.apache.openejb.transaction.TransactionPolicyInterceptor.invoke(TransactionPolicyInterceptor.java:50)
	at
org.apache.openejb.NoConnectionEnlistingInterceptor.invoke(NoConnectionEnlistingInterceptor.java:68)
	at
org.apache.openejb.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor.java:35)
	at
org.apache.openejb.entity.cmp.DefaultCmpEjbContainer.invoke(DefaultCmpEjbContainer.java:150)
	at
org.apache.openejb.entity.cmp.DefaultCmpEjbContainer$$FastClassByCGLIB$$e128ff0b.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at
org.apache.openejb.BmpEjbContainer$$EnhancerByCGLIB$$821fbd47.invoke(<generated>)
	at
org.apache.openejb.AbstractEjbDeployment.invoke(AbstractEjbDeployment.java:195)
	at
org.apache.openejb.proxy.EJBMethodInterceptor.intercept(EJBMethodInterceptor.java:145)
	at
org.apache.openejb.proxy.EntityEJBLocalHome$$EnhancerByCGLIB$$a5fa9c5c.findAll(<generated>)
	at com.mdb.BrokerBean.onMessage(MyMDB.java:215)
	...
Caused by: java.lang.NullPointerException
	at
org.apache.geronimo.security.ContextManager.getCurrentContext(ContextManager.java:167)
	at
org.apache.openejb.security.EjbSecurityInterceptor.invoke(EjbSecurityInterceptor.java:65)
	at
org.apache.openejb.security.EjbRunAsInterceptor.invoke(EjbRunAsInterceptor.java:50)
	at
org.apache.openejb.security.PolicyContextHandlerEJBInterceptor.invoke(PolicyContextHandlerEJBInterceptor.java:64)
	at
org.apache.openejb.naming.ComponentContextInterceptor.invoke(ComponentContextInterceptor.java:51)
	at
org.apache.openejb.ConnectionTrackingInterceptor.invoke(ConnectionTrackingInterceptor.java:56)
	at
org.apache.openejb.entity.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:110)
	at
org.apache.openejb.entity.cmp.InTxCacheInterceptor.invoke(InTxCacheInterceptor.java:60)
	at
org.apache.openejb.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:50)
	at org.apache.openejb.transaction.TxRequired.invoke(TxRequired.java:60)

-- 
View this message in context: http://www.nabble.com/NullPointerException-by-MDB-in-getCurrentContext%28%29-tp16144723s134p16169955.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message