<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Random error in Editor
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/rubenjgarciab">Ruben Garcia</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/743666#743666">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm getting an error when I save my process in the Web Editor</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:120)
14:05:51,723 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
14:05:51,724 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
14:05:51,724 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
14:05:51,725 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:05:51,727 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
14:05:51,728 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
14:05:51,729 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
14:05:51,729 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
14:05:51,730 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
14:05:51,730 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
14:05:51,731 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
14:05:51,732 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
14:05:51,737 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
14:05:51,738 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:05:51,739 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
14:05:51,740 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
14:05:51,741 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
14:05:51,741 ERROR [stderr] (http--127.0.0.1-8080-5)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;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)&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;... 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
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:35) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:120) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Anyone can help me?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/743666#743666">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>