AnsweredAssumed Answered

Adding custom name space

Question asked by franklin on Jul 7, 2011
Hi all.

How can I put a new namespace in my bpm process file? I try to use the the Namespaces properties but when I put the values
and try to save the file, I get this error message:

org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
   at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source)
   at org.apache.xerces.dom.AttrNSImpl.setName(Unknown Source)
   at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source)
   at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Source)
   at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source)
   at com.sun.xml.bind.marshaller.SAX2DOMEx.startElement(SAX2DOMEx.java:173)
   at com.sun.xml.bind.v2.runtime.output.SAXOutput.endStartTag(SAXOutput.java:124)
   at com.sun.xml.bind.v2.runtime.XMLSerializer.endAttributes(XMLSerializer.java:306)
   at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:592)
   at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:324)
   at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)
   at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:315)
   at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:244)
   at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:110)
   at de.hpi.bpmn2_0.transformation.Bpmn2XmlConverter.getXml(Bpmn2XmlConverter.java:69)
   at de.hpi.bpmn2_0.transformation.Diagram2XmlConverter.getXml(Diagram2XmlConverter.java:48)
   at de.hpi.bpmn2_0.transformation.Json2XmlConverter.getXml(Json2XmlConverter.java:43)
   at com.signavio.warehouse.business.BPMN20XMLFileUtil.storeBPMN20XMLFile(BPMN20XMLFileUtil.java:35)
   at com.signavio.warehouse.model.business.modeltype.BPMN2_0XMLModelType.storeRevisionToModelFile(BPMN2_0XMLModelType.java:55)
   at com.signavio.warehouse.model.business.FsModel.createRevision(FsModel.java:176)
   at com.signavio.warehouse.model.handler.ModelHandler.putRepresentation(ModelHandler.java:152)
   at com.signavio.platform.handler.AbstractHandler.doPut(AbstractHandler.java:269)
   at com.signavio.platform.servlets.DispatcherServlet.dispatch(DispatcherServlet.java:127)
   at com.signavio.platform.servlets.DispatcherServlet.doPut(DispatcherServlet.java:175)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.signavio.platform.filters.ParseParametersFilter.doFilter(ParseParametersFilter.java:92)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.signavio.platform.filters.AuthenticationFilter.doFilter(AuthenticationFilter.java:68)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.signavio.platform.filters.EncodingFilter.doFilter(EncodingFilter.java:71)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.signavio.platform.filters.HandlerFilter.doFilter(HandlerFilter.java:90)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.signavio.platform.filters.RequestExceptionFilter.doFilter(RequestExceptionFilter.java:110)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)


For the prefix, I put this value:
activiti

For the url I put this value:
http://activiti.org/bpmn

If I'm correct after put this values and save, the file should be like this:

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
    ….
</definitions>

Somebody can help?

Thank you all.

Outcomes