[rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

Vincent LEGENDRE vincent.legendre at eurodecision.com
Tue Jul 24 11:05:03 EDT 2012


> Our application is using this url: http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/org.dfms.model/LATEST 
> to loading from Guvnor5.3.0 the pkg. Is it correct? 


Yes, to get the compiled package, compiled inside Guvnor , but this is the problem here. 

The compiled package is a serialized kPackage object . When you get this from guvnor, and put it inside your kBase, the object is simply deserialized. The ObjectTypeConf conf .getTypeDeclaration() will look in the kBase, and for guvnor compiled package this method returns null (don't know why). I think you may have a difference between your Guvnor version and the drools runtime version. 


You can either use the source got from guvnor ( http://localhost:8080/guvnor/rest/packages/org.dfms.model/source ) to build your kBase, and this should work fine. 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120724/6abce132/attachment.html 


More information about the rules-users mailing list