Hi all
I have a problem with the User Task work Item when I have an in and out
parameters. I am using a simple scenario just to reproduce the Error and
exception and the scenario is:
Start -> user task with parameter (in, out) -> End
I am having the following exception once I execute the Task:
ERROR [STDERR] java.lang.NullPointerException
ERROR [STDERR] at
org.drools.marshalling.impl.MarshallerReaderContext.resolveClass(MarshallerReaderContext.java:78)
ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(Unknown
Source)
ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(Unknown
Source)
ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
ERROR [STDERR] at java.io.ObjectInputStream.readObject0(Unknown Source)
ERROR [STDERR] at java.io.ObjectInputStream.readObject(Unknown Source)
ERROR [STDERR] at
org.drools.marshalling.impl.InputMarshaller.readWorkItem(InputMarshaller.java:829)
ERROR [STDERR] at
org.drools.persistence.processinstance.WorkItemInfo.getWorkItem(WorkItemInfo.java:86)
ERROR [STDERR] at
org.drools.persistence.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:90)
ERROR [STDERR] at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:46)
ERROR [STDERR] at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:12)
ERROR [STDERR] at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:254)
ERROR [STDERR] at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:118
ERROR [STDERR] at
org.drools.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTa
va:297)
ERROR [STDERR] at
org.drools.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:139)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
ERROR [STDERR] at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
ERROR [STDERR] at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
ERROR [STDERR] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
ERROR [STDERR] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
ERROR [STDERR] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
ERROR [STDERR] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
ERROR [STDERR] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
ERROR [STDERR] at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
ERROR [STDERR] at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
ERROR [STDERR] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
INFO [STDOUT] [2009:12:337 09:12:671:exception] Uncaught exception on
client
INFO [STDOUT] java.lang.RuntimeException: Could not rollback transaction
INFO [STDOUT] at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:283)
INFO [STDOUT] at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:118
INFO [STDOUT] at
org.drools.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTa
va:297)
INFO [STDOUT] at
org.drools.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:139)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
INFO [STDOUT] at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
INFO [STDOUT] at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
INFO [STDOUT] at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
INFO [STDOUT] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
INFO [STDOUT] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
INFO [STDOUT] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
INFO [STDOUT] at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
INFO [STDOUT] at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
INFO [STDOUT] at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
INFO [STDOUT] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO [STDOUT] at java.lang.Thread.run(Unknown Source)
INFO [STDOUT] Caused by: java.lang.RuntimeException: Could not execute
command
INFO [STDOUT] at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:280)
INFO [STDOUT] ... 24 more
INFO [STDOUT] Caused by: java.lang.NullPointerException
INFO [STDOUT] at
org.drools.marshalling.impl.MarshallerReaderContext.resolveClass(MarshallerReaderContext.java:78)
INFO [STDOUT] at java.io.ObjectInputStream.readNonProxyDesc(Unknown
Source)
INFO [STDOUT] at java.io.ObjectInputStream.readClassDesc(Unknown
Source)
INFO [STDOUT] at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
INFO [STDOUT] at java.io.ObjectInputStream.readObject0(Unknown Source)
INFO [STDOUT] at java.io.ObjectInputStream.readObject(Unknown Source)
INFO [STDOUT] at
org.drools.marshalling.impl.InputMarshaller.readWorkItem(InputMarshaller.java:829)
INFO [STDOUT] at
org.drools.persistence.processinstance.WorkItemInfo.getWorkItem(WorkItemInfo.java:86)
INFO [STDOUT] at
org.drools.persistence.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:90)
INFO [STDOUT] at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:46)
INFO [STDOUT] at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:12)
INFO [STDOUT] at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:254)
INFO [STDOUT] ... 24 more
Regards
Ram
--
View this message in context:
http://n3.nabble.com/Error-in-the-USER-TASK-work-handler-tp67037p67037.html
Sent from the Drools - User mailing list archive at
Nabble.com.