<br>&nbsp;&nbsp; Yes, that is correct. If the underlying class interface changed, java will raise CCE. Rulebase must be recompiled in that case.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/12/2 seemamani <span dir="ltr">&lt;<a href="mailto:seemamani@gmail.com">seemamani@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Thanks Dean, we have removed the AOP implementation to check if that is the<br>
source of the problem.<br>
<br>
Edson, Is there any chance for a ClassCastException if the fact classes in<br>
the application were changed, but the fact model classes that are part of<br>
the compiled rule package were not updated to the most recent version? But<br>
then it would cause exceptions consistently, right? In our case, the<br>
exceptions are thrown occasionally only.<br>
<br>
Thanks,<br>
Seema<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Dean Turner wrote:<br>
&gt;<br>
&gt; FYI: Spring AOP enhances objects via CGLIB when no interface is available.<br>
&gt; If an interface is avaiable, it uses an jdk dynamic proxy.<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
&gt; [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of seemamani<br>
&gt; Sent: Wednesday, November 26, 2008 11:18 AM<br>
&gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; Subject: Re: [rules-users] ClassCastException when firing rules<br>
&gt;<br>
&gt;<br>
&gt; Edson,<br>
&gt;<br>
&gt; We are not sure how the CGLIB proxy is getting created. We were under the<br>
&gt; impression that it is the shadow fact proxy generated by Drools itself. I<br>
&gt; would like to share a few more points about our application in case they<br>
&gt; are<br>
&gt; somehow related to this problem.<br>
&gt;<br>
&gt; 1. We are using Spring AOP for intercepting method calls and passing the<br>
&gt; facts, globals etc to a class that invoke Drools. Version of Spring is<br>
&gt; 2.0.7<br>
&gt; 2. We are using Hibernate 3.x/JPA for persistence. In fact the Inventory<br>
&gt; POJO that is causing the ClassCastException is a JPA entity<br>
&gt; 3. We have rules defined in multiple packages. The Inventory POJO is used<br>
&gt; by<br>
&gt; rules in all the packages. But the exception is occurring only for rules<br>
&gt; in<br>
&gt; a particular package. That too only occasionally.<br>
&gt;<br>
&gt; Please let me know if any other information is required.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Seema<br>
&gt;<br>
&gt;<br>
&gt; Edson Tirelli-3 wrote:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;What are you guys doing with CGLIB? or is this WebSphere doing some<br>
&gt;&gt; sneaky thing behind the scenes? Or is it SpringAOP doing sneaky things?<br>
&gt;&gt;<br>
&gt;&gt; Caused by:<br>
&gt;&gt; java.lang.ClassCastException: com.adesa.data.grounding.pojo.Inventory<br>
&gt;&gt; incompatible with<br>
&gt;&gt; com.adesa.data.grounding.pojo.Inventory$$EnhancerByCGLIB$$de81aab3<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;At compile time we determine that &quot;inventory&quot; is a<br>
&gt;&gt; com.adesa.data.grounding.pojo.Inventory. If at runtime what arrives into<br>
&gt;&gt; the<br>
&gt;&gt; expression is a<br>
&gt;&gt; com.adesa.data.grounding.pojo.Inventory$$EnhancerByCGLIB$$de81aab3,<br>
&gt;&gt; and it is not a proper subclass, you might get such problems.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;Having said that, I will talk to Mike to check if this can be<br>
&gt; prevented<br>
&gt;&gt; somehow, but I really don&#39;t know if it will be possible...<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;[]s<br>
&gt;&gt; &nbsp; &nbsp;Edson<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2008/11/25 seemamani &lt;<a href="mailto:seemamani@gmail.com">seemamani@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We are using Drools 4.0.7 in a web application deployed in WebSphere<br>
&gt; 6.1.<br>
&gt;&gt;&gt; Occasionally, we have rule engine failure caused by<br>
&gt;&gt;&gt; RuntimeDroolsException<br>
&gt;&gt;&gt; (whose root cause is shown as ClassCastException) when firing rules.<br>
&gt;&gt;&gt; Other<br>
&gt;&gt;&gt; times, the rules are executing without errors. Here is the stack trace<br>
&gt; of<br>
&gt;&gt;&gt; the exception. What are the possible reasons?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Seema<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; org.drools.RuntimeDroolsException: Exception executing predicate eval(<br>
&gt;&gt;&gt; inventory.leaseInformation != null )<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt; org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:216<br>
&gt; )<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(Composi<br>
&gt; teObjectSinkAdapter.java:318)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(Composi<br>
&gt; teObjectSinkAdapter.java:318)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt; org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:162)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at org.drools.reteoo.Rete.assertObject(Rete.java:175)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt; org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt; org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71<br>
&gt; )<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:<br>
&gt; 911)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:<br>
&gt; 883)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:<br>
&gt; 684)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.rules.process.drools.ManagedStatefulSession.i<br>
&gt; nit(ManagedStatefulSession.java:87)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.rules.process.drools.ManagedStatefulSession.f<br>
&gt; ireAllRules(ManagedStatefulSession.java:100)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.rules.process.drools.RuleEngineImpl.execute(R<br>
&gt; uleEngineImpl.java:60)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.rules.interceptor.RulesInterceptor.applyAnnot<br>
&gt; edRules(RulesInterceptor.java:109)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.rules.interceptor.RulesInterceptor.applyRules<br>
&gt; (RulesInterceptor.java:80)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm<br>
&gt; pl.java:43)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:618)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWi<br>
&gt; thGivenArgs(AbstractAspectJAdvice.java:597)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(A<br>
&gt; bstractAspectJAdvice.java:583)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAd<br>
&gt; vice.java:60)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Exp<br>
&gt; oseInvocationInterceptor.java:89)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor<br>
&gt; .intercept(Cglib2AopProxy.java:629)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.rules.RuleHandler$$EnhancerByCGLIB$$3ab6eda.fireUpdateP<br>
&gt; ricing(&lt;generated&gt;)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.manager.SaleEventManagerImpl.updatePricing(Sale<br>
&gt; EventManagerImpl.java:2599)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfAuct<br>
&gt; ion(SaleEventManagerImpl.java:1993)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGrou<br>
&gt; ndingSaleEventForHyundai(SaleEventManagerImpl.java:1783)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGrou<br>
&gt; ndingSaleEvent(SaleEventManagerImpl.java:1180)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGrou<br>
&gt; ndingSaleEvent(SaleEventManagerImpl.java:1134)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.auction.service.AuctionServiceImpl.cascadeAtEndOfGround<br>
&gt; ingSaleEvent(AuctionServiceImpl.java:766)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm<br>
&gt; pl.java:43)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:618)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ao<br>
&gt; pUtils.java:304)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoi<br>
&gt; nt(ReflectiveMethodInvocation.java:182)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:149)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.transaction.interceptor.TransactionInterceptor.invoke(<br>
&gt; TransactionInterceptor.java:106)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.procee<br>
&gt; d(MethodInvocationProceedingJoinPoint.java:77)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.framework.logging.LoggingInterceptor.profileLog(Logging<br>
&gt; Interceptor.java:136)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm<br>
&gt; pl.java:43)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:618)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWi<br>
&gt; thGivenArgs(AbstractAspectJAdvice.java:597)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(A<br>
&gt; bstractAspectJAdvice.java:583)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAd<br>
&gt; vice.java:60)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.<br>
&gt; invoke(AfterReturningAdviceInterceptor.java:50)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJA<br>
&gt; fterThrowingAdvice.java:54)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; <a href="http://org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.in" target="_blank">org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.in</a><br>
&gt; voke(MethodBeforeAdviceInterceptor.java:50)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJA<br>
&gt; fterThrowingAdvice.java:54)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Exp<br>
&gt; oseInvocationInterceptor.java:89)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refle<br>
&gt; ctiveMethodInvocation.java:171)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopP<br>
&gt; roxy.java:204)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at $Proxy58.cascadeAtEndOfGroundingSaleEvent(Unknown Source)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.pricing.ejb.PricingBean.updateMBPPrice(PricingBean.java<br>
&gt; :112)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.pricing.ejb.EJSRemoteStatelessPricing_a0966b04.updateMB<br>
&gt; PPrice(EJSRemoteStatelessPricing_a0966b04.java:183)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.pricing.ejb._EJSRemoteStatelessPricing_a0966b04_Tie.upd<br>
&gt; ateMBPPrice(_EJSRemoteStatelessPricing_a0966b04_Tie.java:243)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.adesa.business.pricing.ejb._EJSRemoteStatelessPricing_a0966b04_Tie._in<br>
&gt; voke(_EJSRemoteStatelessPricing_a0966b04_Tie.java:108)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.jav<br>
&gt; a:621)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt; com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.rmi.iiop.ORB.process(ORB.java:503)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)<br>
&gt;&gt;&gt; Caused by:<br>
&gt;&gt;&gt; java.lang.ClassCastException: com.adesa.data.grounding.pojo.Inventory<br>
&gt;&gt;&gt; incompatible with<br>
&gt;&gt;&gt; com.adesa.data.grounding.pojo.Inventory$$EnhancerByCGLIB$$de81aab3<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at ASMAccessorImpl_11448003161226563261710.getValue(Unknown<br>
&gt;&gt;&gt; Source)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableD<br>
&gt; eepPropertyNode.java:22)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.ja<br>
&gt; va:21)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.ja<br>
&gt; va:21)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at org.mvel.MVELRuntime.execute(MVELRuntime.java:90)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt; org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at org.mvel.MVEL.executeExpression(MVEL.java:235)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt; org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpress<br>
&gt; ion.java:45)<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt;&gt;&gt;<br>
&gt; org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:209<br>
&gt; )<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; View this message in context:<br>
&gt;&gt;&gt;<br>
&gt; <a href="http://www.nabble.com/ClassCastException-when-firing-rules-tp20694738p2069" target="_blank">http://www.nabble.com/ClassCastException-when-firing-rules-tp20694738p2069</a><br>
&gt; 4738.html<br>
&gt;&gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; &nbsp;Edson Tirelli<br>
&gt;&gt; &nbsp;JBoss Drools Core Development<br>
&gt;&gt; &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://www.nabble.com/Occasional-ClassCastException-when-firing-rules-tp20" target="_blank">http://www.nabble.com/Occasional-ClassCastException-when-firing-rules-tp20</a><br>
&gt; 694738p20705144.html<br>
&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/Occasional-ClassCastException-when-firing-rules-tp20694738p20794410.html" target="_blank">http://www.nabble.com/Occasional-ClassCastException-when-firing-rules-tp20694738p20794410.html</a><br>

<div><div></div><div class="Wj3C7c">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>