
|
If you were logged in you would be able to see more operations.
|
|
|
|
I have a problem using Enum, I think there is something I misunderstand.
I have an enum E and in a class C I have declared a variable V whose type is E.
In the xml file, I have only <field name="V" />, nothing more.
And then, when I try to store it using the XML datastore, I have the following error :
Caused by: java.lang.NullPointerException
at org.datanucleus.store.xml.binder.XmlRootElementHandler.invoke(XmlRootElementHandler.java:63)
at $Proxy11.name(Unknown Source)
at com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.java:78)
at com.sun.xml.bind.v2.model.impl.EnumLeafInfoImpl.<init>(EnumLeafInfoImpl.java:64)
at com.sun.xml.bind.v2.model.impl.RuntimeEnumLeafInfoImpl.<init>(RuntimeEnumLeafInfoImpl.java:46)
|
|
Description
|
I have a problem using Enum, I think there is something I misunderstand.
I have an enum E and in a class C I have declared a variable V whose type is E.
In the xml file, I have only <field name="V" />, nothing more.
And then, when I try to store it using the XML datastore, I have the following error :
Caused by: java.lang.NullPointerException
at org.datanucleus.store.xml.binder.XmlRootElementHandler.invoke(XmlRootElementHandler.java:63)
at $Proxy11.name(Unknown Source)
at com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.java:78)
at com.sun.xml.bind.v2.model.impl.EnumLeafInfoImpl.<init>(EnumLeafInfoImpl.java:64)
at com.sun.xml.bind.v2.model.impl.RuntimeEnumLeafInfoImpl.<init>(RuntimeEnumLeafInfoImpl.java:46) |
Show » |
Sort Order:
| There are no comments yet on this issue.
|
|