java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.compiler.BPMN2ProcessProvider'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Wang Cong, 1 year ago
Unable to instantiate service for Class 'org.drools.compiler.compiler.BPMN2ProcessProvider'
via Stack Overflow by Ke Liu
, 1 year ago
Unable to instantiate service for Class 'org.drools.compiler.compiler.BPMN2ProcessProvider'
via GitHub by hucmaggie
, 6 months ago
Unable to instantiate service for Class 'org.drools.compiler.compiler.GuidedRuleTemplateProvider'
java.lang.ClassCastException: Cannot cast org.jbpm.bpmn2.BPMN2ProcessProviderImpl to org.drools.compiler.compiler.BPMN2ProcessProvider
at java.lang.Class.cast(Class.java:3369)
at org.kie.internal.utils.ServiceRegistryImpl.get(ServiceRegistryImpl.java:167)
at org.drools.compiler.compiler.BPMN2ProcessFactory.loadProvider(BPMN2ProcessFactory.java:46)
at org.drools.compiler.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(BPMN2ProcessFactory.java:38)
at org.drools.compiler.compiler.BPMN2ProcessFactory.configurePackageBuilder(BPMN2ProcessFactory.java:29)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addKnowledgeResource(KnowledgeBuilderImpl.java:763)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2249)
at org.drools.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:83)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:31)
at com.sample.ProcessTest.main(ProcessTest.java:14)

Users with the same issue

26 times, 6 months ago
Once, 6 months ago
2 times, 7 months ago
7 times, 9 months ago
8 times, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.