[
https://jira.jboss.org/jira/browse/JBPM-2140?page=com.atlassian.jira.plug...
]
Joram Barrez closed JBPM-2140.
------------------------------
Resolution: Out of Date
Issue outdated. JpdlDeployer has gone through several changes by now.
The relevant code now is:
Long version = deployment.getProcessDefinitionVersion(processDefinitionName);
(without a cast)
the "version" of the processDefinition in db is a Long
type not a Sting type
--------------------------------------------------------------------------------
Key: JBPM-2140
URL:
https://jira.jboss.org/jira/browse/JBPM-2140
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.0.0.Beta1
Environment: WINDOWS XP Eclipse JBOSS AS 4.2.2GA jbpm 4.0.0 Trunk
Reporter: fang changjiang
when I call ExecutionService.startProcessInstanceById() , I meet a Exception
"
exception while executing command
org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd@f9d4f7
java.lang.ClassCastException: java.lang.Long
at org.jbpm.jpdl.internal.repository.JpdlDeployer.deploy(JpdlDeployer.java:72)
"
so I debug this call process, I find the root cause of the exception is in this
segment
"
String version = (String) deployment.getObjectProperty(processDefinitionName,
KEY_VERSION);
"
I find in the "jbpm.repository.hbm.xml" have " <property
name="longValue" column="LONGVAL_" /> " map.
I find in DeploymentProperty class the longValue is long type .
so the Long type can't cast to String
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira