Bug 1316454 - ClassCastException on classes with the same FQCN
ClassCastException on classes with the same FQCN
Status: CLOSED INSUFFICIENT_DATA
Product: JBoss BRMS Platform 6
Classification: JBoss
Component: BRE (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Edson Tirelli
Marek Winkler
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-10 04:54 EST by Toshiya Kobayashi
Modified: 2016-03-17 03:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
BPMS 6.1.3
Last Closed: 2016-03-17 03:31:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Toshiya Kobayashi 2016-03-10 04:54:44 EST
Description of problem:

If the same package (the same releaseId) is built concurrently (1. Incremental build by business-central. 2. REST maven install), the built project (executed by jBPM service in business-central) throws ClassCastException on classes with the same FQCN. Note that it doesn't always happen.

====
09:07:54,271 WARN  [org.drools.persistence.SingleSessionCommandService] (http-/0.0.0.0:443-24) Could not commit session: Exception executing consequence for rule "XXXX in com.sample: [Error: drools.insert($myvariable): com.sample.MyVariable cannot be cast to com.sample.MyVariable]
[Near : {... drools.insert($myvariable) ....}]
             ^
[Line: 1, Column: 1]
	at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1091) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:109) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:58) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:986) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1300) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1283) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1256) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:109) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:34) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:575) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:67) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.fireAllRules(CommandBasedStatefulKnowledgeSession.java:268) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.process.instance.event.listeners.TriggerRulesEventListener.afterRuleFlowGroupActivated(TriggerRulesEventListener.java:83) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.event.AgendaEventSupport.fireAfterRuleFlowGroupActivated(AgendaEventSupport.java:152) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.activateRuleFlowGroup(DefaultAgenda.java:711) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.activateRuleFlowGroup(DefaultAgenda.java:699) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.RuleSetNodeInstance.internalTrigger(RuleSetNodeInstance.java:87) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:380) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:324) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:61) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:57) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:380) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:117) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:63) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:324) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:341) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:318) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:316) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:378) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:354) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:465) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:133) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at com.sample.jbpm.workitem.AbstractWorkItemHandler.completeWorkItem(AbstractWorkItemHandler.java:266)
	at com.sample.jbpm.workitem.rms.XXXWorkItemHandler.doExecuteWorkItem(XXXWorkItemHandler.java:48)
	at com.sample.jbpm.workitem.AbstractWorkItemHandler.executeWorkItem(AbstractWorkItemHandler.java:233)
	at org.jbpm.bpmn2.handler.AbstractExceptionHandlingTaskHandler.executeWorkItem(AbstractExceptionHandlingTaskHandler.java:27) [jbpm-bpmn2-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:133) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:324) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:44) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:341) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:318) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:316) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:378) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:354) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:465) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:133) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at com.sample.jbpm.workitem.AbstractWorkItemHandler.completeWorkItem(AbstractWorkItemHandler.java:266)
	at com.sample.jbpm.workitem.protos.YYYWorkItemHandler.doExecuteWorkItem(YYYWorkItemHandler.java:45)
	at com.sample.jbpm.workitem.AbstractWorkItemHandler.executeWorkItem(AbstractWorkItemHandler.java:233)
	at org.jbpm.bpmn2.handler.AbstractExceptionHandlingTaskHandler.executeWorkItem(AbstractExceptionHandlingTaskHandler.java:27) [jbpm-bpmn2-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:133) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:324) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:61) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:57) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:365) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:324) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:73) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:44) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:172) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:236) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:420) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:193) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:176) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:168) [jbpm-flow-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1826) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:122) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:40) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:575) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:67) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.execute(CommandBasedStatefulKnowledgeSession.java:490) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.kie.services.impl.ProcessServiceImpl.execute(ProcessServiceImpl.java:424) [jbpm-kie-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.jbpm.services.cdi.impl.ProcessServiceCDIImpl$Proxy$_$$_WeldClientProxy.execute(ProcessServiceCDIImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-services-cdi-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.cdi.ProcessRequestBean.doKieSessionOperation(ProcessRequestBean.java:266) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.cdi.ProcessRequestBean.processCommand(ProcessRequestBean.java:173) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.cdi.ProcessRequestBean$Proxy$_$$_WeldClientProxy.processCommand(ProcessRequestBean$Proxy$_$$_WeldClientProxy.java) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.rest.ResourceBase.restProcessJaxbCommandsRequest(ResourceBase.java:154) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.rest.ExecuteResourceImpl.execute(ExecuteResourceImpl.java:30) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.kie.remote.services.rest.ExecuteResourceImpl$Proxy$_$$_WeldClientProxy.execute(ExecuteResourceImpl$Proxy$_$$_WeldClientProxy.java) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at sun.reflect.GeneratedMethodAccessor429.invoke(Unknown Source) [:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.8.0_45]
	at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.8.0_45]
	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.kie.remote.services.rest.jaxb.DynamicJaxbContextFilter.doFilter(DynamicJaxbContextFilter.java:48) [kie-remote-services-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.uberfire.ext.security.server.BasicAuthSecurityFilter.doFilter(BasicAuthSecurityFilter.java:53) [uberfire-servlet-security-0.5.7.Final-redhat-1.jar:0.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:53) [uberfire-servlet-security-0.5.7.Final-redhat-1.jar:0.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:45) [uberfire-servlet-security-0.5.7.Final-redhat-1.jar:0.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
	at org.jboss.security.negotiation.NegotiationAuthenticator$WrapperValve.invoke(NegotiationAuthenticator.java:490) [jboss-negotiation-common-2.3.6.Final-redhat-1.jar:2.3.6.Final-redhat-1]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:420) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
	at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_45]
Caused by: [Error: drools.insert($myvariable): com.sample.MyVariable cannot be cast to com.sample.MyVariable]
[Near : {... drools.insert($myvariable) ....}]
             ^
[Line: 1, Column: 1]
	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:435) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:163) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.MVEL.executeExpression(MVEL.java:930) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.drools.core.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:111) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1080) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	... 151 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.8.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.8.0_45]
	at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.8.0_45]
	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1120) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1003) [mvel2-2.2.4.Final-redhat-1.jar:]
	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:396) [mvel2-2.2.4.Final-redhat-1.jar:]
	... 161 more
