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

Beans created with no package are throwing nullpointer exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.6
    • 3.1.14, 3.2.1
    • JAXB Databinding
    • None
    • Unknown

    Description

      I have beans and service classes with no package names in my webservices.
      These worked perfectly fine in cxf 2.7.6

      Recently we are trying to upgrade to a newer cxf version 3.1.13 and i am getting NullPointerException at

      at org.apache.cxf.jaxb.Utils.getMethodXJTA(Utils.java:294) at
      org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:416)

      I did debug into cxf, by downloading cxf source and i see its failing at
      below line,
      m.getDeclaringClass().getPackage().getAnnotation(XmlJavaTypeAdapters.class)

      The reason its failing is there is no package name for my beans and services.

      Attachments

        Issue Links

          Activity

            People

              deki Dennis Kieselhorst
              sumeet80 Sumeet Mahajan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: