10 Replies Latest reply on Oct 4, 2012 12:19 PM by Andrey Trakhirov

    taskClient.complete EXCEPTION

    gigazhang Newbie

      when call

       

      taskClient.complete(taskId, userId, contentData, operationHandler);

       

      throwing some EXCEPTION:

       

      what's wrong with it?

       

      debug ,,then found that:

      null.png

       

      2012-06-19 17:58:40,617 WARN [org.apache.mina.filter.logging.LoggingFilter] - <EXCEPTION :>

      org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException

              at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:355)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:808)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:734)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:501)

              at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:490)

              at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:435)

              at org.jbpm.task.service.mina.MinaSessionWriter.write(MinaSessionWriter.java:31)

              at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:134)

              at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:71

      6)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427

      )

              at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)

              at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

              at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.NullPointerException

              at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2116)

              at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1987)

              at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:865)

              at org.jbpm.task.I18NText.writeExternal(I18NText.java:53)

              at org.jbpm.task.utils.CollectionUtils.writeI18NTextList(CollectionUtils.java:235)

              at org.jbpm.task.Task.writeExternal(Task.java:92)

              at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1443)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1414)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

              at org.apache.mina.core.buffer.AbstractIoBuffer.putObject(AbstractIoBuffer.java:2011)

              at org.apache.mina.filter.codec.serialization.ObjectSerializationEncoder.encode(ObjectSerializationEncoder.java:

      80)

              at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:322)

              ... 36 more

      org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException

              at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:355)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:808)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:734)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:501)

              at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:490)

              at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:435)

              at org.jbpm.task.service.mina.MinaSessionWriter.write(MinaSessionWriter.java:31)

              at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:134)

              at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:71

      6)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427

      )

              at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:7

      96)

              at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

              at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)

              at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)

              at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

              at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.NullPointerException

              at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2116)

              at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1987)

              at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:865)

              at org.jbpm.task.I18NText.writeExternal(I18NText.java:53)

              at org.jbpm.task.utils.CollectionUtils.writeI18NTextList(CollectionUtils.java:235)

              at org.jbpm.task.Task.writeExternal(Task.java:92)

              at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1443)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1414)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

              at org.apache.mina.core.buffer.AbstractIoBuffer.putObject(AbstractIoBuffer.java:2011)

              at org.apache.mina.filter.codec.serialization.ObjectSerializationEncoder.encode(ObjectSerializationEncoder.java:

      80)

              at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:322)

        • 1. Re: taskClient.complete EXCEPTION
          Mauricio Salatino Master

          What are you trying to send in ContentData? Are you sure that all the objects there are serializable?

          • 2. Re: taskClient.complete EXCEPTION
            gigazhang Newbie

            My  code :

             

            public void completeProgressTask(long taskId, Map<String, Object> data, String userId) throws InterruptedException {

                    BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();

                    responseHandler.waitTillDone(5000);

                    ContentData contentData = null;

                    if (data != null) {

                        ByteArrayOutputStream bos = new ByteArrayOutputStream();

                        ObjectOutputStream out;

                        try {

                            out = new ObjectOutputStream(bos);

                            out.writeObject(data);

                            out.close();

                            contentData = new ContentData();

                            contentData.setContent(bos.toByteArray());

                            contentData.setAccessType(AccessType.Inline);

                            bos.close();

                            bos = null;

                        } catch (IOException e) {

                            e.printStackTrace();

                        }

                    }

                    taskClient.complete(taskId, userId, contentData, operationHandler);

                    operationHandler.waitTillDone(5000);

                }

            • 3. Re: taskClient.complete EXCEPTION
              gigazhang Newbie

              The method in 5.2 is OK.When i update my application to 5.3,,,got exception

              • 4. Re: taskClient.complete EXCEPTION
                gigazhang Newbie

                tomcat log:

                 

                2012-06-20 15:37:00,744 INFO [org.apache.mina.filter.logging.LoggingFilter] - <RECEIVED: HeapBuffer[pos=0 lim=180 cap=2048: 00 00 00 B0 AC ED 00 05 73 72 01 00 1D 6F 72 67...]>

                2012-06-20 15:37:00,764 INFO [org.apache.mina.filter.logging.LoggingFilter] - <SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]>

                2012-06-20 15:37:00,767 INFO [org.apache.mina.filter.logging.LoggingFilter] - <RECEIVED: HeapBuffer[pos=0 lim=273 cap=2048: 00 00 01 0D AC ED 00 05 73 72 01 00 1D 6F 72 67...]>

                2012-06-20 15:37:00,781 INFO [org.apache.mina.filter.logging.LoggingFilter] - <SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]>

                2012-06-20 15:37:05,771 INFO [org.apache.mina.filter.logging.LoggingFilter] - <RECEIVED: HeapBuffer[pos=0 lim=470 cap=1024: 00 00 01 D2 AC ED 00 05 73 72 01 00 1D 6F 72 67...]>

                2012-06-20 15:37:05,796 INFO [org.apache.mina.filter.logging.LoggingFilter] - <SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]>

                2012-06-20 15:37:05,806 INFO [org.apache.mina.filter.logging.LoggingFilter] - <RECEIVED: HeapBuffer[pos=0 lim=211 cap=1024: 00 00 00 CF AC ED 00 05 73 72 01 00 1D 6F 72 67...]>

                2012-06-20 15:37:05,815 INFO [org.apache.mina.filter.logging.LoggingFilter] - <SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]>

                2012-06-20 15:37:05,823 WARN [org.apache.mina.filter.logging.LoggingFilter] - <EXCEPTION :>

                org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException

                • 5. Re: taskClient.complete EXCEPTION
                  gigazhang Newbie

                  I filled the comment field in bpmn file, throws other exception:

                   

                  2012-06-27 17:34:46,634 INFO [org.apache.mina.filter.logging.LoggingFilter] - <SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]>

                  java.lang.NullPointerException

                      at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetCompletedTaskResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:241)

                      at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:81)

                      at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)

                      at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)

                      at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)

                      at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                      at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)

                      at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)

                      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)

                      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)

                      at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)

                      at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)

                      at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

                      at java.lang.Thread.run(Thread.java:722)

                  • 6. Re: taskClient.complete EXCEPTION
                    Pascal S Newbie

                    Hi,

                     

                    i get almost the same exception, when i try to complete my task.

                     

                    18:05:26,319 ERROR [stderr] (NioProcessor-11) java.lang.NullPointerException

                    18:05:26,320 ERROR [stderr] (NioProcessor-11)     at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:276)

                    18:05:26,320 ERROR [stderr] (NioProcessor-11)     at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)

                    18:05:26,320 ERROR [stderr] (NioProcessor-11)     at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229)

                    18:05:26,321 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598)

                    18:05:26,322 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                    18:05:26,323 ERROR [stderr] (NioProcessor-11)     at java.lang.Thread.run(Unknown Source)

                     

                    The debugmode shows me, that the manager (manager.completeWorkItem(task.getTaskData().getWorkItemId(), results);) is null, but i dont know how to change it.

                    I use jbpm 5.3 Final with jboss as 7.0.

                     

                    I hope someone can help :-)

                    • 7. Re: taskClient.complete EXCEPTION
                      Mauricio Salatino Master

                      I think that this bug is already fixed in master.

                      Can you use the latest snapshots?

                      Cheers

                      • 8. Re: taskClient.complete EXCEPTION
                        Pascal S Newbie

                        I changed to 5.4-SNAPSHOT and now i get a new exception:

                         

                        Caused by: java.lang.NoSuchFieldError: classLoader

                            at org.jbpm.task.utils.ContentMarshallerHelper.unmarshall(ContentMarshallerHelper.java:105) [jbpm-human-task-core-5.4.0-SNAPSHOT.jar:]

                        • 9. Re: taskClient.complete EXCEPTION
                          Pascal S Newbie

                          Oh sorry,

                          i forgot to change the drools-version.

                          Now it works with jbpm 5.4-SNAPSHOT and drools 5.5-SNAPSHOT

                          1 of 1 people found this helpful
                          • 10. Re: taskClient.complete EXCEPTION
                            Andrey Trakhirov Newbie

                            My code is:

                             

                            AsyncGenericHTWorkItemHandler taskHandler = new AsyncGenericHTWorkItemHandler(session);

                            Field f = AsyncGenericHTWorkItemHandler.class.getDeclaredField("manager");

                            f.setAccessible(true);

                            f.set(taskHandler, session.getWorkItemManager());