简体   繁体   中英

java.lang.NoSuchFieldError: DESCR

When I try the http://www.softwarepassion.com/getting-started-with-drools-flow/ tutorial I get this exception:

Exception in thread "main" java.lang.NoSuchFieldError: DESCR
       at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:539)
       at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
       at
com.softwarepassion.droolsflow.SPDroolsFlowExample.readKnowledgeBase(SPDroolsFlowExample.java:30)
       at
com.softwarepassion.droolsflow.SPDroolsFlowExample.main(SPDroolsFlowExample.java:20)

How can I resolve this?

This usually indicates incompatible versions of two libraries. Get the most up-to-date jars of drools and try again. Also make sure you don't have multiple versions on the classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM