[rules-users] java.lang.ClassCastException: org.drools.reteoo.BetaMemory cannot be cast to org.drools.reteoo.AlphaNode$AlphaMemory

AlesD Ales.Dolecek at nextiraone.eu
Wed Aug 7 11:53:13 EDT 2013


Hello,

  same problem here. Same as others I belive it has to do with dynamic rule
changes. In Spring I have:

	<drools:resource-change-scanner id="scanInterval" interval="600"
enabled="true"/>

	<drools:kbase id="kbase">
		<drools:configuration>
			<drools:mbeans enabled="true"/>
		</drools:configuration>
	</drools:kbase>
	
	<drools:kagent id="kagent" kbase="kbase" new-instance="false">
		<drools:resources>
...
		</drools:resources>
	</drools:kagent>

If I move the resources directly under <drools:kbase> than any error in
rules is detected and the kbase is not created (Spring configuration fails).
With the above setting however the kbase is build without any error.

The resources cointains HTTP links to Excel files with decision tables and
those are editable by business users. So it might be that there is error in
the rules introduced by them.

Also notice that I'm using new-instance="false". This is because I can't
(easily) request kbase (or session from it) from SpringApplication context
using prototype scope.

What happens if update of the ruleset introduces error in the rules? Is
there a way to configure? Or to get notified when the ruleset changes?

Aleš



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



More information about the rules-users mailing list