Almost always, I have similar problems because of a version incompatibility between Guvnor
and the local claspath. I would check the versions of the jar files in Guvnor and the
local classpath - you may already have checked; my two cents.
Hope this helps.
Krishna
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Dan Seaver
Sent: Monday, April 27, 2009 3:42 PM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Bug in binary package generation?
I built a rule package in Guvnor and downloaded the binary. When I use:
builder.add(ResourceFactory.newInputStreamResource(inStream),
ResourceType.PKG);
I get a NullPointerException. But, if I use Guvnor's "view source", copy the
source to a file, and use:
builder.add(ResourceFactory.newInputStreamResource(inStream),
ResourceType.DRL);
the package is added without an exception and behaves as anticipated. It appears that the
exception generated by the binary package is occurring in
PackageBuilder.addKnowledgeResource (line 495).
Am I using a valid technique for loading binary packages?
I don't have drools source code to trace into the details with Eclipse.
What's the standard procedure for getting drools source code?
Any other suggestions for determining the cause of my problem?
Any and all help is appreciated.
--
View this message in context:
http://www.nabble.com/Bug-in-binary-package-generation--tp23263551p232635...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users