I got following error when an activity has a defined deadline:

11 Okt 10 11:37:48 org.joget.plugin.deadline.DeadlinePlugin execute
WARNING: Error executing plugin
java.lang.NullPointerException
        at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1215)
        at java.text.DateFormat.parse(DateFormat.java:335)
        at org.joget.plugin.deadline.DeadlinePlugin.execute(DeadlinePlugin.java:58)
        at org.joget.workflow.shark.WorkflowJavaScriptEvaluator.evaluateExpression(WorkflowJavaScriptEvaluator.java:127
        at org.enhydra.shark.WfActivityImpl.reevaluateDeadlines(WfActivityImpl.java:2351)
        at org.enhydra.shark.WfActivityImpl.checkDeadlines(WfActivityImpl.java:2251)
        at org.enhydra.shark.WfProcessImpl.checkDeadlines(WfProcessImpl.java:1925)
        at org.enhydra.shark.ExecutionAdmin.checkDeadlinesWithFiltering(ExecutionAdmin.java:773)
        at org.joget.workflow.model.service.WorkflowManagerImpl.internalCheckDeadlines(WorkflowManagerImpl.java:5339)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.joget.workflow.util.AuditTrailInterceptor.invoke(AuditTrailInterceptor.java:17)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.joget.workflow.util.AuditTrailInterceptor.invoke(AuditTrailInterceptor.java:17)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy9.internalCheckDeadlines(Unknown Source)
        at org.joget.workflow.shark.DeadlineChecker.runMe(DeadlineChecker.java:141)
        at org.joget.workflow.shark.DeadlineChecker.run(DeadlineChecker.java:126)

  • No labels

4 Comments

  1. Looks like the "Working Hour (From)" field of the Deadline Plugin is configured with incorrect format. Please refer to the documentation that comes with your Enterprise Support subscription for the suggested format.

  2. Hi,

    Is there any way to set a deadline or delay until a certain date or time?

    Thanks.

    1. Hi,

      Do you mean that the deadline is set at a fixed date and time e.g. 10am 27 Oct 2010? There's no direct way to do this, but deadlines can be checked against workflow variables so you could try to calculate and store the limit in a workflow variable.

  3. I am having huge difficulty in using a user variable to trigger an action for a process. My example is in my sales system I want to call the client for a decision. if no decision has been made I want to call back at some time set by the sales person say 5 weeks later.

    I am either using the wrong flow design or I am not correctly using the deadline feature..

    Currently I am about to try creating a non existent user to assign an activity to and then when they don't complete the task before the deadline runs out it will throw an exception back to the correct part of the workflow. The problem is that if I use the deadline system I choose synchronous, Day, leave the Deadline limit as blank and then set the Deadline Variable to my variable but can not put anything in the condition field.

    Any suggestions for a better system. Or one that works