jBPM Simulation Compilation Errors after Clean Install

23 views
Skip to first unread message

Rafi

unread,
Jun 3, 2016, 3:43:27 PM6/3/16
to jBPM Development

After installing jBPM 6.4 using the installer on Windows, when I model a simple process and try to run the simulation I get the errors below. I get the same errors when trying to run simulation on the included sample processes as well. Thoughts?


2016-06-03 13:13:05,878 ERROR [org.jbpm.designer.web.server.SimulationServlet] (default task-48) Error during simulation: java.lang.RuntimeException: Error while building knowledge base: Unable to generate rule invoker. : [Accumulate: input=[AND [[Pattern: id=null; objectType=ActivitySimulationEvent]] ]] simulation/Rule_Calculate_average_duration_for_activity912964658AccumulateExpression2Invoker.java (19:831) : Cannot cast from long to Long simulation/Rule_Calculate_average_duration_for_activity912964658AccumulateExpression2Invoker.java (19:831) : Type mismatch: cannot convert from Long to long

...

Unable to generate rule invoker. : [Accumulate: input=[AND [[Pattern: id=null; objectType=HTAggregatedSimulationEvent]] ]] simulation/Rule_Calculate_human_activity_summary927771080AccumulateExpression3Invoker.java (19:834) : Cannot cast from double to Double etc.

...

Rule Compilation error : [Rule name='Calculate activity summary'] simulation/Rule_Calculate_activity_summary1795396102.java (43:3092) : The constructor AggregatedActivitySimulationEvent(String, String, Double, Double, Double, long, String) is undefined

...

Rule Compilation error : [Rule name='Calculate end event summary'] simulation/Rule_Calculate_end_event_summary1338519770.java (43:3124) : The constructor AggregatedEndEventSimulationEvent(String, String, Double, Double, Double, long, String) is undefined

...

at org.jbpm.simulation.impl.WorkingMemorySimulationRepository.(WorkingMemorySimulationRepository.java:58) [jbpm-simulation-6.4.0.Final.jar:6.4.0.Final] at org.jbpm.simulation.SimulationRunner.runSimulation(SimulationRunner.java:78) [jbpm-simulation-6.4.0.Final.jar:6.4.0.Final] at org.jbpm.simulation.SimulationRunner.runSimulation(SimulationRunner.java:73) [jbpm-simulation-6.4.0.Final.jar:6.4.0.Final]

The logs go on for a bit...

Kris Verlaenen

unread,
Jun 3, 2016, 8:43:56 PM6/3/16
to Rafi, jBPM Development
I assume you are using Java8 with Wildfly 8.2.1? There is a known issue that the ejc (eclipse java compiler) jar included in that version of Wildfly is NOT recognising Java8 correctly, and is therefore falling back to Java 1.5 (where auto-casting of Long to long isn't supported).

There are several options, but the easiest one is probably to force java compiler level yourself, set system property 'drools.dialect.java.compiler' to '1.8'. Other options would be to use Janino instead of ejc, or upgrade te ejc version.

Kris


--
You received this message because you are subscribed to the Google Groups "jBPM Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-developme...@googlegroups.com.
To post to this group, send email to jbpm-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-development/2eb57df4-906a-4150-97ed-55fa0805a7d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages