Community
Participate
Working Groups
This bug can be reproduced with the model in org.eclipse.persistence.testing.jaxb.employee Trying to generate the JSON schema for this Object will cause the give NPE trying to make use of the Reference Descriptor which is null. I assume the same issue would happen on a non-collection CompositeObjectMapping with null reference class public class Employee{ @XmlElement(name="responsibility") @XmlElementWrapper(name="responsibilities") public java.util.Collection responsibilities; } java.lang.NullPointerException at org.eclipse.persistence.internal.jaxb.json.schema.JsonSchemaGenerator.populateProperties(JsonSchemaGenerator.java:85) at org.eclipse.persistence.internal.jaxb.json.schema.JsonSchemaGenerator.generateProperty(JsonSchemaGenerator.java:133) at org.eclipse.persistence.internal.jaxb.json.schema.JsonSchemaGenerator.populateProperties(JsonSchemaGenerator.java:106) at org.eclipse.persistence.internal.jaxb.json.schema.JsonSchemaGenerator.generateSchema(JsonSchemaGenerator.java:79) at org.eclipse.persistence.jaxb.JAXBContext.generateJsonSchema(JAXBContext.java:311)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink