[rules-users] Getting an Error While Executing Rule in Drools 5.0

miguel machado mls.machado at gmail.com
Wed May 5 03:33:34 EDT 2010


@puneet it may be a good ideia memory wise. I'm doing it right now, in order
to compile rules just once.

_ miguel


2010/5/5 Puneet duggal <duggalpunit at gmail.com>

> @ Nikhil,
>
> I am not sure weather it a good practice to seralize a package and store it
> , i am new to it and  i am storing the drl  files in db .
> Can we retrive our DRL file after retriving the packge from database.??
>
>
> On 5/4/10, Nikhil S. Kulkarni <Nikhil.Kulkarni at mastek.com> wrote:
>
>>  Hi,
>>
>>
>>
>>                 I have compiled some rules and added it in packages. Then
>> I serialized those packages and stored in database in the form of CLOB data
>>
>> Now  I am able to get Packages back from database and loaded it in
>> RuleBase.
>>
>> But while executing Rule, I am getting the following Exception.
>>
>>
>>
>> java.lang.NullPointerException
>>
>>                 at
>> org.drools.base.ClassFieldReader.getValue(ClassFieldReader.java:91)
>>
>>                 at
>> org.drools.base.evaluators.EqualityEvaluatorsDefinition$StringEqualEvaluator.evaluate(EqualityEvaluatorsDefinition.java:1962)
>>
>>                 at
>> org.drools.rule.LiteralRestriction.isAllowed(LiteralRestriction.java:92)
>>
>>                 at
>> org.drools.rule.OrCompositeRestriction.isAllowed(OrCompositeRestriction.java:25)
>>
>>                 at
>> org.drools.rule.MultiRestrictionFieldConstraint.isAllowed(MultiRestrictionFieldConstraint.java:97)
>>
>>                 at
>> org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:143)
>>
>>                 at
>> org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:360)
>>
>>                 at
>> org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
>>
>>                 at
>> org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:185)
>>
>>                 at
>> org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:146)
>>
>>                 at
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1046)
>>
>>                 at
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1001)
>>
>>                 at
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:788)
>>
>>                 at
>> org.drools.reteoo.ReteooStatelessSession.execute(ReteooStatelessSession.java:201)
>>
>>
>>
>>                 The similar kind of issue is already logged by someone.
>>
>>
>>
>> Please inform If anyone has an idea about this.
>>
>> Waiting for Reply.
>>
>>
>>
>> Thanks & Regards,
>>
>> Nikhil S. Kulkarni
>>
>>
>>
>>
>>
>> MASTEK LTD.
>> Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
>> In the US, we're called MAJESCOMASTEK
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
"To understand what is recursion you must first understand recursion"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100505/c8432788/attachment.html 


More information about the rules-users mailing list