Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  23 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jaxzin  
View profile  
 More options Apr 17, 9:48 pm
From: jaxzin <brian+goo...@jaxzin.com>
Date: Fri, 17 Apr 2009 18:48:27 -0700 (PDT)
Local: Fri, Apr 17 2009 9:48 pm
Subject: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
I get this every so often on the dev_appserver and I'm unclear of the
cause:

java.lang.UnsupportedOperationException
        at org.datanucleus.store.appengine.EntityUtils.getPropertyName
(EntityUtils.java:60)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.getPropertyName
(DatastoreFieldManager.java:833)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField
(DatastoreFieldManager.java:283)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchStringField
(DatastoreFieldManager.java:180)
        at org.datanucleus.state.AbstractStateManager.replacingStringField
(AbstractStateManager.java:1154)
...

If I deploy the app it works just fine on the production AppEngine.
Also restarting the dev_appserver has resolved it sometimes (like just
now as I'm typing).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mehdi Rabah  
View profile  
 More options Apr 20, 5:18 am
From: Mehdi Rabah <mehdi.ra...@gmail.com>
Date: Mon, 20 Apr 2009 11:18:15 +0200
Local: Mon, Apr 20 2009 5:18 am
Subject: Re: [appengine-java] Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Hi,
I just wanted to say that I also got this error every time I start my
server, using the gwt hosted mode windows in eclipse.

when I restart it, using the "restart button", the error dissapear.

On Sat, Apr 18, 2009 at 3:48 AM, jaxzin
<brian+goo...@jaxzin.com<brian%2Bgoo...@jaxzin.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 22, 8:56 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 22 Apr 2009 17:56:39 -0700
Local: Wed, Apr 22 2009 8:56 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Sorry it's taken me a few days to get back to you.  Could you please post
your code for any objects that are using the @Column annotation?
Thanks,
Max


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
popjxc@gmail.com  
View profile  
 More options Apr 22, 9:07 pm
From: "pop...@gmail.com" <pop...@gmail.com>
Date: Wed, 22 Apr 2009 18:07:08 -0700 (PDT)
Local: Wed, Apr 22 2009 9:07 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
I also got the same error.. But I never use the @Column annotation.
This is my error stack:

java.lang.UnsupportedOperationException
        at org.datanucleus.store.appengine.EntityUtils.getPropertyName
(EntityUtils.java:60)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.getPropertyName
(DatastoreFieldManager.java:833)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField
(DatastoreFieldManager.java:283)
        at org.datanucleus.state.AbstractStateManager.replacingObjectField
(AbstractStateManager.java:1171)
        at org.jxc.test.model.Images.jdoReplaceField(Images.java)
        at org.jxc.test.model.Images.jdoReplaceFields(Images.java)
        at org.datanucleus.state.JDOStateManagerImpl.replaceFields
(JDOStateManagerImpl.java:2654)
        at org.datanucleus.state.JDOStateManagerImpl.replaceFields
(JDOStateManagerImpl.java:2673)
        at
org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject
(DatastorePersistenceHandler.java:365)
        at org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo
(DatastoreQuery.java:342)
        at org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo
(DatastoreQuery.java:303)
        at org.datanucleus.store.appengine.query.DatastoreQuery.access$000
(DatastoreQuery.java:90)
        at org.datanucleus.store.appengine.query.DatastoreQuery$1.apply
(DatastoreQuery.java:250)
        at org.datanucleus.store.appengine.query.DatastoreQuery$1.apply
(DatastoreQuery.java:249)
        at
org.datanucleus.store.appengine.query.StreamingQueryResult.resolveNext
(StreamingQueryResult.java:115)
        at org.datanucleus.store.appengine.query.StreamingQueryResult
$1.computeNext(StreamingQueryResult.java:141)
        at
com.google.appengine.repackaged.com.google.common.collect.AbstractIterator. tryToComputeNext
(AbstractIterator.java:134)
        at
com.google.appengine.repackaged.com.google.common.collect.AbstractIterator. hasNext
(AbstractIterator.java:129)
        at org.datanucleus.store.appengine.query.StreamingQueryResult
$AbstractListIterator.hasNext(StreamingQueryResult.java:206)
        at freemarker.ext.beans.IteratorModel.hasNext(IteratorModel.java:122)
        at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:
162)
        at freemarker.core.Environment.visit(Environment.java:416)
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
        at freemarker.core.Environment.visit(Environment.java:209)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:209)
        at freemarker.core.Environment.process(Environment.java:189)
        at freemarker.template.Template.process(Template.java:237)
        at org.jxc.test.servlet.UpLoadServlet.doGet(UpLoadServlet.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
        at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
        at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
        at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:306)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

