JBoss Community

Random error in Editor

created by Ruben Garcia in jBPM - View the full discussion

Hello

 

I'm getting an error when I save my process in the Web Editor

 

I've created the process, I use it in my application but now I change it and when I going to save the changes throws this Exception:

 

14:05:51,718 ERROR [stderr] (http--127.0.0.1-8080-5) org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature 'definitions' not found. (inputStream://dummyUriWithValidSuffix.xml, 2, 514)
14:05:51,719 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
14:05:51,720 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)
14:05:51,720 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
14:05:51,720 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
14:05:51,721 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jbpm.designer.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:273)
14:05:51,721 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252)
14:05:51,722 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:35)
14:05:51,723 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:120)
14:05:51,723 ERROR [stderr] (http--127.0.0.1-8080-5)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
14:05:51,724 ERROR [stderr] (http--127.0.0.1-8080-5)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
14:05:51,724 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
14:05:51,725 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:05:51,727 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
14:05:51,727 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
14:05:51,729 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
14:05:51,729 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
14:05:51,730 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
14:05:51,730 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
14:05:51,732 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
14:05:51,732 ERROR [stderr] (http--127.0.0.1-8080-5)           at java.lang.Thread.run(Thread.java:662)
14:05:51,732 ERROR [stderr] (http--127.0.0.1-8080-5) Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'definitions' not found. (inputStream://dummyUriWithValidSuffix.xml, 2, 514)
14:05:51,733 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeature(XMLHandler.java:1991)
14:05:51,733 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeature(XMLHandler.java:1955)
14:05:51,734 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1899)
14:05:51,735 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1457)
14:05:51,735 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1319)
14:05:51,736 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1468)
14:05:51,736 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1019)
14:05:51,736 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1001)
14:05:51,737 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712)
14:05:51,737 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
14:05:51,737 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
14:05:51,741 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
14:05:51,741 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
14:05:51,741 ERROR [stderr] (http--127.0.0.1-8080-5)           ... 24 more
14:05:51,742 ERROR [org.jbpm.designer.web.profile.impl.JbpmProfileImpl] (http--127.0.0.1-8080-5) null: java.lang.NullPointerException
          at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201) [classes:]
          at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157) [classes:]
          at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252) [classes:]
          at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:35) [classes:]
          at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:120) [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.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

 

BTW, I noticed that in my original BPMN process all the tags starts with bpmn2 but after I saved it, all the tags starts with model. I now that the problem is during the validation but I can't solve it

 

If I import the source of the xml into Eclipse with the tags starting with model everything is fine, Eclipse doesn't throw any exception

 

Anyone can help me?

 

Thanks

Reply to this message by going to Community

Start a new discussion in jBPM at Community