Caused by: java.lang.ClassCastException: com.sample.MyVariable cannot be cast to com.sample.MyVariable
	at org.drools.base.com.sample.MyVariable459938271$getName.getValue(Unknown Source)
	at org.drools.core.base.extractors.BaseObjectClassFieldReader.isNullValue(BaseObjectClassFieldReader.java:155) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.base.ClassFieldReader.isNullValue(ClassFieldReader.java:183) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.reteoo.CompositeObjectSinkAdapter$HashKey.setValue(CompositeObjectSinkAdapter.java:685) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.reteoo.CompositeObjectSinkAdapter$HashKey.<init>(CompositeObjectSinkAdapter.java:647) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:365) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:289) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:76) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.phreak.SynchronizedBypassPropagationList.addEntry(SynchronizedBypassPropagationList.java:18) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.impl.StatefulKnowledgeSessionImpl.addPropagation(StatefulKnowledgeSessionImpl.java:2118) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.reteoo.EntryPointNode.assertObject(EntryPointNode.java:233) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.NamedEntryPoint.insert(NamedEntryPoint.java:374) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.common.NamedEntryPoint.insert(NamedEntryPoint.java:293) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1474) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:219) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	at org.drools.core.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:213) [drools-core-6.2.0.Final-redhat-11.jar:6.2.0.Final-redhat-11]
	... 168 more
====


Steps to Reproduce:

*** Note: This is a reproduce step in customer's environment. We have not yet identified a reproduce step on our side. Once found, we will update in a BZ comment.

The jBPM project is already deployed in business-central
1. A rule (DRL text) is changed in an external rule authoring system
2. The approved DRL text is pushed into the GIT repository of the BPM system
3. The minor number of GAV-information of the project of the rule is incremented (e.g. 1.0.12 -> 1.0.13)
4. Build and deployment of the project is done via REST-Call  /repositories/{repositoryName}/projects/{projectName}/maven/install
5. Removal of the previous version of the project (1.0.12) from the repository is done by calling /deployment/{deploymentId}/undeploy
6. New process instance of the new deploy process is called at a not predictable time later and sometimes generates a class cast exception.

Actual results:

Throws a ClassCastException

Expected results:

Works without an Exception.

Additional info:

I filed this BZ for BRMS because the nature of the issue seems to belong to drools build process.
Comment 1 Toshiya Kobayashi 2016-03-17 03:31:32 EDT
Created a new BZ1318532 with reproduce steps and a clearer description. Closing this BZ.

Note You need to log in before you can comment on or make changes to this bug.