On 4月23日, 上午8时56分, Max Ross <maxr+appeng...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 22, 11:44 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 22 Apr 2009 20:44:07 -0700
Local: Wed, Apr 22 2009 11:44 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Interesting.  If you could send me the classes you're trying to persist that
would be really helpful.  Feel free to email privately.
Thanks,
Max

2009/4/22 pop...@gmail.com <pop...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xincai jiang  
View profile  
 More options Apr 23, 1:50 am
From: xincai jiang <pop...@gmail.com>
Date: Thu, 23 Apr 2009 13:50:32 +0800
Local: Thurs, Apr 23 2009 1:50 am
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

It is just a simple class, I use it to store images. When I try to read the
image,  the error happens ..

The following is my class , mybe it is helpful:

package org.jxc.test.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Images {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String type;

    @Persistent
    private Blob data;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Blob getData() {
        return data;
    }

    public void setData(Blob data) {
        this.data = data;
    }

}

2009/4/23 Max Ross <maxr+appeng...@google.com <maxr%2Bappeng...@google.com>>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james  
View profile  
 More options Apr 30, 3:30 pm
From: james <james.kings...@gmail.com>
Date: Thu, 30 Apr 2009 12:30:40 -0700 (PDT)
Local: Thurs, Apr 30 2009 3:30 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
Have there been any insights into this issue?  One of my projects has
brought up this particular issue in the dev environment.

On Apr 17, 8:48 pm, jaxzin <brian+goo...@jaxzin.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michał Węgorek  
View profile  
 More options May 1, 5:18 am
From: Michał Węgorek <wegor...@gmail.com>
Date: Fri, 1 May 2009 02:18:33 -0700 (PDT)
Local: Fri, May 1 2009 5:18 am
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
I get the same problem when I try to persist my object.

I've got 2 methods to inteact with database:
1) - read only (reads objects from database)
2) - write only (persists an object in a database)

The second one doesnt work. When I comment the first one the second
one works - anyone could explain this?

the methods are very simple, I can paste them if it could be helpful

Any help appreciated,
Michal.

On 30 Kwi, 21:30, james <james.kings...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james  
View profile  
 More options May 1, 12:59 pm
From: james <james.kings...@gmail.com>
Date: Fri, 1 May 2009 09:59:14 -0700 (PDT)
Local: Fri, May 1 2009 12:59 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
On May 1, 4:18 am, Michał Węgorek <wegor...@gmail.com> wrote:

> I get the same problem when I try to persist my object.

> I've got 2 methods to inteact with database:
> 1) - read only (reads objects from database)
> 2) - write only (persists an object in a database)

> The second one doesnt work. When I comment the first one the second
> one works - anyone could explain this?

> the methods are very simple, I can paste them if it could be helpful

> Any help appreciated,
> Michal.

It appears to me to be some sort of race condition.  When I went from
pulling one object of a certain type from the dev datastore to pulling
three of them on app startup I started to get the issue.  Google seems
to be deploying datanucleus in single-threaded mode.  I found this
config in plugin.xml in datanucleus-core:
        <persistence-property name="datanucleus.Multithreaded"
value="false"

validator="org.datanucleus.properties.BooleanPropertyValidator"/>

For now, I've made the methods that access the datastore synchronized,
and that seems to have cleared it up.  I would give that a try until
we get some guidance.  None of the sample code uses synch blocks,
which makes sense as the appengine and threads don't mix.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james  
View profile  
 More options May 1, 1:21 pm
From: james <james.kings...@gmail.com>
Date: Fri, 1 May 2009 10:21:30 -0700 (PDT)
Local: Fri, May 1 2009 1:21 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Srinu  
View profile  
 More options May 1, 6:58 pm
From: Srinu <sunka...@gmail.com>
Date: Fri, 1 May 2009 15:58:03 -0700 (PDT)
Local: Fri, May 1 2009 6:58 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
I tried changing the property to "datanucleus.Multithreaded" to true
and also made the access block synchronized. I still get this error in
Eclipse. can some one help me wi this.

The server is running at http://localhost:8080/
May 1, 2009 3:53:27 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Nested in org.apache.jasper.JasperException:
java.lang.UnsupportedOperationException:
java.lang.UnsupportedOperationException
        at org.datanucleus.store.appengine.EntityUtils.getPropertyName
(EntityUtils.java:60)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.getPropertyName
(DatastoreFieldManager.java:833)
        at
