[rules-users] java.lang.ClassCastException: [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package

Ganesh ganeshneelekani at gmail.com
Mon Jul 22 06:17:09 EDT 2013


Hi David,


Thanks for response,
Exacts exception is "java.lang.ClassCastException:
[Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package "


And I am not handing exception in any java code ..
I am just handling it in rule part.

ex.

dialect "java"
no-loop
ruleflow-group "Apply Buy Discount"

when
	/*removed*/
then

try{


System.out.println("==================================");
System.out.println("Apply Buy Discount");
System.out.println($discountPercent);
System.out.println($advAdditional);
		System.out.println("==================================");
$lql.setEndUserUnitPrice(applyDiscount($lql.getEndUserUnitPrice(),$discountPercent+$advAdditional));
		$lql.setTotalCost(applyDiscount($lql.getTotalCost(),$discountPercent));
	//	update($lql);

}
catch(Exception e)
{

System.out.println(e.toString());

}

Let me know if any issue.


Regards
Ganesh Neelekani
India





--
View this message in context: http://drools.46999.n3.nabble.com/java-lang-ClassCastException-Lorg-drools-rule-Package-cannot-be-cast-to-org-drools-rule-Package-tp4017821p4025073.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list