My Oracle Support Banner

XMLAnyCollectionMapping and NullPointerException (Doc ID 362113.1)

Last updated on AUGUST 11, 2022

Applies to:

Oracle TopLink - Version 4.6 and later
Information in this document applies to any platform.

Symptoms

When marshalling or unmarshalling an object, which uses XML AnyCollectionMapping, the NullPointerExceprtion is thrown with the following stack trace:

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
 Example Customer Class
 JAXB client code
 customer-data.xml
 Customer.xsd

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.