You've got a problem.
Probably with what your rules are trying to do, possibly with the design of your fact
class.
Use a process of elimination to work out which rule is the problem and construct the
simplest example you can which causes this problem.
Then try working out if there is anything in that rule that would cause it to have
problems. If this fails then show us the rule and fact c;ass so that there is a chance we
can come up with a solution rather than guessing what you may have done.
Thomas
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Puneet duggal
Sent: 18 May 2010 08:39
To: Rules Users List
Subject: Re: [rules-users] error while executing business rules
@ friends,
any solution for my problem ??
org.drools.RuntimeDroolsException: unable to determine ValueType for Class [class
com.fpl.dsm.busrules.parameters.Para_568]
at org.drools.base.ValueType.determineValueType(ValueType.java:222)
at org.drools.base.ClassObjectType.<init>(ClassObjectType.java:56)
On 5/18/10, Puneet duggal
<duggalpunit@gmail.com<mailto:duggalpunit@gmail.com>> wrote:
@ wolfgang,
com.fpl.dsm.busrules.parameters.Para_568
is my fact class or my getter setter class
On 5/17/10, Wolfgang Laun
<wolfgang.laun@gmail.com<mailto:wolfgang.laun@gmail.com>> wrote:
From the stack trace:
com.fpl.dsm.busrules.parameters.Para_568
Maybe this is a hint which rule is causing the problem.
-W
2010/5/17 Puneet duggal <duggalpunit@gmail.com<mailto:duggalpunit@gmail.com>>
drool 4 , it was provided to us
so we have to use it any thing new in drool5 that can help much ?
i dont know which rue is giving error because there are 60 rules
and i dnt know how to debug bcz i m having a web application
which loads rules from database.
do u know any way to know why its giving error??
On 5/17/10, Esteban Aliverti
<esteban.aliverti@gmail.com<mailto:esteban.aliverti@gmail.com>> wrote:
Any reason why you are using Drools 4?
Try to figure out which rule is failing and post it here.
I have never used Drools 4. I started from V5.
2010/5/17 Puneet duggal <duggalpunit@gmail.com<mailto:duggalpunit@gmail.com>>
@ esteban,
i am using drools-compiler-4.0.7.jar
i dont know which rule is exactlly giving the error
but while executing i am getting this error
Any idea ?
[2010-05-17 09:37:22,419] [FATAL] Error occured while creating rules package for parameter
: 568 (BusinessRuleServiceImpl.java:2285)
org.drools.RuntimeDroolsException: unable to determine ValueType for Class [class
com.fpl.dsm.busrules.parameters.Para_568]
at org.drools.base.ValueType.determineValueType(ValueType.java:222)
at org.drools.base.ClassObjectType.<init>(ClassObjectType.java:56)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:130)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:93)
at
org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:53)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
at
com.fpl.dsm.service.busrules.BusinessRuleServiceImpl.initializeRuleBase(BusinessRuleServiceImpl.java:2261)
at
com.fpl.dsm.util.BusinessRuleUtils.initializeContext(BusinessRuleUtils.java:2304)
at
com.fpl.dsm.web.module.action.IncentiveTemplateAction.performLogic(IncentiveTemplateAction.java:292)
at com.fpl.dsm.web.base.DSMBaseAction.execute(DSMBaseAction.java:97)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:122)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
On 5/17/10, Esteban Aliverti
<esteban.aliverti@gmail.com<mailto:esteban.aliverti@gmail.com>> wrote:
Try to be a little more specific. Which version of drools are you using? How your rule
looks like? What are you trying to do?
Best,
2010/5/17 Puneet duggal <duggalpunit@gmail.com<mailto:duggalpunit@gmail.com>>
hi friends ,
I am getting the error while executing the business rule
[2010-05-17 09:37:22,419] [FATAL] Error occured while creating rules package for parameter
: 568 (BusinessRuleServiceImpl.java:2285)
org.drools.RuntimeDroolsException: unable to determine ValueType for Class [class
com.fpl.dsm.busrules.parameters.Para_568]
what this mean?
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************