java.lang.IllegalStateException: Problem running report: Error running simulation for document id 4120

Kuali JIRA | Gayathri Athreya | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Documents that use PeopleFlows throw the following stack trace on submission. This happens only in embedded and not in bundled mode. java.lang.IllegalStateException: Problem running report: Error running simulation for document id 4120 at org.kuali.rice.kew.routemodule.service.impl.RoutingReportServiceImpl.report(RoutingReportServiceImpl.java:37) 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:318) In the logs I see the following trace: Caused by: java.lang.NullPointerException at org.kuali.kra.proposaldevelopment.service.impl.ProposalDevelopmentRulesEngineExecutorImpl.execute(ProposalDevelopmentRulesEngineExecutorImpl.java:58) at org.kuali.rice.kew.impl.support.krms.RulesEngineRouteModule.executeRulesEngine(RulesEngineRouteModule.java:86) at org.kuali.rice.kew.impl.support.krms.RulesEngineRouteModule.findActionRequests(RulesEngineRouteModule.java:69) On inspecting the RulesEngineRouteModule class, I noticed that in bundled mode, the engine used is ProviderBasedEngine. However in embedded mode, the line 138 KrmsApiServiceLocator.getEngine() returns null.

    Kuali JIRA | 5 years ago | Gayathri Athreya
    java.lang.IllegalStateException: Problem running report: Error running simulation for document id 4120
  2. 0

    Documents that use PeopleFlows throw the following stack trace on submission. This happens only in embedded and not in bundled mode. java.lang.IllegalStateException: Problem running report: Error running simulation for document id 4120 at org.kuali.rice.kew.routemodule.service.impl.RoutingReportServiceImpl.report(RoutingReportServiceImpl.java:37) 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:318) In the logs I see the following trace: Caused by: java.lang.NullPointerException at org.kuali.kra.proposaldevelopment.service.impl.ProposalDevelopmentRulesEngineExecutorImpl.execute(ProposalDevelopmentRulesEngineExecutorImpl.java:58) at org.kuali.rice.kew.impl.support.krms.RulesEngineRouteModule.executeRulesEngine(RulesEngineRouteModule.java:86) at org.kuali.rice.kew.impl.support.krms.RulesEngineRouteModule.findActionRequests(RulesEngineRouteModule.java:69) On inspecting the RulesEngineRouteModule class, I noticed that in bundled mode, the engine used is ProviderBasedEngine. However in embedded mode, the line 138 KrmsApiServiceLocator.getEngine() returns null.

    Kuali JIRA | 5 years ago | Gayathri Athreya
    java.lang.IllegalStateException: Problem running report: Error running simulation for document id 4120

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Problem running report: Error running simulation for document id 4120

      at org.kuali.rice.kew.routemodule.service.impl.RoutingReportServiceImpl.report()
    2. org.kuali.rice
      RoutingReportServiceImpl.report
      1. org.kuali.rice.kew.routemodule.service.impl.RoutingReportServiceImpl.report(RoutingReportServiceImpl.java:37)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      1 frame