Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 77 times and has 2 replies
Male cimballi
Newbie



Peru
Joined: Jan 30, 2010
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
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
[Feb 6, 2010 3:28:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male erik
Expert
Member's Avatar

Belgium
Joined: Mar 12, 2004
Post Count: 3114
Status: Offline
Reply to this Post  Reply with Quote 
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


[Feb 6, 2010 12:28:32 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male erik
Expert
Member's Avatar

Belgium
Joined: Mar 12, 2004
Post Count: 3114
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem using enum

http://www.jpox.org/servlet/jira/browse/NUCXML-39
----------------------------------------
Erik Bengtson


[Feb 6, 2010 12:29:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread