AnsweredAssumed Answered

Getting NPE while retrieving bytearray value 

Question asked by sukhveer on Sep 8, 2013
Latest reply on Sep 13, 2013 by trademak
This exception is a show stopper for me at the moment. Need to fix this asap, i am using activiti 5.10 and not possible to upgrade it at the moment. I looked around and found that it was fixed in  version 5.0. Maybe something else is causing it.
Here is my stack trace :

Caused by: java.lang.NullPointerException
   at org.activiti.engine.impl.variable.ByteArrayType.getValue(
   at org.activiti.engine.impl.variable.SerializableType.getValue(
   at org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.getValue(
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.getVariable(
   at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.getVariable(
   at org.activiti.engine.impl.el.VariableScopeElResolver.getValue(
   at org.activiti.engine.impl.javax.el.CompositeELResolver.getValue(
   at org.activiti.engine.impl.juel.AstIdentifier.eval(
   at org.activiti.engine.impl.juel.AstParameters.eval(
   at org.activiti.engine.impl.juel.AstMethod.invoke(
   at org.activiti.engine.impl.juel.AstMethod.eval(
   at org.activiti.engine.impl.juel.AstEval.eval(
   at org.activiti.engine.impl.juel.AstNode.getValue(
   at org.activiti.engine.impl.juel.TreeValueExpression.getValue(
   at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(
   at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(
   at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(

I can get byteArray value using SQL query ao it is definitely not null.
Also it is not happening all the time. Most of the time it appears after production build, means for workflows that are in process while we redeploy war on production machine workflow stops working.
Please suggest me some solution asap.

Thanks in Advance.