org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField
(DatastoreFieldManager.java:726)
        at org.datanucleus.state.AbstractStateManager.providedObjectField
(AbstractStateManager.java:1011)
        at com.challenge.jdo.base.PlayerMasterJDO.jdoProvideField
(PlayerMasterJDO.java)
        at com.challenge.jdo.base.PlayerMasterJDO.jdoProvideFields
(PlayerMasterJDO.java)
        at org.datanucleus.state.JDOStateManagerImpl.provideFields
(JDOStateManagerImpl.java:2597)

Also, attached is the code I am using: All I am doing is calling the
method insertPlayerProfiles from a JSP.

package com.challenge.test;

import java.util.Calendar;

import javax.jdo.PersistenceManager;

import com.challenge.framework.MyPersistenceManagerFactory;
import com.challenge.jdo.base.GameMasterJDO;
import com.challenge.jdo.base.PlayerMasterJDO;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class PlayerMasterTester {

        /**
         * @param args
         */
        public static void main(String[] args) {
                // TODO Auto-generated method stub
        }

        public synchronized void insertPlayerProfiles() {
                PersistenceManager pm =
MyPersistenceManagerFactory.getPersistenceManagerFactory
().getPersistenceManager();
                PlayerMasterJDO player1 = new PlayerMasterJDO();
                //Key key = KeyFactory.createKey(PlayerMasterJDO.class.getSimpleName
(), "A1");
                //player1.setPlayerId(new Long(Calendar.getInstance().getTimeInMillis
()));
                player1.setFirstName("First Name 1");
                player1.setLastName("Last Name 1");
                player1.setCreatedBy(new Long("1122"));
                player1.setCreatedDateTime(Calendar.getInstance());
                player1.setModifiedBy(new Long("1122"));
                player1.setModifiedDateTime(Calendar.getInstance());
                pm.makePersistent(player1);
//              //
                try {
                        Thread.sleep(1000);
                } catch (InterruptedException e) {
                        e.printStackTrace();
                }
                PlayerMasterJDO player2 = new PlayerMasterJDO();
                //key = KeyFactory.createKey(PlayerMasterJDO.class.getSimpleName(),
"A2");
                //player2.setPlayerId(new Long(Calendar.getInstance().getTimeInMillis
()));
                player2.setFirstName("First Name 2");
                player2.setLastName("Last Name 2");
                player2.setCreatedBy(new Long("1122"));
                player2.setCreatedDateTime(Calendar.getInstance());
                player2.setModifiedBy(new Long("1122"));
                player2.setModifiedDateTime(Calendar.getInstance());
                pm.makePersistent(player2);
//              //
//              PlayerMasterJDO player3 = new PlayerMasterJDO();
//              key = KeyFactory.createKey(PlayerMasterJDO.class.getSimpleName(),
"A3");
//              player3.setPlayerId(key);
//              player3.setFirstName("First Name 3");
//              player3.setLastName("Last Name 3");
//              //pm.makePersistent(player3);
//              //
//              // Now insert Game master
                GameMasterJDO game1 = new GameMasterJDO();
                game1.setGameId(new Long(Calendar.getInstance().getTimeInMillis()));
                game1.setPlayer1(player1.getPlayerId());
                game1.setPlayer2(player2.getPlayerId());
                game1.setPlayerWon(null);
                pm.makePersistent(game1);
//              //
//              GameMasterJDO game2 = new GameMasterJDO();
//              game2.setPlayer1(player2);
//              game2.setPlayer2(player3);
//              pm.makePersistent(game2);
//              //
                pm.close();
        }

}

On May 1, 10:21 am, james <james.kings...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michał Węgorek  
View profile  
 More options May 1, 7:16 pm
From: Michał Węgorek <wegor...@gmail.com>
Date: Fri, 1 May 2009 16:16:33 -0700 (PDT)
Local: Fri, May 1 2009 7:16 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
My problem solved:

I've added 'synchronized' to all methods which directly interact with
database.

It looks like my RPC methods are triggered 3 times instead of one time
- that quite strange - try to  put System.out.println(some_text)
inside triggered-server-method ale you'll see some_text triple (I see
it triple). I expect to see it once.

I run my code locally, so theres no way data is lost during network
journey and it would be silly to restart RPC method in a few
milliseconds after - these 3 RPC calls start time differ only by a few
msec.

Anyone could explain this?

Thanks.
Michal.

On 2 Maj, 00:58, Srinu <sunka...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John_Idol  
View profile  
 More options May 27, 3:22 pm
