I have same problem and I'm already using java.util.date. but in
eclipse, debug as web application works,

but run as web application makes same problem. my object looks like
this

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Bidder {
        @PrimaryKey
          @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
          private Long id;
        @Persistent
          private String some;

        @Persistent
          private Integer some;

        @Persistent
          private Integer some;

        @Persistent
          private Long some;

        @Persistent
          private Date some;

On 7월28일, 오전4시19분, Max Ross <maxr+appeng...@google.com> wrote:
> Thanks for the report.  There are two things going on here.  First,
> DataNucleus is doing something I don't understand with the meta-data that is
> being created for your GregorianCalendar field.  I'll look into this.
> However, even if this problem didn't exist, the datastore doesn't support
> Calendar or any of its subtypes.  This isn't a whitelisting issue - it's a
> data issue.  A Calendar contains a TimeZone attribute, but the datastore
> represents a point in time as an int 64, so we can't just store the
> millisecond representation of the Calendar without potentially losing
> important data.  The workaround is to use java.util.Date.
>
> Max
>
>
>
> On Sun, Jul 26, 2009 at 10:18 PM, alosii <alo...@gmail.com> wrote:
>
> > The problem apparently happens at line 60 of your EntityUtils.class
>
> > if (ammd.getColumnMetaData() != null && ammd.getColumnMetaData
> > ().length > 0) {
> >      if (ammd.getColumnMetaData().length != 1) {  //<-----------------
> > BOOOOOOM!!!
> >        // TODO(maxr) throw something more appropriate
> >        throw new UnsupportedOperationException();
> > }
>
> > My object looks like this:
>
> > @PersistenceCapable(identityType = IdentityType.APPLICATION)
> > public class Object{
> >        @PrimaryKey
> >        private String someattribute;
>
> >        @Persistent
> >        private String someattribute;
>
> >        @Persistent
> >        private String someattribute;
>
> >        ...
>
> >        @Persistent
> >        private STATUS status;
>
> >        @Persistent
> >        private GregorianCalendar lastActiveTime;
>
> > ...
> > }
>
> > I'm I doing something wrong? Last time i checked the GregorianCalendar
> > was available:
> >http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> > Any ideas would be great!
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to