jboss-user
[Arriba] [Todas las Listas]

[jboss-Usuario] [jBPM] - Re: Problema en un proceso con un acontecimient

To: User development <jboss-user@xxxxxxxxxxxxxxx>
Subject: [jboss-Usuario] [jBPM] - Re: Problema en un proceso con un acontecimiento-temporizador basado y JPAWorkingMemoryDbLogger
From: Ryan Peterson <do-not-reply@xxxxxxxxx>
Date: Mon, 19 Sep 2011 12:29:16 -0400
Auto-submitted: yes
Delivery-date: Mon, 19 Sep 2011 12:30:49 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <2-621274-3-39252-1313505287031-2-623245-3-39252-1314377851998.jivesbs.jivemailuser@http://community.jboss.org>
List-archive: <http://lists.jboss.org/pipermail/jboss-user>
List-help: <mailto:jboss-user-request@lists.jboss.org?subject=help>
List-id: The JBoss User main mailing list <jboss-user.lists.jboss.org>
List-post: <mailto:jboss-user@lists.jboss.org>
List-subscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=subscribe>
List-unsubscribe: <https://lists.jboss.org/mailman/listinfo/jboss-user>, <mailto:jboss-user-request@lists.jboss.org?subject=unsubscribe>
References: <2-621274-3-39252-1313505287031.jivesbs.jivemailuser@http://community.jboss.org> <2-621274-3-39252-1313505287031-2-623245-3-39252-1314377851998.jivesbs.jivemailuser@http://community.jboss.org>
Reply-to: The JBoss User main mailing list <jboss-user@xxxxxxxxxxxxxxx>
Sender: jboss-user-bounces@xxxxxxxxxxxxxxx
Ryan *Peterson [*http://comunidad.*jboss.*org/Personas/*rrpeterson] creó la discusión

"*Re: Problema en un proceso con un acontecimiento-temporizador basado y *JPAWorkingMemoryDbLogger"

para ver la discusión, visita: *http://comunidad.*jboss.*org/Mensaje/627274#627274

--------------------------------------------------------------
estoy consiguiendo esta excepción misma.  Creo 5 casos de un proceso.  *Mid-Punto en el proceso tengo un temporizador, y las cosas son corridas/persistió correctamente hasta el temporizador es logrado.  En este control de punto es regresado al *caller, el cual espera para algún tiempo hasta *re-*aquiring los casos de sesión (*via *JPAKnowledgeService.*loadStatefulKnowledgeSession(*w, *x, *y, *z)) y *fireUntilHalt() es llamado en el *ksession.  En este punto, un intermitente # de mi quedando casos de proceso ejecutarán correctamente (quizás 2 fuera de 5), y el quedando falla con el siguiendo excepción:

*Hibernate: selecciona *processins0_.*InstanceId Como *InstanceId121_0_, *processins0_.*lastModificationDate Como *lastModi2_121_0_, *processins0_.*lastReadDate Como *lastRead3_121_0_, *processins0_.*processId Como *processId121_0_, *processins0_.*processInstanceByteArray Como *processI5_121_0_, *processins0_.*startDate Como *startDate121_0_, *processins0_.Estado como estatal121_0_, *processins0_.*OPTLOCK Como *OPTLOCK121_0_ de *ProcessInstanceInfo *processins0_ dónde *processins0_.*InstanceId=?
*org.*drools.*RuntimeDroolsException: La Excepción inesperada que ejecuta acción *org.*jbpm.Proceso.Caso.Acontecimiento.*DefaultSignalManager$*SignalProcessInstanceAction@3*f1*dae99
 en *org.*drools.Común.*AbstractWorkingMemory.*executeQueuedActions(*AbstractWorkingMemory.*java:996)
 en *org.*drools.*impl.*StatefulKnowledgeSessionImpl.*executeQueuedActions(*StatefulKnowledgeSessionImpl.*java:845)
 en *org.*jbpm.Proceso.Caso.Acontecimiento.*DefaultSignalManager.*signalEvent(*DefaultSignalManager.*java:89)
 en *org.*jbpm.Proceso.Caso.Temporizador.*TimerManager$*ProcessJob.Ejecuta(*TimerManager.*java:164)
 en *org.*drools.Tiempo.*impl.*JDKTimerService$*JDKCallableJob.Llamada(*JDKTimerService.*java:151)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JpaJDKCallableJob.*internalCall(*JpaJDKTimerService.*java:80)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JpaJDKCallableJob.Acceso$100(*JpaJDKTimerService.*java:63)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JDKCallableJobCommand.Ejecuta(*JpaJDKTimerService.*java:96)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JDKCallableJobCommand.Ejecuta(*JpaJDKTimerService.*java:84)
 en *org.*drools.Persistencia.*SingleSessionCommandService.Ejecuta(*SingleSessionCommandService.*java:292)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JpaJDKCallableJob.Llamada(*JpaJDKTimerService.*java:75)
 en *org.*drools.Persistencia.*jpa.*JpaJDKTimerService$*JpaJDKCallableJob.Llamada(*JpaJDKTimerService.*java:63)
 en *java.*util.Concurrente.*FutureTask$*Sync.*innerRun(*FutureTask.*java:303)
 en *java.*util.Concurrente.*FutureTask.Carrera(*FutureTask.*java:138)
 en *java.*util.Concurrente.*ScheduledThreadPoolExecutor$*ScheduledFutureTask.Acceso$301(*ScheduledThreadPoolExecutor.*java:98)
 en *java.*util.Concurrente.*ScheduledThreadPoolExecutor$*ScheduledFutureTask.Carrera(*ScheduledThreadPoolExecutor.*java:206)
 en *java.*util.Concurrente.*ThreadPoolExecutor$Trabajador.*runTask(*ThreadPoolExecutor.*java:886)
 en *java.*util.Concurrente.*ThreadPoolExecutor$Trabajador.Carrera(*ThreadPoolExecutor.*java:908)
 en *java.*lang.Hilo.Carrera(Hilo.*java:662)
Causado por: *java.*lang.*NullPointerException
 En *org.*jbpm.Proceso.Auditoría.*JPAWorkingMemoryDbLogger.*getEntityManager(*JPAWorkingMemoryDbLogger.*java:131)
 en *org.*jbpm.Proceso.Auditoría.*JPAWorkingMemoryDbLogger.*addNodeExitLog(*JPAWorkingMemoryDbLogger.*java:118)
 en *org.*jbpm.Proceso.Auditoría.*JPAWorkingMemoryDbLogger.*logEventCreated(*JPAWorkingMemoryDbLogger.*java:80)
 en *org.*drools.Auditoría.*WorkingMemoryLogger.*filterLogEvent(*WorkingMemoryLogger.*java:196)
 en *org.*drools.Auditoría.*WorkingMemoryLogger.*beforeNodeLeft(*WorkingMemoryLogger.*java:506)
 en *org.*drools.Acontecimiento.*ProcessEventSupport.*fireBeforeNodeLeft(*ProcessEventSupport.*java:112)
 en *org.*jbpm.*workflow.Caso.*impl.*NodeInstanceImpl.*triggerConnection(*NodeInstanceImpl.*java:162)
 en *org.*jbpm.*workflow.Caso.*impl.*NodeInstanceImpl.*triggerCompleted(*NodeInstanceImpl.*java:150)
 en *org.*jbpm.*workflow.Caso.*impl.*ExtendedNodeInstanceImpl.*triggerCompleted(*ExtendedNodeInstanceImpl.*java:47)
 en *org.*jbpm.*workflow.Caso.Nodo.*StateBasedNodeInstance.*triggerCompleted(*StateBasedNodeInstance.*java:162)
 en *org.*jbpm.*workflow.Caso.Nodo.*TimerNodeInstance.*triggerCompleted(*TimerNodeInstance.*java:135)
 en *org.*jbpm.*workflow.Caso.Nodo.*TimerNodeInstance.*signalEvent(*TimerNodeInstance.*java:125)
 en *org.*jbpm.*workflow.Caso.*impl.*WorkflowProcessInstanceImpl.*signalEvent(*WorkflowProcessInstanceImpl.*java:333)
 en *org.*jbpm.Proceso.Caso.Acontecimiento.*DefaultSignalManager$*SignalProcessInstanceAction.Ejecuta(*DefaultSignalManager.*java:117)
 en *org.*drools.Común.*AbstractWorkingMemory.*executeQueuedActions(*AbstractWorkingMemory.*java:994)
 ... 18 más
--------------------------------------------------------------

Respuesta a este mensaje por ir a Comunidad
[*http://comunidad.*jboss.*org/Mensaje/627274#627274]

Empieza una discusión nueva en *jBPM en Comunidad
[*http://comunidad.*jboss.*org/Escoge-contenedor!Entrada.*jspa?*contentType=1&*containerType=14&contenedor=2034]

Ryan Peterson [http://community.jboss.org/people/rrpeterson] created the discussion

"Re: Problem in a process with a event-based timer and JPAWorkingMemoryDbLogger"

To view the discussion, visit: http://community.jboss.org/message/627274#627274

--------------------------------------------------------------
I'm getting this same exception.  I create 5 instances of a process.  Mid-point in the process I have a timer, and things are run/persisted properly until the timer is reached.  At this point control is returned to the caller, which waits for some time until re-aquiring the session instances (via JPAKnowledgeService.loadStatefulKnowledgeSession(w, x, y, z)) and fireUntilHalt() is called on the ksession.  At this point, an intermittent # of my remaining process instances will execute properly (maybe 2 out of 5), and the remaining fail with the following exception:

Hibernate: select processins0_.InstanceId as InstanceId121_0_, processins0_.lastModificationDate as lastModi2_121_0_, processins0_.lastReadDate as lastRead3_121_0_, processins0_.processId as processId121_0_, processins0_.processInstanceByteArray as processI5_121_0_, processins0_.startDate as startDate121_0_, processins0_.state as state121_0_, processins0_.OPTLOCK as OPTLOCK121_0_ from ProcessInstanceInfo processins0_ where processins0_.InstanceId=?
org.drools.RuntimeDroolsException: Unexpected exception executing action org.jbpm.process.instance.event.DefaultSignalManager$SignalProcessInstanceAction@3f1dae99
 at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:996)
 at org.drools.impl.StatefulKnowledgeSessionImpl.executeQueuedActions(StatefulKnowledgeSessionImpl.java:845)
 at org.jbpm.process.instance.event.DefaultSignalManager.signalEvent(DefaultSignalManager.java:89)
 at org.jbpm.process.instance.timer.TimerManager$ProcessJob.execute(TimerManager.java:164)
 at org.drools.time.impl.JDKTimerService$JDKCallableJob.call(JDKTimerService.java:151)
 at org.drools.persistence.jpa.JpaJDKTimerService$JpaJDKCallableJob.internalCall(JpaJDKTimerService.java:80)
 at org.drools.persistence.jpa.JpaJDKTimerService$JpaJDKCallableJob.access$100(JpaJDKTimerService.java:63)
 at org.drools.persistence.jpa.JpaJDKTimerService$JDKCallableJobCommand.execute(JpaJDKTimerService.java:96)
 at org.drools.persistence.jpa.JpaJDKTimerService$JDKCallableJobCommand.execute(JpaJDKTimerService.java:84)
 at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:292)
 at org.drools.persistence.jpa.JpaJDKTimerService$JpaJDKCallableJob.call(JpaJDKTimerService.java:75)
 at org.drools.persistence.jpa.JpaJDKTimerService$JpaJDKCallableJob.call(JpaJDKTimerService.java:63)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
 at org.jbpm.process.audit.JPAWorkingMemoryDbLogger.getEntityManager(JPAWorkingMemoryDbLogger.java:131)
 at org.jbpm.process.audit.JPAWorkingMemoryDbLogger.addNodeExitLog(JPAWorkingMemoryDbLogger.java:118)
 at org.jbpm.process.audit.JPAWorkingMemoryDbLogger.logEventCreated(JPAWorkingMemoryDbLogger.java:80)
 at org.drools.audit.WorkingMemoryLogger.filterLogEvent(WorkingMemoryLogger.java:196)
 at org.drools.audit.WorkingMemoryLogger.beforeNodeLeft(WorkingMemoryLogger.java:506)
 at org.drools.event.ProcessEventSupport.fireBeforeNodeLeft(ProcessEventSupport.java:112)
 at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:162)
 at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
 at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
 at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
 at org.jbpm.workflow.instance.node.TimerNodeInstance.triggerCompleted(TimerNodeInstance.java:135)
 at org.jbpm.workflow.instance.node.TimerNodeInstance.signalEvent(TimerNodeInstance.java:125)
 at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
 at org.jbpm.process.instance.event.DefaultSignalManager$SignalProcessInstanceAction.execute(DefaultSignalManager.java:117)
 at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:994)
 ... 18 more
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/627274#627274]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
*jboss-Usuario *mailing lista
*jboss-user@xxxxxxxxxxxxxxx
*https://listas.*jboss.*org/*mailman/*listinfo/*jboss-Usuario
_______________________________________________
jboss-user mailing list
jboss-user@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/jboss-user
<Anterior por Tema] Tema Actual [Siguiente por Tema>