[JBoss jBPM] - JEE AS / jBPM / Exception when Oracle DB is restarted
by gchanteb
Hi,
I would like to know if somebody could help me.
I have a process with a timer launched at the node-leave event of start-state (t=0 second in my example). This timer have a duedate of 60 seconds then it takes a transition.
Here is my process:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process7">
|
| <start-state name="start-state">
| <event type="node-leave">
| <script>System.out.println("Validity period timer launched.");</script>
| <create-timer name="ValidityPeriodTimer" duedate="2 minutes" transition="to timeout">
| <script>System.out.println("Validity period expired! Transition to timeout.");</script>
| </create-timer>
| </event>
| <transition to="state1" name="to state1"/>
| </start-state>
|
| <state name="state1">
| <transition to="state2" name="to state2"/>
| <transition to="timeout" name="to timeout"/>
| </state>
|
| <state name="state2">
| <transition to="end-state" name="to end-state"/>
| <transition to="timeout" name="to timeout"/>
| </state>
|
| <end-state name="end-state"/>
|
| <state name="timeout">
| <transition to="end-state" name="to end-state"/>
| </state>
|
| </process-definition>
I deploy it on my JBoss AS and I start it in my jsf-console.
All is good. Now, i'm doing some tests:
1- If i stop JBoss at 20 seconds and if I restart it at 50 seconds, the transition is taken at 60 seconds, it's OK.
2- If i stop JBoss at 20 seconds and if I restart it a 70 seconds, the transition is taken at 71 seconds, it's OK.
BUT:
3- If is stop my DB at 20 sec with JBoss AS always alive and i restart it at 50 seconds, it's not OK, i have this exception:
15:37:07,782 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@c57076[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@5a6d04 handles=0 lastUse=1237991707886 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1165281 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@82b79d xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@5a6d04 txSync=null]
| oracle.jdbc.xa.OracleXAException
| at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)
| at ??????
|
|
|
| 15:37:07,813 ERROR [STDERR] java.lang.IllegalMonitorStateException
| 15:37:07,813 ERROR [STDERR] at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
| 15:37:07,813 ERROR [STDERR] at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
| 15:37:07,813 ERROR [STDERR] at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
| 15:37:07,813 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.unlock(BaseWrapperManagedConnection.java:277)
| 15:37:07,813 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:235)
| 15:37:07,813 ERROR [STDERR] at ??????
| 15:37:07,813 ERROR [STDERR] at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:104)
| 15:37:07,813 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:561)
| 15:37:07,813 ERROR [STDERR] at java.util.TimerThread.mainLoop(Unknown Source)
| 15:37:07,813 ERROR [STDERR] at java.util.TimerThread.run(Unknown Source)
|
|
|
| 15:37:07,813 ERROR [LogInterceptor] EJBException in method: public abstract void javax.ejb.TimedObject.ejbTimeout(javax.ejb.Timer), causedBy:
| org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a0aa4b2:991:49ca40e5:f6 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a0aa4b2:991:49ca40e5:f6 status: ActionStatus.ABORT_ONLY >))
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
| at ??????
|
|
|
| 15:37:07,813 ERROR [TimerImpl] Error invoking ejbTimeout
| javax.ejb.EJBException: Load failed
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:251)
| at ??????
| Caused by: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a0aa4b2:991:49ca40e5:f6 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a0aa4b2:991:49ca40e5:f6 status: ActionStatus.ABORT_ONLY >))
| at ??????
|
| 15:37:07,938 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1c50966[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@e3a17 handles=0 lastUse=1237991661503 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1165281 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@82b79d xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@e3a17 txSync=null]
| oracle.jdbc.xa.OracleXAException
| at ??????
and 4- If is stop my DB at 20 sec with JBoss AS always alive and i restart it at 50 seconds, it's not OK, i have the exception. I restart JBoss AS and the transition is taken.
So my question is : What are all these exceptions? Could somebody help me? I would like to have my timer working when my DB is relaunched without restart my JBoss AS.
Thx.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220942#4220942
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220942
17 years
[Remoting] - RMI from JBoss 4.3 to JBoss 4.2
by boniek
I'm trying to invoke in JBoss 4.3 eap hand compiled, remote method on my bean that is deployed on JBoss 4.2 as, but I get following error:
anonymous wrote : 2009-03-25 14:46:54,309 ERROR [org.apache.catalina.core.ContainerBase]
| Servlet.service() for servlet FileServlet threw exception
| java.lang.ClassCastException:
| org.jboss.serial.io.MarshalledObjectForLocalCalls cannot be cast to
| java.lang.Integer
| at $Proxy208.addFile(Unknown Source)
| at
| test.FileServlet.saveFile(FileServlet.java:204)
| at
| test.FileServlet.service(FileServlet.java:117)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
| at
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
| at
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at
| org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at
| org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at
| org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
Any ideas as to why it does not work? What can I do about it?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220929#4220929
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220929
17 years