Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6207

While Parsing wsdl url getting NAMESPACE_ERR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 3.0.4
    • Integration
    • Software platform

    • Unknown

    Description

      Hi,
      I tried to create connector using mulesoft, in the mulesoft parsing wsdl file using apache.cxf while parsing the wsdl file , we are getting Namespace_ERR, I researched in the cxf but I came to problem in the apache cxf, because of particuler xsd file only we got this error.

      Input information:
      Wsdl URL: https://cagc-test.crm.us1.oraclecloud.com:443/foundationParties/LocationService?wsdl

      Problem while parse xsd file:
      https://cagc-test.crm.us1.oraclecloud.com/foundationParties/LocationService?XSD=/xml/sdoModel.xsd

      Following error I got:
      java.lang.RuntimeException: 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.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:649)
      at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:441)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:719)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:274)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:165)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:416)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:114)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:189)
      Caused by: 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 com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkDOMNSErr(CoreDocumentImpl.java:2530)
      at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.setName(AttrNSImpl.java:117)
      at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.<init>(AttrNSImpl.java:78)
      at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createAttributeNS(CoreDocumentImpl.java:2142)
      at com.sun.org.apache.xerces.internal.dom.ElementImpl.setAttributeNS(ElementImpl.java:659)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeAttribute(XmlSchemaSerializer.java:470)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.setupAttr(XmlSchemaSerializer.java:2201)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeComplexType(XmlSchemaSerializer.java:938)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSchemaChild(XmlSchemaSerializer.java:2400)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSchemaElement(XmlSchemaSerializer.java:1659)
      at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSchema(XmlSchemaSerializer.java:132)
      at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addSchemas(JAXBDataBinding.java:642)
      ... 9 more

      Attachments

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              sureshvellaiyappan suresh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.2h
                  0.2h
                  Remaining:
                  Remaining Estimate - 0.2h
                  0.2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified