Weblogic Error: Caused by: weblogic.transaction.internal.AppSetRollbackOnlyException: setRollbackOnly called on transaction

前端 未结 1 1483
忘掉有多难
忘掉有多难 2020-12-11 08:19

I am porting an application from Jboss 7as to Weblogic 12c.

So far, I am able to run the application and create new records in the database.

However, I get t

相关标签:
1条回答
  • 2020-12-11 08:35

    This is a default behaviour of Weblogic JTA realization. To obtain root exception you should set system property weblogic.transaction.allowOverrideSetRollbackReason to true.

    One of the solution is add this line into <domain_home>/bin/setDomainEnv.cmd:

    set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.transaction.allowOverrideSetRollbackReason=true

    or linux equivalent into <domain_home>/bin/setDomainEnv.sh

    0 讨论(0)
提交回复
热议问题