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

2010-05-05 Thread Puneet duggal
ohk compiling the rule and storing it
its really a good  for memory


On 5/5/10, miguel machado  wrote:
>
> @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 
>
>  @ 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  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@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>>
>>
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> "To understand what is recursion you must first understand recursion"
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


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

2010-05-05 Thread miguel machado
@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 

> @ 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  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@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
"To understand what is recursion you must first understand recursion"
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


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

2010-05-04 Thread Puneet duggal
@ 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  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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


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

2010-05-04 Thread Nikhil S. Kulkarni
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users