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

Mapping jaxb types to "default" package causes exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2, 2.1.6
    • Tooling
    • None

    Description

      If you use a JAXB customization like:
      <jaxws:bindings wsdlLocation="./proactive.wsdl"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
      xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
      <jaxws:package></jaxws:package>
      </jaxws:bindings

      To try and map to a default package, wsdl2java yields:
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out
      of range: -1
      at java.lang.String.substring(String.java:1768)
      at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addedToClassCollector(JAXBDataBinding.java:488)
      at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.addedEnumClassToCollector(JAXBDataBinding.java:477)
      at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:333)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:557)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:208)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:127)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:252)
      ... 22 more

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: