4 Replies Latest reply on Jul 12, 2007 8:16 AM by Ronald van Kuijk

    LinkageError

    Ricardo Marques Novice

      Hi

      I'm getting this throw when running a TaskInstanceEndCommand, and i get no idea why this is happening or what it means.

      Appreciate any feedback on this!

      16:13:47,593 INFO [STDOUT] THROW: java.lang.LinkageError: loader constraints violated when linking javax/transaction/Synchronization class
      16:13:47,593 ERROR [STDERR] java.lang.LinkageError: loader constraints violated when linking javax/transaction/Synchronization class
      16:13:47,593 ERROR [STDERR] at org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:208)
      16:13:47,625 ERROR [STDERR] at org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(DbSchedulerService.java:54)
      16:13:47,625 ERROR [STDERR] at org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:310)
      16:13:47,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:47,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:47,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:47,625 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:47,625 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:47,625 ERROR [STDERR] at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$1e59025c.end(<generated>)
      16:13:47,625 ERROR [STDERR] at org.jbpm.graph.exe.Token.notifyParentOfTokenEnd(Token.java:320)
      16:13:47,625 ERROR [STDERR] at org.jbpm.graph.exe.Token.end(Token.java:292)
      16:13:47,625 ERROR [STDERR] at org.jbpm.graph.exe.Token.end(Token.java:242)
      16:13:48,125 ERROR [STDERR] at org.jbpm.graph.node.EndState.execute(EndState.java:59)
      16:13:48,125 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:318)
      16:13:48,125 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:48,125 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:48,125 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:48,125 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:48,125 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.enter(<generated>)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java:151)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:393)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:357)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:190)
      16:13:48,625 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:318)
      16:13:48,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:48,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:49,125 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:49,125 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:49,125 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:49,125 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.enter(<generated>)
      16:13:49,125 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java:151)
      16:13:49,625 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:393)
      16:13:49,625 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:357)
      16:13:49,625 ERROR [STDERR] at org.jbpm.graph.def.Node.execute(Node.java:349)
      16:13:49,625 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:318)
      16:13:49,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:49,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:49,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:49,625 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:50,125 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:50,125 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.enter(<generated>)
      16:13:50,125 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java:151)
      16:13:50,125 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:393)
      16:13:50,125 ERROR [STDERR] at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
      16:13:50,125 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:50,125 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:50,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:50,625 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:50,625 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:50,625 ERROR [STDERR] at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.leave(<generated>)
      16:13:50,625 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:194)
      16:13:50,625 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:139)
      16:13:50,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:50,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:50,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:51,125 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:51,125 ERROR [STDERR] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
      16:13:51,125 ERROR [STDERR] at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$a16a0cb1.signal(<generated>)
      16:13:51,125 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:475)
      16:13:51,125 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:389)
      16:13:51,125 ERROR [STDERR] at org.jbpm.command.TaskInstanceEndCommand.execute(TaskInstanceEndCommand.java:70)
      16:13:51,625 ERROR [STDERR] at com.pep.workflow.console.beans.JBPMEngine.execute(JBPMEngine.java:130)
      16:13:51,625 ERROR [STDERR] at com.pep.workflow.console.beans.Form.submit(Form.java:125)
      16:13:51,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:13:51,625 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:13:51,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:13:51,625 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      16:13:51,625 ERROR [STDERR] at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
      16:13:51,625 ERROR [STDERR] at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
      16:13:51,625 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      16:13:52,125 ERROR [STDERR] at javax.faces.component.UIData.broadcast(UIData.java:513)
      16:13:52,125 ERROR [STDERR] at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
      16:13:52,125 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
      16:13:52,125 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
      16:13:52,125 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      16:13:52,625 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
      16:13:52,625 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      16:13:52,625 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      16:13:52,625 ERROR [STDERR] at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      16:13:52,625 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      16:13:53,125 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      16:13:53,125 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      16:13:53,125 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      16:13:53,125 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      16:13:53,125 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      16:13:53,125 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      16:13:53,625 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      16:13:53,625 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      16:13:53,625 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      16:13:53,625 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      16:13:53,625 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      16:13:53,625 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      16:13:53,625 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      16:13:54,125 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      16:13:54,125 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      16:13:54,125 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      16:13:54,125 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      16:13:54,125 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      



      thanks

        • 1. Re: LinkageError
          Koen Aers Master

          Is it happening consistently? What is your environment? Can you describe this a bit more specific please?

          Regards,
          Koen

          • 2. Re: LinkageError
            Ricardo Marques Novice

            Environment: jbpm 3.2 + mysql 5 + jboss as 4.0.5 + jdk 1.5.x


            This is happening after the the action of this process been run, when I execute TaskInstanceEndCommand, and untill now this happens only on this process.


            
            StartWorkOnTaskCommand cmd1 = new StartWorkOnTaskCommand(taskInstanceId, false);
            TaskInstanceEndCommand cmd2 = new TaskInstanceEndCommand();
            
            cmd2.setVariables(map);
            cmd2.setTaskInstanceId(taskInstanceId);
            
            execute (....)
            



            <process-definition
             xmlns="" name="notificacao">
             <swimlane name="default">
             <assignment expression="user(grover)"></assignment>
             </swimlane>
             <node name="envia email">
             <event type="node-enter">
             <action name="sendmail" class="com.pep.actions.SendMail"></action>
             </event>
             <transition name="" to="confinuar"></transition>
             </node>
             <task-node name="confinuar">
             <transition name="t end" to="end"></transition>
             <transition name="repetir" to="decidir o destinatario"></transition>
             </task-node>
             <end-state name="end"></end-state>
             <task-node name="decidir o destinatario">
             <task name="inserir destinatario" swimlane="default">
             <controller>
             <variable name="destinatario" access="read,write,required"></variable>
             <variable name="tipo" access="read,write,required"></variable>
             </controller>
             </task>
             <transition name="" to="envia email"></transition>
             </task-node>
             <start-state name="start">
             <transition name="" to="decidir o destinatario"></transition>
             </start-state>
            </process-definition>
            


            the action com.pep.actions.SendMail, simply outputs hello world, until this part everything works, after this it gives the error that i mentioned.


            • 3. Re: LinkageError
              Ricardo Marques Novice

              apparently when i add a task to "confinuar" the problem vanish, still the error that jbpm gives in the absence of task's is a bit odd.

              • 4. Re: LinkageError
                Ronald van Kuijk Master

                I'll change the schema to at least require 1 task as a child of task-node