[jboss-user] [JBoss jBPM] - Re: LinkageError
I'm wandering if I'm ending a task instance correctly since I can figure out the problem. | engine.openSession(); | JbpmContext jbpmContext = engine.getJbpmContext(); | | | TaskInstance taskInstance = jbpmContext.getTaskInstance(taskInstanceId); | | if (map != null map.size() 0) { | taskInstance.setVariables(map); | } | | | taskInstance.end(transition); | | engine.closeSession(); | | Is this code correct? is it usual to use it like this? This only gives me problem's when the next node is a decision node. thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065898#4065898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
kukeltje wrote : from what I read in other forums and on the internet, could be related to classsloading issues or two things accessing the same transaction. Sorry, but I hope you can investigate this a little further yourself. That would be very helpful yeah, but i'm following the code to a deeper level than my knowledge, so is a bit difficult, but I will be posting here any process, perhaps with some more detail and with your knowledge, we could comprehend what is happening. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064948#4064948 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064948 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
Ricardo, I'm no expert, but I'd be looking at your database and transaction configurations. What database are you using? It looks like you're running in Tomcat - yes? At the point that you're failing, you're probably opening a Job session for the first time. Jobs are interesting because they run on a different Hibernate session (and hence transaction and database connection) from the rest of JBPM. This probably has something to do with your problem - like for some reason I can't think of, you can't have two transactions open at once. On second thought... this is the only spot in the code that I see a session.getTransaction() call to Hibernate. You might look at the transaction-related properties in hibernate.cfg.xml and see if they make sense in your context. You might search around on them to get some guidance. -Ed View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064970#4064970 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064970 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
estaub wrote : Ricardo, | I'm no expert, but I'd be looking at your database and transaction configurations. What database are you using? It looks like you're running in Tomcat - yes? | i'm using jboss 4.0.5 and mysql 5 What I think thats weird is that i'm using only the command interface, so I suppose that it's something from the core, or not :) I will analyze what i said. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065009#4065009 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
oops, *what you said :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065011#4065011 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065011 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
Here's my definition: | ?xml version=1.0 encoding=UTF-8? | | process-definition | xmlns= name=condition |swimlane name=default | assignment expression=user(grover)/assignment |/swimlane |end-state name=fim/end-state |task-node name=which path | task name=which path to follow swimlane=default | controller | variable name=path access=read,write,required/variable | /controller | /task | transition name= to=decision/transition |/task-node |start-state name=start | transition name= to=which path/transition |/start-state |decision name=decision | transition name=to right to=right | condition expression=#{ path == 'right' } / | /transition | transition name=to left to=left | condition expression=#{ path == 'left' } / | /transition |/decision |node name=left | event type=node-enter | action name=action1 class=actions.NotifyLeft/action | /event | transition name=from left to=end/transition |/node |node name=right | event type=node-enter | action name=action1 class=actions.NotifyRight/action | /event | transition name=from right to=end/transition |/node | /process-definition | When I come to task node and enter a value like right or left, I run a TaskInstanceEndCommand to end the task and continue, when I do that the considtino is evaluated and the correct node is called (which prints a line on the console), then the Linkage Error pops up. Debugging the application the error is raised on node.leave() I'm trying to get a bit more detail where the error is raised, so clues and hints are welcome meantime :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065094#4065094 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065094 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
from what I read in other forums and on the internet, could be related to classsloading issues or two things accessing the same transaction. Sorry, but I hope you can investigate this a little further yourself. That would be very helpful View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064698#4064698 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
Is it happening consistently? What is your environment? Can you describe this a bit more specific please? Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063343#4063343 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063343 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
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. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063396#4063396 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063396 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
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. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063421#4063421 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: LinkageError
I'll change the schema to at least require 1 task as a child of task-node View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063444#4063444 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user