Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.checkOverrideProperties(ClassBeanInfoImpl.java:205) #860

Closed
Tomas-Kraus opened this issue Sep 8, 2011 · 8 comments

Comments

@Tomas-Kraus
Copy link
Member

The issue is described in the following thread:

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

The problem has been fixed in trunk with the following commit diff:

Index: runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java
===================================================================
--- runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java	(revision 3729)
+++ runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java	(revision 3730)
@@ -202,7 +202,9 @@
     private void checkOverrideProperties(Property p) {
         ClassBeanInfoImpl bi = this;
         while ((bi = bi.superClazz) != null) {
-            for (Property superProperty : bi.properties) {
+            Property[] props = bi.properties;
+            if (props == null) break;
+            for (Property superProperty : props) {
 if (superProperty == null) break;
 String spName = superProperty.getFieldName();
 if ((spName != null) && (spName.equals(p.getFieldName()))) {

It was committed on July 19, 2011 by snajper
It is fixed in jaxb-ri 2.2.5-SNAPSHOT. The fix needs to be in GF 3.1.2.

Affected Versions

[2.2.4u1]

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Reported by najmi

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Was assigned to snajper

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
snajper said:
Resolved in 2.1 / 2.2 / trunk.

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
Marked as fixed on Friday, September 9th 2011, 5:39:36 am

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
borner said:
FYI, I still see this error using 2.2.5, using xjc generated classes from the AIXM (Aeronautical Information Exchange Model) schema, publicly available at http://www.aixm.aero/gallery/content/public/schema/5.1.

I rolled back to jaxb 2.2.2 and corresponding xjc (specifically jaxb-api-2.2.2.jar, jaxb-impl-2.2.jar and jaxb-xjc-2.2.jar) and jaxb unmarshaling is happy again.

Brad

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
najmi said:
Testing with GF 3.1.2 promoted build Dec 13 shows that it has this bug fixed. Thank you!

@Tomas-Kraus
Copy link
Member Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAXB-860

@Tomas-Kraus
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants