Hi,

>From an MDB (with run-as identity), I call a session bean, that session bean 
>call a CMP to set one field. Just before the transaction completes, I see this 
>in the error log:

2005-02-22 19:17:32,273 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackException in method: public abstract void 
clb_pricing.StmtMgr.updLandedStmtDate(java.lang.Integer[],java.sql.Timestamp[]) 
throws java.rmi.RemoteException, causedBy:
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=MARDUK/468, BranchQual=, 
localId=468] status=STATUS_NO_TRANSACTION; - nested throwable: 
(javax.ejb.EJBException: null; CausedByException is:
        Entity 'PPRStmt'Incompatible Principal Class 
Name:org.jboss.security.RunAsIdentity 
toString():[roles=[admin],principal=anonymous] getName():anonymous)
        at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:454)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:322)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:123)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:870)
        at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
        at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
        at 
org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:115)
        at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:101)
        at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
        at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
        at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
        at $Proxy726.updLandedStmtDate(Unknown Source)
        at 
clb_pricing.PricingFlightListenerBean.onMessage(PricingFlightListenerBean.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)
        at 
org.jboss.ejb.plugins.SecurityProxyInterceptor.invoke(SecurityProxyInterceptor.java:175)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
        at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:87)
        at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:280)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146)
        at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at 
org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
        at org.jboss.ejb.Container.invoke(Container.java:870)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1248)
        at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
        at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.ejb.EJBException: null; CausedByException is:
        Entity 'PPRStmt'Incompatible Principal Class 
Name:org.jboss.security.RunAsIdentity 
toString():[roles=[admin],principal=anonymous] getName():anonymous
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.throwRemoteException(CMPPersistenceManager.java:560)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.ejbStore(CMPPersistenceManager.java:540)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.invokeEjbStore(CMPPersistenceManager.java:447)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeEjbStore(CachedConnectionInterceptor.java:412)
        at 
org.jboss.ejb.EntityContainer.invokeEjbStore(EntityContainer.java:729)
        at 
org.jboss.ejb.GlobalTxEntityMap$2.invokeEjbStore(GlobalTxEntityMap.java:117)
        at 
org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.synchronize(GlobalTxEntityMap.java:239)
        at 
org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.beforeCompletion(GlobalTxEntityMap.java:302)
        at 
org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1383)
        at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1075)
        at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296)
        ... 53 more

I could not find something related to what throws the original exception and 
where, and why. Any help will greatly be appreciated.

Regards,
Gokhan Demir


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867485#3867485

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867485


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to