JBoss Community

Re: Exception retrieving task

created by jnorris in jBPM - View the full discussion

I had issues with hornetq in the human task war file so I switched to the standalone mina server so I could test my application.  I changed the code to the following but still get an exception that appears to be an issue with the I18NText data.  After starting a process there are 2 rows added to that table and the TASK_SUBJECTS_ID column is null in the first one.

 

     [java] Hibernate: select subjects0_.Task_Subjects_Id as Task4_1_, subjects0_.id as id1_, subjects0_.id as id7_0_, subjects0_.language as language7_0_, subjects0_.text as text7_0_ from I18NText su

bjects0_ where subjects0_.Task_Subjects_Id=?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

     [java]     at java.lang.Thread.run(Thread.java:662)

     [java] Caused by: java.lang.NullPointerException

     [java]     at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2106)

     [java]     at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1977)

     [java]     at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:849)

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

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

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

     [java]     at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1429)

     [java]     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1398)

     [java]     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

     [java]     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

     [java]     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

     [java]     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

     [java]     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

     [java]     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

     [java]     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

     [java]     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

     [java]     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

     [java]     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

     [java]     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

     [java]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

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

     [java]     at org.apache.mina.filter.codec.serialization.ObjectSerializationEncoder.encode(ObjectSerializationEncoder.java:80)

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community