From: John_Idol <giovanni.id...@gmail.com>
Date: Wed, 27 May 2009 12:22:28 -0700 (PDT)
Local: Wed, May 27 2009 3:22 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
Even with synchronized on all the methods I still get
java.lang.UnsupportedOperationException every time I redeploy the
project on development environment (and the application-engine
generated stuff gets wiped).

Usually after a few minutes of troubleshooting the hell out of it
(random cleans and so forth) it goes away - but right now is not going
away and I have no clue how to fix it!

rather annoying!

On May 2, 12:16 am, Michał Węgorek <wegor...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options May 27, 5:24 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 27 May 2009 14:24:21 -0700
Local: Wed, May 27 2009 5:24 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

I've identified a race condition that can result in this exception and I
have a fix that will go out in the next release.   However, I'm surprised
that synchronizing on all your methods doesn't take care of the problem
right away so maybe there's another race condition that I haven't found.
Does your app process concurrent requests when it starts up?

2009/5/27 John_Idol <giovanni.id...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
byrus  
View profile  
 More options Jun 1, 11:31 am
From: byrus <sbalasub2...@gmail.com>
Date: Mon, 1 Jun 2009 08:31:31 -0700 (PDT)
Local: Mon, Jun 1 2009 11:31 am
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
Dear all,
I am seeing this happen on one-many relationships on my dev
environment (!)

Is this fixed in appengine-sdk-1.2.1?

Thanks

Sury
On May 28, 2:24 am, Max Ross <maxr+appeng...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Jun 1, 12:34 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Mon, 1 Jun 2009 09:34:13 -0700
Local: Mon, Jun 1 2009 12:34 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Sorry, no, the fix won't be available until the next release.  Are you
seeing it on the first request to your application or after?

Thanks,
Max

2009/6/1 byrus <sbalasub2...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jsd  
View profile  
 More options Jun 3, 9:22 pm
From: jsd <johr...@gmail.com>
Date: Wed, 3 Jun 2009 18:22:31 -0700 (PDT)
Local: Wed, Jun 3 2009 9:22 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
Mark,
Any further news on this issue. I am getting same exact error. Show
stopper for me. My persistent class is simple one comprising of 3
string props. Error happens at read time.

On Apr 22, 10:50 pm, xincai jiang <pop...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi  
View profile  
 More options Jun 21, 2:33 pm
From: Ravi <ping2r...@gmail.com>
Date: Sun, 21 Jun 2009 11:33:53 -0700 (PDT)
Local: Sun, Jun 21 2009 2:33 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
I am getting exactly the same error,
and its makiing m e crazy...sometime it happens some time
doesn't.......
There si no particular reason..
this what i do, and in following steps i dont make nay change in any
code

Build project
Run it as web application
I get This error

Again
Build project
Run it as web application
I get This error

Again
Build project
Run it as web application
I get This error

Again
Build project
Run it as web application

Boom it worked.....

Sometime i am lucky and it starts working in 2 attempts sometime it
take 3-4 ....
now i feel l ike its not computer programme but a girl, who do things
depends on her mood.

I am trying hard top get pattern of its working.... will post it here
once get it.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi Sharma  
View profile  
 More options Jun 23, 3:27 pm
From: Ravi Sharma <ping2r...@gmail.com>
Date: Tue, 23 Jun 2009 20:27:10 +0100
Local: Tues, Jun 23 2009 3:27 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Any one from google???
Is there any solution for this problem. This has become pain.
getting the following exception at query.closeAll();

but if i just rebuild and restart 2-3 times it work. SO you can understand
how irritating it has become..

java.lang.UnsupportedOperationException
    at
org.datanucleus.store.appengine.EntityUtils.getPropertyName(EntityUtils.jav a:60)
    at
org.datanucleus.store.appengine.DatastoreFieldManager.getPropertyName(Datas toreFieldManager.java:872)
    at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField(Data storeFieldManager.java:290)
    at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchStringField(Data storeFieldManager.java:182)
    at
org.datanucleus.state.AbstractStateManager.replacingStringField(AbstractSta teManager.java:1154)
    at
com.next.viewer.server.entity.EntityDefnition.jdoReplaceField(EntityDefniti on.java)
    at
com.next.viewer.server.entity.EntityDefnition.jdoReplaceFields(EntityDefnit ion.java)
    at
org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl .java:2654)
    at
org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl .java:2673)
    at
org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject(Dat astorePersistenceHandler.java:349)
    at
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(Datastore Query.java:356)
    at
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(Datastore Query.java:317)
    at
org.datanucleus.store.appengine.query.DatastoreQuery.access$500(DatastoreQu ery.java:95)
    at
