|
|
DataNucleus Forum » List all forums » » Forum: XML Datastores » » » Thread: Problem using enum |
|
| Print at May 17, 2012 10:57:35 AM | View all posts in this thread on one page |
| Posted by cimballi at Feb 6, 2010 3:28:10 AM |
|
Problem using enum 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 |
| Posted by erik at Feb 6, 2010 12:28:32 PM |
|
Re: Problem using enum 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 ![]() |
| Posted by erik at Feb 6, 2010 12:29:03 PM |
|
Re: Problem using enum http://www.jpox.org/servlet/jira/browse/NUCXML-39 ---------------------------------------- Erik Bengtson ![]() |
|
|
Current timezone is GMT May 17, 2012 10:57:35 AM |