Hi Jason, here's the problem persisting the TimeZone: ------------------------------------- @Persistent(defaultFetchGroup="true") private TimeZone timezone; ------------------------------------- ------------------------------------- java.lang.IllegalArgumentException: timezone: sun.util.calendar.ZoneInfo is not a supported property type. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue (DataTypeUtils.java:145) at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue (DataTypeUtils.java:127) at com.google.appengine.api.datastore.Entity.setProperty(Entity.java: 268) at org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField (DatastoreFieldManager.java:781) at org.datanucleus.state.AbstractStateManager.providedObjectField (AbstractStateManager.java:1037) at com.eris4.warp4.callfriends.server.datastore.poc_tests.Parent.jdoProvideField (Parent.java) at com.eris4.warp4.callfriends.server.datastore.poc_tests.Parent.jdoProvideFields (Parent.java) at org.datanucleus.state.JDOStateManagerImpl.provideFields (JDOStateManagerImpl.java:2715) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPreProcess (DatastorePersistenceHandler.java:318) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects (DatastorePersistenceHandler.java:236) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject (DatastorePersistenceHandler.java:225) at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent (JDOStateManagerImpl.java:3185) at org.datanucleus.state.JDOStateManagerImpl.makePersistent (JDOStateManagerImpl.java:3161) at org.datanucleus.ObjectManagerImpl.persistObjectInternal (ObjectManagerImpl.java:1298) at org.datanucleus.ObjectManagerImpl.persistObject (ObjectManagerImpl.java:1175) at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent (JDOPersistenceManager.java:669) at org.datanucleus.jdo.JDOPersistenceManager.makePersistent (JDOPersistenceManager.java:694) at com.eris4.warp4.callfriends.unittest.server.datastore.poc_tests.POCTest.testTimeZone (POCTest.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run (JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run (TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (RemoteTestRunner.java:196) ------------------------------------
Hope it helps! On Oct 20, 7:11 pm, "Jason (Google)" <apija...@google.com> wrote: > Have you tried storing it as a serialized > property?http://gae-java-persistence.blogspot.com/2009/10/serialized-fields.html > > If so, then please post your implementation that doesn't work and any log > details re: the failure. > > - Jason > > On Fri, Oct 16, 2009 at 7:07 AM, aldrinm <aldr...@gmail.com> wrote: > > > Hi, > > > Can I persist an instance of java.util.TimeZone in the datastore? From > > this thread, > >http://groups.google.com/group/google-appengine-java/browse_thread/th... > > and the whitelist > >http://code.google.com/appengine/docs/java/jrewhitelist.html > > , it appears that it can be done. Unable to get it to work. Any > > pointers? > > > Thanks > > Aldrin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---