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(
at org.kie.internal.utils.ServiceRegistryImpl.get(
at org.drools.compiler.compiler.BPMN2ProcessFactory.loadProvider(
at org.drools.compiler.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(
at org.drools.compiler.compiler.BPMN2ProcessFactory.configurePackageBuilder(
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addKnowledgeResource(
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(
at org.drools.impl.KnowledgeBuilderImpl.add(
at com.sample.ProcessTest.readKnowledgeBase(
at com.sample.ProcessTest.main(

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.