I have a client app which is receiving the following exception

java.lang.reflect.UndeclaredThrowableException:
javax.transaction.RollbackException: Unable to commit, tx=XidImpl
[FormatId=257, GlobalId=sni5332061//12, BranchQual=]
status=STATUS_ROLLEDBACK

        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)

        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)

        at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
Source)

        at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18
2)

        at $Proxy4.setReference(Unknown Source)

        at cec.budg.test.TestSecurity.main(TestSecurity.java:41)

On the server in the logs
i have this exception

[ejb/invoiceheader] javax.ejb.EJBException: InvoiceHeaderEJB.ejbStore:
ORA-20201: Security access denied (U) for INV item on table
T_INV_INVOICE_HEDS.
[ejb/invoiceheader] ORA-06512: at "SI2.TRG_INVOICE_HEDS_BRU", line 77
[ejb/invoiceheader] ORA-04088: error during execution of trigger
'SI2.TRG_INVOICE_HEDS_BRU'
[ejb/invoiceheader] 
[ejb/invoiceheader]     at
cec.budg.ejb.entity.invoice.header.InvoiceHeaderEJB.ejbStore(InvoiceHeaderEJ
B.java:221)
[ejb/invoiceheader]     at java.lang.reflect.Method.invoke(Native Method)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.BMPPersistenceManager.storeEntity(BMPPersistenceManage
r.java:331)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronizati
on.beforeCompletion(EntitySynchronizationInterceptor.java:342)
[ejb/invoiceheader]     at
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1220)
[ejb/invoiceheader]     at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
[ejb/invoiceheader]     at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ejb/invoiceheader]     at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[ejb/invoiceheader]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[ejb/invoiceheader]     at java.lang.reflect.Method.invoke(Native Method)
[ejb/invoiceheader]     at sun.rmi.server.UnicastServerRef.dispatch(Unknown
Source)
[ejb/invoiceheader]     at sun.rmi.transport.Transport$1.run(Unknown Source)
[ejb/invoiceheader]     at
java.security.AccessController.doPrivileged(Native Method)
[ejb/invoiceheader]     at sun.rmi.transport.Transport.serviceCall(Unknown
Source)
[ejb/invoiceheader]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[ejb/invoiceheader]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[ejb/invoiceheader]     at java.lang.Thread.run(Unknown Source)


The bean on the server is throwing a ejb exception cause the user does not
have the right at the oracle database level
to make an update on one of the tables.

I would like to receive this security exception instead of the more general
exception javax.transaction.RollbackException: Unable to commit on 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to