WLS12.1.1: NullPointerException in Glassfish JAXB V2.2.4 (Doc ID 1505375.1)

Last updated on MAY 24, 2017

Applies to:

Oracle Weblogic Server - Version 12.1.1.0 to 12.1.1.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Following document http://docs.oracle.com/cd/E24329_01/web.1211/e24964/data_types.htm#CIHBHDGI to specify the Glassfish RI implementation of JAXB 2.2, modules/databinding.override_1.0.0.0.jar has been added to the front of their server CLASSPATHs. 

However, upon redeployment of their web service applications, error is received, which matches the problem described in this thread:

http://java.net/projects/jaxb/lists/users/archive/2011-09/message/0 

Stack trace looks like this:

Caused by: java.lang.NullPointerException

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.checkOverrideProperties(ClassBeanInfoImpl.java:205)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:186)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:509)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:528)
at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:105)
at sun.reflect.GeneratedConstructorAccessor151.newInstance(UnknownSource)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128)
at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.<init>(ElementBeanInfoImpl.java:96)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:495)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:526)
at com.sun.xml.bind.v2.runtime.property.SingleReferenceNodeProperty.<init>(SingleReferenceNodeProperty.java:85)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

.....

This error is a bug with the Glassfish RI v2.2.4, which is the same version packaged in WLS 12.1.1.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms