You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Jackson, Douglas" <dj...@ugs.com> on 2008/02/14 21:51:31 UTC

Nested transaction error

Hi!
Nothing is working today. :(
I haven't run this process for a while, but I thought it worked fine.

I did the following:
1) rake clean (in ode root)
2) rake package
3) cd axis2-war
4) rake package
5) extracted contents of ode-axis2-war-1.2-SNAPSHOT.war to
tomcat\webapps\ode
6) deployed gid.zip to ode.
7) sent a request to .../ode/processes/get-id

I then got a nested transactions error.

This is the first request to the newly deployed instance of ode, so
there should be no transaction (I think).

I am wondering if the state of the derby database is not right in the
war file generated.
-Doug.


INFO - GeronimoLog.info(79) | Registered process
{http://util/bpel/webservice}get-id-1.

INFO - GeronimoLog.info(79) | Deployment of artifact gid-1 successful.

DEBUG - GeronimoLog.debug(66) | Deployed package: gid-1

DEBUG - GeronimoLog.debug(66) | Deployed PID:
{http://util/bpel/webservice}get-id-1

DEBUG - GeronimoLog.debug(66) | The system is checking for the operation
using the following WSAAction: gid

DEBUG - GeronimoLog.debug(66) | Checking for Operation using SOAP
message body's first child's local name : id-request

DEBUG - GeronimoLog.debug(66) | Received request message for
get-id.{http://util/webservice}get-id-op

DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation:
name=get-id-op
style=REQUEST_RESPONSE,1
Input: name=id-request-input
Message: name={http://util/webservice}id-request-msg
Part: name=id-request-part
elementName={http://wsutil}id-request
Output: name=id-request-output
Message: name={http://util/webservice}id-response-msg
Part: name=id-response-part
elementName={http://wsutil}id-response from service
{http://util/webservice}id-service

DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
{MyRoleMex#hqejbhcnphr31h4sogudpg [Client null] calling
{http://util/webservice}id-service.get-id-op(...)}

DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0"
encoding="UTF-8"?>
<message><id-request-part><id-request xmlns="http://wsutil"
xsi:schemaLocation="http://wsutil wsutil.xsd "
xmlns:gsutil="http://wsutil"
xmlns:q0="http://teamcenter.com/globalservices/process/2007-06"
xmlns:q1="http://teamcenter.com/globalservices/transfer/2007-06"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <prefix>gsutil:prefix</prefix>
</id-request></id-request-part></message>

DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
BpelProcess[{http://util/bpel/webservice}get-id-1]

DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.get-id-op: MSG RCVD keys=[]
mySessionId=null partnerSessionId=null

DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.get-id-op: routing failed,
CREATING NEW INSTANCE

DEBUG - GeronimoLog.debug(66) | enqueue: for instance
{http://util/bpel/webservice}get-id-1#151:
org.apache.ode.bpel.engine.BpelInstanceWorker$1@734770

DEBUG - GeronimoLog.debug(66) | enqueuRunnable for process
{http://util/bpel/webservice}get-id-1: {BpelInstanceWorker for
{http://util/bpel/webservice}get-id-1#151}

DEBUG - GeronimoLog.debug(66) | Starting worker thread
Thread[pool-2-thread-2,5,main] for instance IID
{http://util/bpel/webservice}get-id-1#151

DEBUG - GeronimoLog.debug(66) | Doing work for instance
{http://util/bpel/webservice}get-id-1#151 in thread
Thread[pool-2-thread-2,5,main]

DEBUG - GeronimoLog.debug(66) | Doing work for instance
{http://util/bpel/webservice}get-id-1#151 in thread
Thread[pool-2-thread-1,5,main]

DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for
instance 151. INDEXED STATE={}

ERROR - GeronimoLog.error(108) | Exception during database operation

org.apache.ode.bpel.iapi.BpelEngineException: Internal Error, could not
begin transaction.

	at
org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:101)

	at
org.apache.ode.bpel.engine.BpelDatabase.exec(BpelDatabase.java:78)

	at
org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.dbexec(Proce
ssAndInstanceManagementImpl.java:587)

	at
org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.genInstanceI
nfoDocument(ProcessAndInstanceManagementImpl.java:632)

	at
org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.getInstanceI
nfo(ProcessAndInstanceManagementImpl.java:316)

	at
org.apache.ode.axis2.jmxui.JMXProcessManagementUI$BPELEventListener.onEv
ent(JMXProcessManagementUI.java:144)

	at
org.apache.ode.bpel.engine.BpelServerImpl.fireEvent(BpelServerImpl.java:
694)

	at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.sendEvent(BpelRuntimeC
ontextImpl.java:952)

	at org.apache.ode.bpel.runtime.PROCESS.run(PROCESS.java:54)

	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.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)

	at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)

	at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeCon
textImpl.java:766)

	at
org.apache.ode.bpel.engine.BpelProcess.executeCreateInstance(BpelProcess
.java:312)

	at
org.apache.ode.bpel.engine.BpelProcess$2.call(BpelProcess.java:259)

	at
org.apache.ode.bpel.engine.BpelProcess$2.call(BpelProcess.java:258)

	at
org.apache.ode.bpel.engine.BpelProcess$ProcessCallable.call(BpelProcess.
java:1120)

	at
org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanc
eWorker.java:174)

	at
org.apache.ode.bpel.engine.BpelInstanceWorker.execInCurrentThread(BpelIn
stanceWorker.java:108)

	at
org.apache.ode.bpel.engine.BpelProcess.doInstanceWork(BpelProcess.java:4
18)

	at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:25
7)

	at
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.doInvoke(MyRoleMess
ageExchangeImpl.java:132)

	at
org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(Un
reliableMyRoleMessageExchangeImpl.java:48)

	at
org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(Un
reliableMyRoleMessageExchangeImpl.java:47)

	at
org.apache.ode.bpel.engine.BpelProcess$ProcessCallable.call(BpelProcess.
java:1120)

	at
org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:105)

	at
org.apache.ode.bpel.engine.BpelServerImpl$TransactedCallable.call(BpelSe
rverImpl.java:833)

	at
org.apache.ode.bpel.engine.BpelServerImpl$ServerCallable.call(BpelServer
Impl.java:811)

	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

	at java.util.concurrent.FutureTask.run(Unknown Source)

	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)

	at java.lang.Thread.run(Unknown Source)

Caused by: javax.transaction.NotSupportedException: Nested Transactions
are not supported

	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(Tra
nsactionManagerImpl.java:146)

	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(Tra
nsactionManagerImpl.java:141)

	at
org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:98)

	... 35 more

ERROR - GeronimoLog.error(108) | Method "run" in class
"org.apache.ode.bpel.runtime.PROCESS" threw an unexpected exception.


Re: Nested transaction error

Posted by Matthieu Riou <ma...@offthelip.org>.
On Thu, Feb 14, 2008 at 12:51 PM, Jackson, Douglas <dj...@ugs.com> wrote:

> Hi!
> Nothing is working today. :(
>

There are days like this :)


> I haven't run this process for a while, but I thought it worked fine.
>
> I did the following:
> 1) rake clean (in ode root)
> 2) rake package
> 3) cd axis2-war
> 4) rake package
> 5) extracted contents of ode-axis2-war-1.2-SNAPSHOT.war to
> tomcat\webapps\ode
> 6) deployed gid.zip to ode.
> 7) sent a request to .../ode/processes/get-id
>
> I then got a nested transactions error.
>
> This is the first request to the newly deployed instance of ode, so
> there should be no transaction (I think).
>
> I am wondering if the state of the derby database is not right in the
> war file generated.


Looks to me like you're running on trunk, which is still not completely
stable. I'd recommend sticking with the 1.1 branch for a little longer.

Matthieu


>
> -Doug.
>
>
> INFO - GeronimoLog.info(79) | Registered process
> {http://util/bpel/webservice}get-id-1<http://util/bpel/webservice%7Dget-id-1>
> .
>
> INFO - GeronimoLog.info(79) | Deployment of artifact gid-1 successful.
>
> DEBUG - GeronimoLog.debug(66) | Deployed package: gid-1
>
> DEBUG - GeronimoLog.debug(66) | Deployed PID:
> {http://util/bpel/webservice}get-id-1<http://util/bpel/webservice%7Dget-id-1>
>
> DEBUG - GeronimoLog.debug(66) | The system is checking for the operation
> using the following WSAAction: gid
>
> DEBUG - GeronimoLog.debug(66) | Checking for Operation using SOAP
> message body's first child's local name : id-request
>
> DEBUG - GeronimoLog.debug(66) | Received request message for
> get-id.{http://util/webservice}get-id-op<http://util/webservice%7Dget-id-op>
>
> DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation:
> name=get-id-op
> style=REQUEST_RESPONSE,1
> Input: name=id-request-input
> Message: name={http://util/webservice}id-request-msg<http://util/webservice%7Did-request-msg>
> Part: name=id-request-part
> elementName={http://wsutil}id-request <http://wsutil%7Did-request>
> Output: name=id-request-output
> Message: name={http://util/webservice}id-response-msg<http://util/webservice%7Did-response-msg>
> Part: name=id-response-part
> elementName={http://wsutil}id-response <http://wsutil%7Did-response> from
> service
> {http://util/webservice}id-service <http://util/webservice%7Did-service>
>
> DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
> {MyRoleMex#hqejbhcnphr31h4sogudpg [Client null] calling
> {http://util/webservice}id-service.get-id-op(...)<http://util/webservice%7Did-service.get-id-op%28...%29>
> }
>
> DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0"
> encoding="UTF-8"?>
> <message><id-request-part><id-request xmlns="http://wsutil"
> xsi:schemaLocation="http://wsutil wsutil.xsd "
> xmlns:gsutil="http://wsutil"
> xmlns:q0="http://teamcenter.com/globalservices/process/2007-06"
> xmlns:q1="http://teamcenter.com/globalservices/transfer/2007-06"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <prefix>gsutil:prefix</prefix>
> </id-request></id-request-part></message>
>
> DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
> BpelProcess[{http://util/bpel/webservice}get-id-1<http://util/bpel/webservice%7Dget-id-1>
> ]
>
> DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.get-id-op: MSG RCVD keys=[]
> mySessionId=null partnerSessionId=null
>
> DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.get-id-op: routing failed,
> CREATING NEW INSTANCE
>
> DEBUG - GeronimoLog.debug(66) | enqueue: for instance
> {http://util/bpel/webservice}get-id-1#151<http://util/bpel/webservice%7Dget-id-1#151>
> :
> org.apache.ode.bpel.engine.BpelInstanceWorker$1@734770
>
> DEBUG - GeronimoLog.debug(66) | enqueuRunnable for process
> {http://util/bpel/webservice}get-id-1<http://util/bpel/webservice%7Dget-id-1>:
> {BpelInstanceWorker for
> {http://util/bpel/webservice}get-id-1#151<http://util/bpel/webservice%7Dget-id-1#151>
> }
>
> DEBUG - GeronimoLog.debug(66) | Starting worker thread
> Thread[pool-2-thread-2,5,main] for instance IID
> {http://util/bpel/webservice}get-id-1#151<http://util/bpel/webservice%7Dget-id-1#151>
>
> DEBUG - GeronimoLog.debug(66) | Doing work for instance
> {http://util/bpel/webservice}get-id-1#151<http://util/bpel/webservice%7Dget-id-1#151>in thread
> Thread[pool-2-thread-2,5,main]
>
> DEBUG - GeronimoLog.debug(66) | Doing work for instance
> {http://util/bpel/webservice}get-id-1#151<http://util/bpel/webservice%7Dget-id-1#151>in thread
> Thread[pool-2-thread-1,5,main]
>
> DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for
> instance 151. INDEXED STATE={}
>
> ERROR - GeronimoLog.error(108) | Exception during database operation
>
> org.apache.ode.bpel.iapi.BpelEngineException: Internal Error, could not
> begin transaction.
>
>        at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:101)
>
>        at
> org.apache.ode.bpel.engine.BpelDatabase.exec(BpelDatabase.java:78)
>
>        at
> org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.dbexec(Proce
> ssAndInstanceManagementImpl.java:587)
>
>        at
> org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.genInstanceI
> nfoDocument(ProcessAndInstanceManagementImpl.java:632)
>
>        at
> org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.getInstanceI
> nfo(ProcessAndInstanceManagementImpl.java:316)
>
>        at
> org.apache.ode.axis2.jmxui.JMXProcessManagementUI$BPELEventListener.onEv
> ent(JMXProcessManagementUI.java:144)
>
>        at
> org.apache.ode.bpel.engine.BpelServerImpl.fireEvent(BpelServerImpl.java:
> 694)
>
>        at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.sendEvent(BpelRuntimeC
> ontextImpl.java:952)
>
>        at org.apache.ode.bpel.runtime.PROCESS.run(PROCESS.java:54)
>
>        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.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>
>        at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>
>        at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeCon
> textImpl.java:766)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess.executeCreateInstance(BpelProcess
> .java:312)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess$2.call(BpelProcess.java:259)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess$2.call(BpelProcess.java:258)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess$ProcessCallable.call(BpelProcess.
> java:1120)
>
>        at
> org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanc
> eWorker.java:174)
>
>        at
> org.apache.ode.bpel.engine.BpelInstanceWorker.execInCurrentThread(BpelIn
> stanceWorker.java:108)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess.doInstanceWork(BpelProcess.java:4
> 18)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:25
> 7)
>
>        at
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.doInvoke(MyRoleMess
> ageExchangeImpl.java:132)
>
>        at
> org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(Un
> reliableMyRoleMessageExchangeImpl.java:48)
>
>        at
> org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(Un
> reliableMyRoleMessageExchangeImpl.java:47)
>
>        at
> org.apache.ode.bpel.engine.BpelProcess$ProcessCallable.call(BpelProcess.
> java:1120)
>
>        at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:105)
>
>        at
> org.apache.ode.bpel.engine.BpelServerImpl$TransactedCallable.call(BpelSe
> rverImpl.java:833)
>
>        at
> org.apache.ode.bpel.engine.BpelServerImpl$ServerCallable.call(BpelServer
> Impl.java:811)
>
>        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>
>        at java.util.concurrent.FutureTask.run(Unknown Source)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>
>        at java.lang.Thread.run(Unknown Source)
>
> Caused by: javax.transaction.NotSupportedException: Nested Transactions
> are not supported
>
>        at
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(Tra
> nsactionManagerImpl.java:146)
>
>        at
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(Tra
> nsactionManagerImpl.java:141)
>
>        at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:98)
>
>        ... 35 more
>
> ERROR - GeronimoLog.error(108) | Method "run" in class
> "org.apache.ode.bpel.runtime.PROCESS" threw an unexpected exception.
>
>