Unable to instantiate service for Class 'org.drools.compiler.compiler.BPMN2ProcessProvider'

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web13785

  • via Google Groups by Wang Cong, 7 months 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'
  • Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService'
  • Stack trace

    • java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.compiler.BPMN2ProcessProvider' 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.compiler.builder.impl.KnowledgeBuilderImpl.add( at org.drools.impl.KnowledgeBuilderImpl.add( at com.sample.ProcessTest.readKnowledgeBase( at com.sample.ProcessTest.main( Caused by: 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( ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Once, 4 weeks ago
    2 times, 1 month ago
    7 times, 3 months ago
    8 times, 4 months ago
    24 more bugmates