glassfish
  1. glassfish
  2. GLASSFISH-19287

JAXB 1.0 based applications do not work due to JAXB-899

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: web_services
    • Labels:
      None

      Description

      Having a web-application which uses classes created by JAXB 1.0.x does not run on GF 3.1.2.2 due to bug JAXB-899

      Copying stacktrace from JAXB-899

      Caused by: javax.xml.bind.JAXBException

      • with linked exception:
        [java.lang.NoSuchFieldError: theInstance]
        at com.sun.xml.bind.ContextFactory_1_0_1.createContext(ContextFactory_1_0_1.java:100)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
        at javax.xml.bind.ContextFinder.find(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
        at mypackage.JAXBContextWrapper.getInstance(JAXBContextWrapper.java:57)
        at mypackage.JAXBObjectWrapper.getUnmarshallerStatic(JAXBObjectWrapper.java:161)
        at mypackage.JAXBObjectWrapper.unmarshalStatic(JAXBObjectWrapper.java:184)
        at mypackage.JAXBObjectWrapper.<init>(JAXBObjectWrapper.java:67)
        ... 11 more
        Caused by: java.lang.NoSuchFieldError: theInstance
        at mypackage.generated.jaxb104.impl.runtime.DefaultJAXBContextImpl.<init>(DefaultJAXBContextImpl.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.sun.xml.bind.ContextFactory_1_0_1.createContext(ContextFactory_1_0_1.java:94)
        ... 24 more

        Activity

        bthalmayr created issue -
        kumara made changes -
        Field Original Value New Value
        Assignee shreedhar_ganapathy [ shreedhar_ganapathy ] Martin Grebac [ snajper ]
        Component/s web_services [ 10623 ]
        Martin Grebac made changes -
        Assignee Martin Grebac [ snajper ] Iaroslav Savytskyi [ yaroska ]
        Martin Grebac made changes -
        Tags jaxb jaxb metro-gf3125
        Iaroslav Savytskyi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            bthalmayr
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: