IBM Support

PM69786: APPLICATIONS RECEIVE JAVAX.XML.BIND.JAXBEXCEPTION WHEN THE JAX-R S ENGINE TRIES TO DESERIALIZE AN INCOMING MESSAGE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • OSGi applications extending
    org.apache.wink.common.internal.providers.entity.xml.JAXBXmlProv
    ider can receive the following exception when the JAX-RS
    engine tries to deserialize an incoming message:
    
    Caused by: javax.xml.bind.JAXBException:
    "org.apache.wink.common.model.opensearch" doesnt contain
    ObjectFactory.class or jaxb.index
     at
    com.sun.xml.internal.bind.v2.ContextFactory.createContext(Contex
    tFactory.java:202)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
     at java.lang.reflect.Method.invoke(Method.java:611)
     at
    javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:139)
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:301)
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:383)
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:348)
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:255)
     at
    org.apache.wink.common.model.atom.AtomFeed.<clinit>(AtomFeed.jav
    a:185)
     ... 123 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile using JAX-RS OSGi    *
    *                  applications that contain subclasses of     *
    *                  the internal API                            *
    *                  org.apache.wink.common.internal.providers.e *
    *                  n                                           *
    *                  tity.xml.JAXBXmlProvider.                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: Error stating:                          *
    *                      javax.xml.bind.JAXBException:           *
    *                      "org.apache.wink.common.model.opensearc *
    *                      h" doesnt contain ObjectFactory.class   *
    *                      or jaxb.index                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the JAX-RS engine tries to deserialize an incoming
    message, an error similar to the following might occur:
    Caused by: javax.xml.bind.JAXBException:
    "org.apache.wink.common.model.opensearch" doesnt contain
    ObjectFactory.class or jaxb.index
    at
    com.sun.xml.internal.bind.v2.ContextFactory.createContext(Contex
    tFactory.java:202)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at
    javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:139)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:301)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:383)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:348)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:255)
    at
    org.apache.wink.common.model.atom.AtomFeed.<clinit>(AtomFeed.jav
    a:185)
    ... 123 more
    This particular error is encountered under the following
    circumstances:
    1) The application implements a subclass of
    org.apache.wink.common.internal.providers.entity.xml.JAXBXmlProv
    ider.
    2) The application is an OSGi application.
    

Problem conclusion

  • The Liberty JAX-RS engine was changed so that the
    javax.xml.bind.JAXBContext for the referenced object is
    successfully created, and so deserialization of the message
    succeeds.
    
    Users should avoid directly accessing internal JAX-RS engine
    classes, such as implementing internal interfaces or extending
    internal classes.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.0.1. Please refer to the Recommended Updates page
    for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM69786

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-29

  • Closed date

    2012-09-18

  • Last modified date

    2012-09-18

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021