java.lang.IllegalArgumentException

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(ServiceRegistryImpl.java:169) 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.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2238) 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) Caused by: 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) ... 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