[rules-users] errors compiling resources (returns a null package)

Wolfgang Laun wolfgang.laun at gmail.com
Mon Oct 29 16:26:58 EDT 2012


There's a builder option to define a directory for storing the generated
DRL: see DumpDirOption in org.drools.builder.conf

What about showing us the template file and the xls?

-w

On 29 October 2012 21:05, lhorton <LHorton at abclegal.com> wrote:

> I haven't worked with Templates, but I have seen this type of error when
> compiling XLS to DRL.  The line and column numbers refer to the generated
> DRL.  For spreadsheet debugging, I use code like this:
>
>    DecisionTableConfiguration dtconf =
> KnowledgeBuilderFactory.newDecisionTableConfiguration();
>    dtconf.setInputType(DecisionTableInputType.XLS);
>    String drlString =
>
> DecisionTableFactory.loadFromInputStream(ResourceFactory.newFileResource(path).getInputStream(),
> dtconf);
>
> and then look at the generated drlString at the line number cited in the
> exception, to find the offending rule.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-errors-compiling-resources-returns-a-null-package-tp4020530p4020540.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121029/141a15b7/attachment.html 


More information about the rules-users mailing list