Franck cdsosi [https://community.jboss.org/people/cdsosi] created the discussion

"Timer Boundary Event on ScriptTask ClassCastException raised at KnowledgeBase 
creation"

To view the discussion, visit: https://community.jboss.org/message/755827#755827

--------------------------------------------------------------
Hi,

Some problems seems to occur when you set a Timer Boundary Event on a Script 
Task.

When you try to create under eclipse a Knowledge Base with this kind of sample 
process (see attached file) you get the following exception :

java.lang.ClassCastException: org.jbpm.workflow.core.node.ActionNode cannot be 
cast to org.jbpm.workflow.core.node.StateBasedNode
    at 
org.jbpm.bpmn2.xml.ProcessHandler.linkBoundaryEvents(ProcessHandler.java:437)
    at org.jbpm.bpmn2.xml.ProcessHandler.end(ProcessHandler.java:144)
    at 
org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
    at 
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:828)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)
    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)
    at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
    at 
org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:247)
    at 
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:652)
    at 
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:688)
    at 
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)
    at 
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)
...

ProcessLoadError: unable to parse xml : Exception class 
java.lang.ClassCastException : org.jbpm.workflow.core.node.ActionNode cannot be 
cast to org.jbpm.workflow.core.node.StateBasedNode

Working with jbpm 5.3.0 Full package Final

Regards
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/755827#755827]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to