org.datanucleus.store.appengine.query.DatastoreQuery$2.apply(DatastoreQuery .java:391)
    at
org.datanucleus.store.appengine.query.DatastoreQuery$2.apply(DatastoreQuery .java:390)
    at
org.datanucleus.store.appengine.query.StreamingQueryResult.resolveNext(Stre amingQueryResult.java:114)
    at
org.datanucleus.store.appengine.query.StreamingQueryResult$1.computeNext(St reamingQueryResult.java:140)
    at
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(Abs tractIterator.java:132)
    at
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIter ator.java:127)
    at
org.datanucleus.store.appengine.query.StreamingQueryResult$AbstractListIter ator.hasNext(StreamingQueryResult.java:205)
    at java.util.AbstractList.hashCode(Unknown Source)
    at
org.datanucleus.store.query.AbstractQueryResult.hashCode(AbstractQueryResul t.java:249)
    at java.util.HashMap.removeEntryForKey(Unknown Source)
    at java.util.HashMap.remove(Unknown Source)
    at java.util.HashSet.remove(Unknown Source)
    at org.datanucleus.store.query.Query.close(Query.java:1870)
    at org.datanucleus.store.query.Query.closeAll(Query.java:1883)

Ravi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Jun 23, 8:32 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Tue, 23 Jun 2009 17:32:42 -0700
Local: Tues, Jun 23 2009 8:32 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

There's a race condition in DataNucleus initialization that sometimes yields
this exception.  It will be fixed in the next release.  If you'd like the
fix now you can download and install the release candidate for the next
DataNucleus plugin release, available at
http://datanucleus-appengine.googlecode.com/files/appengine-orm-1.0.2...

This is bleeding edge and not an official release so use at your own risk,
and make sure you follow the installation instructions at
http://code.google.com/p/datanucleus-appengine/wiki/HowToUpdateTheSDK...

Max


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi Sharma  
View profile  
 More options Jun 24, 3:06 am
From: Ravi Sharma <ping2r...@gmail.com>
Date: Wed, 24 Jun 2009 08:06:46 +0100
Local: Wed, Jun 24 2009 3:06 am
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Thanks Max,
I will try this update and let everyone know the result.

Ravi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi  
View profile  
 More options Jun 24, 3:55 pm
From: Ravi <ping2r...@gmail.com>
Date: Wed, 24 Jun 2009 12:55:33 -0700 (PDT)
Local: Wed, Jun 24 2009 3:55 pm
Subject: Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?
Hi Max,
I used the new package. It worked first time and then gave following
error

java.util.ConcurrentModificationException
        at java.util.SubList.checkForComodification(Unknown Source)
        at java.util.SubList.size(Unknown Source)
        at java.util.AbstractList.clear(Unknown Source)
        at com.google.appengine.api.datastore.dev.LocalDatastoreService.next
(LocalDatastoreService.java:764)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall
(ApiProxyLocalImpl.java:97)
        at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:72)
        at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
(DatastoreApiHelper.java:47)
        at com.google.appengine.api.datastore.DatastoreServiceImpl
$QueryResultsSourceImpl.getMoreEntities(DatastoreServiceImpl.java:343)
        at com.google.appengine.api.datastore.QueryIterator.ensureLoaded
(QueryIterator.java:98)
        at com.google.appengine.api.datastore.QueryIterator.hasNext
(QueryIterator.java:52)
        at
org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterator.hasN ext
(RuntimeExceptionWrappingIterator.java:42)
        at
org.datanucleus.store.appengine.query.StreamingQueryResult.listIterator
(StreamingQueryResult.java:124)
        at org.datanucleus.store.appengine.query.StreamingQueryResult.iterator
(StreamingQueryResult.java:119)
        at com.next.viewer.server.entity.helper.JDOManager.runQuery
(JDOManager.java:56)
        at
com.next.viewer.server.entity.helper.EntityHelper.findEntityDefnition
(EntityHelper.java:39)
        at com.next.viewer.server.DBServiceAbstract.getAllEntities
(DBServiceAbstract.java:155)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
        at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:71


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Jun 24, 4:07 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 24 Jun 2009 13:07:39 -0700
Local: Wed, Jun 24 2009 4:07 pm
Subject: Re: [appengine-java] Re: Random error, UnsupportedOperationException in EntityUtils.getPropertyName?

Looks like you're hitting a separate race condition.  This will also be
fixed in the next SDK but unfortunately you won't be able to get your hands
on this fix until the next SDK is out (it's part of the local datastore
implementation, which, unlike the DataNucleus plugin, is not open source).

Max


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google