[jboss-user] [Javassist user questions] - Drools Exception

bindhu do-not-reply at jboss.com
Mon Aug 25 08:22:09 EDT 2008

Hi All,

I'm facing a problem when i have both *.drl and *.dsl. The following is the exception i'm facing. 

java.lang.IllegalArgumentException: Unable to use expander. Make sure a expander or dsl config is being passed to the parser. [ExpanderResolver was not set].
	at org.drools.lang.RuleParser.expander(Unknown Source)
	at org.drools.lang.RuleParser.prolog(Unknown Source)
	at org.drools.lang.RuleParser.compilation_unit(Unknown Source)
	at org.drools.compiler.DrlParser.compile(Unknown Source)
	at org.drools.compiler.DrlParser.parse(Unknown Source)
	at org.drools.compiler.DrlParser.parse(Unknown Source)
	at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
	at com.livetrial.CreditExample.main(CreditExample.java:24)
Exception in thread "main" 

In the main java class, i have the below codes:

builder.addPackageFromDrl( new InputStreamReader(CreditExample.class.getResourceAsStream("/credit.drl" )) );
		builder.addPackageFromDrl( new InputStreamReader(CreditExample.class.getResourceAsStream("/credit.dsl" )) );
Please guide me on how to resolve this problem.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172282#4172282

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172282

More information about the jboss-user mailing list