openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <michael.d.d...@gmail.com>
Subject Re: How to get beter stacktraces????
Date Tue, 24 Feb 2009 00:42:52 GMT
Hi,

I've never used WebLogic, so I can't help with specifics. I'd guess that
there was a nested SQLException. Turning on OpenJPA SQL trace might help. In
JSE you can do this by adding a property to persistence.xml :
<property name="openjpa.Log" value="SQL=TRACE"/>

WebLogic may have other ways to enable OpenJPA's SQL trace (quick googling
didn't find an obvious hit, sorry).

If the SQL is obviously wrong, (ie inserting a duplicate key) it should give
you a starting point.

hope this helps,
-mike

On Mon, Feb 23, 2009 at 6:04 PM, kurt_cobain <tracyjmilburn@yahoo.com>wrote:

>
> Yeah I saw those; but in tracing down into the code, I can see that an
> exception actually never gets thrown. What I get is an exception from
> weblogic like this:
>
> Feb 23, 2009 5:00:01 PM CST> <Error> <EJB> <BEA-010026> <Exception
occurred
> during commit of transaction Name=[EJB
>
> com....(com...EntityName)],Xid=BEA1-0064C38439F43057A4BD(1453943),Status=Rolled
> back. [Reason=<1.0.0 fatal store error>
> org.apache.openjpa.util.StoreException: The transaction has been rolled
> back.  See the nested exceptions for details on the errors that
> occurred.],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
> begin=0,seconds
>
> left=30,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@866d46
> ,re-Registered
> =
> false),SCInfo[base_domain+AdminServer]=(state=rolledback),properties=({
> weblogic.transaction.name=[EJB
> com...sessionBean.methodName(package.Class)],
> weblogic.jdbc=t3://10.200.10.89:7001
> }),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+10.200.10.89:7001
> +base_domain+t3+,
> XAResources={TagStore, LEGACYHOSTDS, VPS,
> weblogic.jdbc.wrapper.JTSXAResourceImpl,
> CSCUD1},NonXAResources={})],CoordinatorURL=AdminServer+10.200.10.89:7001
> +base_domain+t3+):
> weblogic.transaction.RollbackException: The transaction has been rolled
> back.  See the nested exceptions for details on the errors that occurred.
>         at
>
> weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1818)
>        at
>
> weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:333)
>        at
>
> weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
>        at
>
> weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:607)
>        at
>
> weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:57)
>        at
>
> weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:427)
>
> --
> View this message in context:
> http://n2.nabble.com/How-to-get-beter-stacktraces-----tp2375022p2375201.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message