Hi There,

I got following error and package could not be updated. What could it be? Thanks.

ERROR 19 Nov 2010 16:14:37 Scripting  - JavaScriptEvaluator -> The result of expression var d=new java.util.Date(); d.setTime(ACTIVITY_ACTIVATED_TIME.getTime()+2000); d; can't be evaluated - error message=PermGen space
ERROR 19 Nov 2010 16:14:37 Shark  - JavaScriptEvaluator -> The result of expression var d=new java.util.Date(); d.setTime(ACTIVITY_ACTIVATED_TIME.getTime()+2000); d; can't be evaluated - error message=PermGen space
ERROR 19 Nov 2010 16:14:37 org.joget.workflow.model.service.WorkflowManagerImpl  - org.enhydra.shark.api.RootException: Result cannot be evaluated
java.lang.OutOfMemoryError: PermGen space
org.enhydra.shark.api.RootException: Result cannot be evaluated
    at org.joget.workflow.shark.WorkflowJavaScriptEvaluator.evaluateExpression(WorkflowJavaScriptEvaluator.java:172)
    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.GeneratedMethodAccessor46.invoke(Unknown Source)
    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:182)
    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)
Caused by: java.lang.OutOfMemoryError: PermGen space

  • No labels

3 Comments

  1. I see that there's nothing wrong with your javascript expression there. Maybe you can try increasing the PermGen space.

    example : -XX:MaxPermSize=256M

    Good luck!

  2. Hello,

    I am having a hard time importing my forms when I upload workflow package using the 'import package' option.  I built my workflow in my dev environment and now I am trying to move everything to prod.  I assigned my forms to activities and exported the project, saved it.  Then,  I have imported the package to PROD but non of my activities are mapped and none of the forms are imported.  Please help!

    Thanks, Alla

    1. Hi there,

      Appreciate that you can provide us with more information such as the server stack trace or by attaching the package that you are trying to work on so that we can replicate the issue here.

      Have a nice day ahead.