[rules-users] Problems importing sub-process with Designer 2.0

jwest jmwest532 at gmail.com
Wed Dec 21 00:51:19 EST 2011


*Hi,

We saw Tihomir blog about jBPM Web Designer 2.0 released
(http://surdilovic.wordpress.com) where there is mentioned a list of new
features including: ''Support for sub-processes'. We went to the
documentation link but couldn't find anything about sub-process. We'd love
to hear more on this.

We have download and installed the jbpm 5.2, which comes with Designer 2.0,
but when we tried to upload from Eclipse to Guvnor a simple process that
makes reference to a simple sub-process, we are getting the following
exception:*

/17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Unresolved
reference 'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19,
80)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
java.lang.Thread.run(Thread.java:662)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) Caused by:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference
'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19, 80)

17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1154)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:732)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:525)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1938)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLEntityScanner.load(XMLEntityScanner.java:1772)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1273)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1239)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)

17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) 	... 25 more

17:43:27,615 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-8) null: java.lang.NullPointerException
	at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
	at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
	at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
	at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)
[classes:]
	at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
[classes:]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
	at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
[classes:]
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]/

*We also tried to load the simple process into Guvnor using the new feature
"import from BPMN2", but we got another exception:*

/18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of
file.

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:201)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)

18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
java.lang.Thread.run(Thread.java:662)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) Caused by:
org.xml.sax.SAXParseException: Premature end of file.

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)

18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:203)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:802)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)

18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) 	... 24 more

18:35:54,370 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-7) null: java.lang.NullPointerException
	at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
	at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
	at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
	at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)
[classes:]
/

*Using "import from BPMN2", we also tried pasting the xml (bpmn2 content),
but we got again the former exception regarding to "Unresolved reference
'my.subprocess'". Forgot to tell, the sub-process with Id=my.subprocess was
loaded in Guvnor successfully before trying to upload/import the process
that makes reference to it.
Any help will be appreciated.*



--
View this message in context: http://drools.46999.n3.nabble.com/Problems-importing-sub-process-with-Designer-2-0-tp3603287p3603287.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list