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

NullPointerException in class CustomizationParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1.10
    • JAXB Databinding
    • None
    • Unknown

    Description

      When I try to apply the attached bindings file it gives this exception:

      Caused by: java.lang.NullPointerException
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.copyAllJaxbDeclarations(CustomizationParser.java:269)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.internalizeBinding(CustomizationParser.java:379)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.internalizeBinding(CustomizationParser.java:390)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.CustomizationParser.parse(CustomizationParser.java:126)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.customize(JAXWSDefinitionBuilder.java:113)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:199)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)

      If I add a single space right before </jaxws:bindings> it works.

      For the problem to happen the targetNamespace "X" has to be found in the wsdl. In my wsdl I also have all schemas embedded.

      Attachments

        1. test.xjb
          0.5 kB
          Constantino Cronemberger

        Activity

          People

            Unassigned Unassigned
            ccronemberger Constantino Cronemberger
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: