JBoss Community

Re: Exception retrieving task

created by jnorris in jBPM - View the full discussion

Hi All,

 

I'm pretty sure the issues with getting a task are due to the I18NText null values.  When a process is started a task is created.  There are also 2 rows created in the I18NText table.  The first row has a value for TASK_DESCRIPTIONS_ID and nulls for TASK_SUBJECTS_ID and TASK_NAMES_ID.  The second row has a value for TASK_SUBJECTS_ID and nulls for TASK_DESCRIPTIONS_ID and TASK_NAMES_ID.  I would think only one row would be created for a task.  Does anyone have a clue what's  going on?

 

This is a critical issue for me and I have missed a deadline already because of it.

 

I'd appreciate any help in resolving this matter.

 

BTW, getting a list of tasks for a user works fine.  Any other methods such as getTask, claimTask, etc. all cause a null pointer exception to be thrown similar to the one included below:

 

Jim

 

     [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)

     [java]     ... 36 more

Reply to this message by going to Community

Start a new discussion in jBPM at Community