![]() |
![]() |
|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 3
|
|
| Author |
|
|
Newbie Peru Joined: Jan 30, 2010 Post Count: 5 Status: Offline |
Hi, 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) ... Do I miss something in the XML declaration ? Thanks ! Cimballi |
||
|
|
Expert Belgium Joined: Mar 12, 2004 Post Count: 3114 Status: Offline |
fixed. If you want to run queries with filters over the enum fields, you also need to upgrade to head version of the core ---------------------------------------- Erik Bengtson ![]() |
||
|
|
Expert Belgium Joined: Mar 12, 2004 Post Count: 3114 Status: Offline |
http://www.jpox.org/servlet/jira/browse/NUCXML-39 ---------------------------------------- Erik Bengtson ![]() |
||
|
|
|
|
|
Current timezone is GMT Mar 15, 2010 2:54:30 AM |