[appengine-java] Re: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-06 Thread Tristan
I've seen this as well. I've also noticed that if I purposefully make
a task fail (by returning any HTTP status code outside of the range
200-299), it doesn't get added back to queue for retrying. This used
to work in 1.2.6.

-Tristan

On Dec 6, 4:18 pm, Larry Cable  wrote:
> I just updated from 1.2.6 to 1.2.8 and my application code has started
> failing locally.
>
> I am using task queue's in order to process uploaded files, this
> worked in 1.2.6 (although you had
> to manually fire the task queue from the _ah admin console)
>
> Now, it is failing under 1.2.8 (as it seems as though it is now
> automatically starting the queue)
> with the following exception:
>
> Dec 7, 2009 12:08:57 AM org.quartz.core.JobRunShell run
> SEVERE: Job default.a7f0abc6-ed81-4fa4-96f1-c09048a99883 threw an
> unhandled Exception:
> com.google.apphosting.api.ApiProxy$ApplicationException:
> ApplicationError: 5: http method POST against 
> URLhttp://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
> timed out.
>         at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch
> (LocalURLFetchService.java:214)
>         at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
> (UrlFetchJob.java:53)
>         at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
> (UrlFetchJob.java:46)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
> (SimpleThreadPool.java:520)
> Dec 7, 2009 12:08:57 AM org.quartz.core.ErrorLogger schedulerError
> SEVERE: Job (default.a7f0abc6-ed81-4fa4-96f1-c09048a99883 threw an
> exception.
> org.quartz.SchedulerException: Job threw an unhandled exception. [See
> nested exception: com.google.apphosting.api.ApiProxy
> $ApplicationException: ApplicationError: 5: http method POST against
> URLhttp://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
> timed out.]
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
> (SimpleThreadPool.java:520)
> * Nested Exception (Underlying Cause) ---
> com.google.apphosting.api.ApiProxy$ApplicationException:
> ApplicationError: 5: http method POST against 
> URLhttp://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
> timed out.
>         at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch
> (LocalURLFetchService.java:214)
>         at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
> (UrlFetchJob.java:53)
>         at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
> (UrlFetchJob.java:46)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
> (SimpleThreadPool.java:520)
>
> it implies that there is some form of timeout occuring ... since the
> app code has not changed and is not
> apparently getting invoked at all, I am somewhat at loss to know how
> to resolve this!
>
> Has anyone else seen these problems?

--

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-j...@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.




[appengine-java] An entity group that does not have a root entity supports transaction. How does it work?

2009-12-06 Thread Yasuo Higa
Hi all,

As the following document(54p) says,
journal and last committed timestamp are co-located with a root entity
of an entity group.
http://snarfed.org/space/datastore_talk.html

But, an entity group that does not have a root entity seem to support
transaction.
How does it work?

I tried the following code on production server:

DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Key parentKey = KeyFactory.createKey("Parent", 1);
Key child1Key = KeyFactory.createKey(parentKey, "Child", 1);
Key child2Key = KeyFactory.createKey(parentKey, "Child", 2);

Transaction tx1 = ds.beginTransaction();
ds.put(tx1, new Entity(child1Key));

Transaction tx2 = ds.beginTransaction();
ds.put(tx2, new Entity(child2Key));

tx1.commit();
try {
tx2.commit();
} catch (ConcurrentModificationException e) {
System.out.println(
"An entity group that does not have a root entity supports
transaction.");
}
try {
ds.get(parentKey);
} catch (EntityNotFoundException e) {
System.out.println("There is no root entity.");
}
ds.delete(child1Key);

App Engine SDK version:1.2.8

Thanks,

Yasuo Higa

--

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-j...@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.




[appengine-java] all-delete-orphan

2009-12-06 Thread jopaki
Is hibernate functionality "all-delete-orphan" available in gaej/jdo
in any capacity ?

--

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-j...@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.




[appengine-java] Help!!.. FinalizableReferenceQueue$SystemLoader loadFinalizer: Not allowed to access system class loader.

2009-12-06 Thread mar_novice
I've noticed that there are some info (not warning nor error) being
thrown in my logs that i can't figure out the cause... I don't know if
i should worry about it or not

Below is the stack trace..

#
2-06 03:51PM 37.542

com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
$SystemLoader loadFinalizer: Not allowed to access system class
loader.

#
I 12-06 03:51PM 37.573

com.google.appengine.repackaged.com.google.common.base.internal.Finalizer
getInheritableThreadLocalsField: Couldn't access
Thread.inheritableThreadLocals. Reference finalizer threads will
inherit thread local values.

#
I 12-06 03:51PM 37.575

com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
: Failed to start reference finalizer thread. Reference cleanup
will only occur when new references are created.
java.lang.reflect.InvocationTargetException
at com.google.appengine.runtime.Request.process-80815f61de325ab7
(Request.java)
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(Method.java:40)
at
com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.
(FinalizableReferenceQueue.java:124)
at
com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools
$WeakInterningPool.(InterningPools.java:104)
at
com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools.newWeakInterningPool
(InterningPools.java:48)
at
com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.
(ProtocolSupport.java:55)
at com.google.apphosting.api.DatastorePb$GetRequest.freeze
(DatastorePb.java:7660)
at com.google.apphosting.api.DatastorePb$GetRequest$1.
(DatastorePb.java:7595)
at com.google.apphosting.api.DatastorePb$GetRequest.
(DatastorePb.java:7592)
at com.google.appengine.api.datastore.DatastoreServiceImpl.get
(DatastoreServiceImpl.java:93)
at com.google.appengine.api.datastore.DatastoreServiceImpl.get
(DatastoreServiceImpl.java:72)
at com.google.appengine.api.datastore.DatastoreServiceImpl.get
(DatastoreServiceImpl.java:65)
at
org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.get
(RuntimeExceptionWrappingDatastoreService.java:53)
at org.datanucleus.store.appengine.DatastorePersistenceHandler.get
(DatastorePersistenceHandler.java:79)
at org.datanucleus.store.appengine.DatastorePersistenceHandler.get
(DatastorePersistenceHandler.java:91)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject
(DatastorePersistenceHandler.java:441)
at org.datanucleus.state.JDOStateManagerImpl.validate
(JDOStateManagerImpl.java:4263)
at org.datanucleus.ObjectManagerImpl.findObject
(ObjectManagerImpl.java:2444)
at org.datanucleus.jdo.JDOPersistenceManager.getObjectById
(JDOPersistenceManager.java:1671)
at org.datanucleus.jdo.JDOPersistenceManager.getObjectById
(JDOPersistenceManager.java:1767)
at
org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager.getObjectById
(DatastoreJDOPersistenceManager.java:71)
at subscriptionRecord.SubscriptionManagerServlet.getSubscriber
(SubscriptionManagerServlet.java:368)
at subscriptionRecord.SubscriptionManagerServlet.doGet
(SubscriptionManagerServlet.java:66)
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.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
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.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection

[appengine-java] Cache stops returning results under heavy load

2009-12-06 Thread Martin Caslavsky
Hi,

my java app (czumdm) was over quota, so I enabled billing. First
request was processed at 12-06 04:10PM 11.559. App worked correctly --
most request was processed  from JCache (logged as "execute()
skipping") and several request was processed directly (logged as
"execute()").

But as of 12-06 04:15PM 49.099 the method call cache.containsKey(key)
returns false, thus no request is processed from cache!

Cache statistics shows some cached objects (correct) but hits count is
stalled and miss count is increasing (weird).

Greets
Martin

--

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-j...@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.




[appengine-java] Re: Eclipse start server error after update to 1.2.6

2009-12-06 Thread Larry Cable
In eclipse select "Run Configurations..." from the "Run" main menu ...

in the dialog that pops up, you you see a "G" icon in the tree view on
the left and a "list" of configurations
under that, (at least one), select your personal favorite, click on
the"(x) arguements" tab and add the
appropriate config, on my system it's:

-javaagent:"C:\Program Files\eclipse\plugins
\com.google.appengine.eclipse.sdkbundle_1.2.8.v200912040616\appengine-
java-sdk-1.2.8\lib\agent\appengine-agent.jar"

On Dec 6, 3:21 pm, Tahir Akram  wrote:
> Hi guys;
>
> I am getting the same issue as I just upgraded my sdk to 1.2.8.
>
> Where can I find the launch configurations for app engine. Please
> help.
>
> I am getting following exception while running the server.
>
> Unable to locate the App Engine agent. Please use dev_appserver,
> KickStart,  or set the jvm flag: "-javaagent:/lib/agent/
> appengine-agent.jar"
>
> On Oct 20, 3:00 am, Kris Carle  wrote:
>
>
>
> > Hi Keith and Peter,
>
> > This helped me, thanks. It would help others if the release notes of
> > the eclipse pluginhttp://code.google.com/eclipse/mentionedthat
> > upgrading would break existing projects. I was assuming that I had
> > broken something until I remembered that I upgraded recently.
>
> > In case it helps here is the VM argument I used.
>
> > -javaagent:/Applications/eclipse/plugins/
> > com.google.appengine.eclipse.sdkbundle_1.2.6.v200910131704/appengine-
> > java-sdk-1.2.6/lib/agent/appengine-agent.jar
>
> > Thanks,
>
> > -Kris
>
> > On Oct 14, 2:13 pm, Keith Platfoot  wrote:
>
> > > Hi Peter,
> > > As the message indicates, the local development server in App Engine 1.2.6
> > > now requires the use of a Java agent.  If you're using the Google plugin,
> > > this is easy to correct.
>
> > > Open your existing launch configuration.  You should see an error message 
> > > at
> > > the top about the missing Java agent.  Copy and paste the entire 
> > > -javaagent
> > > argument from the error message into the VM Arguments field on the launch
> > > configuration's Arguments tab.  The error should disappear, and you should
> > > then able to save and run the launch configuration successfully.
>
> > > Let me know if you run into any other problems,
>
> > > Keith
>
> > > On Tue, Oct 13, 2009 at 9:12 PM, Peter Liu  wrote:
>
> > > > I update eclipse plugin and downloaded the new SDK, changed the
> > > > project settings to use the new SDK, and get this error when starting
> > > > the server. Switching back to 1.2.5 fixes the problem.
>
> > > > Did I missed some steps?
>
> > > > java.lang.RuntimeException: Unable to locate the App Engine agent.
> > > > Please use dev_appserver, KickStart,  or set the jvm flag: "-
> > > > javaagent:/lib/agent/appengine-agent.jar"
> > > >        at
>
> > > > com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInsta­lled
> > > > (DevAppServerFactory.java:102)
> > > >        at
>
> > > > com.google.appengine.tools.development.DevAppServerFactory.createDevAppServ­er
> > > > (DevAppServerFactory.java:77)
> > > >        at
>
> > > > com.google.appengine.tools.development.DevAppServerFactory.createDevAppServ­er
> > > > (DevAppServerFactory.java:38)
> > > >        at com.google.appengine.tools.development.DevAppServerMain
> > > > $StartAction.apply(DevAppServerMain.java:153)
> > > >        at com.google.appengine.tools.util.Parser$ParseResult.applyArgs
> > > > (Parser.java:48)
> > > >        at com.google.appengine.tools.development.DevAppServerMain.
> > > > (DevAppServerMain.java:113)
> > > >        at com.google.appengine.tools.development.DevAppServerMain.main
> > > > (DevAppServerMain.java:89)
> > > > Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/
> > > > development/agent/AppEngineDevAgent
> > > >        at
>
> > > > com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInsta­lled
> > > > (DevAppServerFactory.java:98)
> > > >        ... 6 more
> > > > Caused by: java.lang.ClassNotFoundException:
> > > > com.google.appengine.tools.development.agent.AppEngineDevAgent
> > > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > >        at java.security.AccessController.doPrivileged(Native Method)
> > > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > >        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > > >        ... 7 more- Hide quoted text -
>
> - Show quoted text -

--

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-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 

[appengine-java] problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-06 Thread Larry Cable
I just updated from 1.2.6 to 1.2.8 and my application code has started
failing locally.

I am using task queue's in order to process uploaded files, this
worked in 1.2.6 (although you had
to manually fire the task queue from the _ah admin console)

Now, it is failing under 1.2.8 (as it seems as though it is now
automatically starting the queue)
with the following exception:

Dec 7, 2009 12:08:57 AM org.quartz.core.JobRunShell run
SEVERE: Job default.a7f0abc6-ed81-4fa4-96f1-c09048a99883 threw an
unhandled Exception:
com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 5: http method POST against URL
http://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
timed out.
at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch
(LocalURLFetchService.java:214)
at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
(UrlFetchJob.java:53)
at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
(UrlFetchJob.java:46)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:520)
Dec 7, 2009 12:08:57 AM org.quartz.core.ErrorLogger schedulerError
SEVERE: Job (default.a7f0abc6-ed81-4fa4-96f1-c09048a99883 threw an
exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See
nested exception: com.google.apphosting.api.ApiProxy
$ApplicationException: ApplicationError: 5: http method POST against
URL http://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
timed out.]
at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---
com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 5: http method POST against URL
http://localhost:8080/admin/gae-tasks/upload/csv/irs/processor.task
timed out.
at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch
(LocalURLFetchService.java:214)
at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
(UrlFetchJob.java:53)
at com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute
(UrlFetchJob.java:46)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:520)

it implies that there is some form of timeout occuring ... since the
app code has not changed and is not
apparently getting invoked at all, I am somewhat at loss to know how
to resolve this!

Has anyone else seen these problems?

--

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-j...@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.




[appengine-java] Re: Eclipse start server error after update to 1.2.6

2009-12-06 Thread Tahir Akram
Hi guys;

I am getting the same issue as I just upgraded my sdk to 1.2.8.

Where can I find the launch configurations for app engine. Please
help.

I am getting following exception while running the server.

Unable to locate the App Engine agent. Please use dev_appserver,
KickStart,  or set the jvm flag: "-javaagent:/lib/agent/
appengine-agent.jar"


On Oct 20, 3:00 am, Kris Carle  wrote:
> Hi Keith and Peter,
>
> This helped me, thanks. It would help others if the release notes of
> the eclipse pluginhttp://code.google.com/eclipse/mentioned that
> upgrading would break existing projects. I was assuming that I had
> broken something until I remembered that I upgraded recently.
>
> In case it helps here is the VM argument I used.
>
> -javaagent:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle_1.2.6.v200910131704/appengine-
> java-sdk-1.2.6/lib/agent/appengine-agent.jar
>
> Thanks,
>
> -Kris
>
> On Oct 14, 2:13 pm, Keith Platfoot  wrote:
>
> > Hi Peter,
> > As the message indicates, the local development server in App Engine 1.2.6
> > now requires the use of a Java agent.  If you're using the Google plugin,
> > this is easy to correct.
>
> > Open your existing launch configuration.  You should see an error message at
> > the top about the missing Java agent.  Copy and paste the entire -javaagent
> > argument from the error message into the VM Arguments field on the launch
> > configuration's Arguments tab.  The error should disappear, and you should
> > then able to save and run the launch configuration successfully.
>
> > Let me know if you run into any other problems,
>
> > Keith
>
> > On Tue, Oct 13, 2009 at 9:12 PM, Peter Liu  wrote:
>
> > > I update eclipse plugin and downloaded the new SDK, changed the
> > > project settings to use the new SDK, and get this error when starting
> > > the server. Switching back to 1.2.5 fixes the problem.
>
> > > Did I missed some steps?
>
> > > java.lang.RuntimeException: Unable to locate the App Engine agent.
> > > Please use dev_appserver, KickStart,  or set the jvm flag: "-
> > > javaagent:/lib/agent/appengine-agent.jar"
> > >        at
>
> > > com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
> > > (DevAppServerFactory.java:102)
> > >        at
>
> > > com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
> > > (DevAppServerFactory.java:77)
> > >        at
>
> > > com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer
> > > (DevAppServerFactory.java:38)
> > >        at com.google.appengine.tools.development.DevAppServerMain
> > > $StartAction.apply(DevAppServerMain.java:153)
> > >        at com.google.appengine.tools.util.Parser$ParseResult.applyArgs
> > > (Parser.java:48)
> > >        at com.google.appengine.tools.development.DevAppServerMain.
> > > (DevAppServerMain.java:113)
> > >        at com.google.appengine.tools.development.DevAppServerMain.main
> > > (DevAppServerMain.java:89)
> > > Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/
> > > development/agent/AppEngineDevAgent
> > >        at
>
> > > com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled
> > > (DevAppServerFactory.java:98)
> > >        ... 6 more
> > > Caused by: java.lang.ClassNotFoundException:
> > > com.google.appengine.tools.development.agent.AppEngineDevAgent
> > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > >        at java.security.AccessController.doPrivileged(Native Method)
> > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > >        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > >        ... 7 more

--

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-j...@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.




[appengine-java] Re: Persisting class hierarchies

2009-12-06 Thread djd
Thank you very much for your replies guys, for now that did not help a
lot, but I will try to simplify my model. BTW Ikai, great work with
GAE :)
As far as DAOs are concerned, yes that is what I was saying (for the
considered example, have JungleAnimalDAO which would update only the
'breakfast' field,
and AnimalDAO which would update all its fields).

I will try to simplify the model (and possibly use some boiler plate
code, stop being lazy and create some DTOs)
Thanks again,
Regards,
Alex

--

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-j...@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.




[appengine-java] Re: JAI working in JAE?

2009-12-06 Thread moissinac
After a first try:
- JAI has several flavour; one generic and a lot of specific binaries,
each optimized for a specific target; so, with GAE, the only one which
can be used is the generic non optimized version, because we must
ignore what is the target In GAE
- a simple sample from the documentation uses
java.awt.image.renderable.ParameterBlock to communicate parameters to
an image processing method, but
"java.awt.image.renderable.ParameterBlock is not supported by Google
App Engine's Java runtime  environment"; so, it seems to eliminate all
parts of JAI which use ParameterBlock

To follow...

--

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-j...@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.




[appengine-java] Is there an api to retrieve the

2009-12-06 Thread Stevko
Is there an api, property, or environment variable that would allow
for the retrieval of the Application Identifier?
Specifically the name listed under the My Applications left most
column.

--

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-j...@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.




[appengine-java] Re: Random App Engine errors

2009-12-06 Thread Jorge
> > Are these still occurring? What are your application IDs?

Here is another random error. I get a few of these every day. And the
JSP is quite simple, it is mean to be touched periodically from a
client in order to keep the app warm:

#
12-05 11:04PM 33.018 /keepalive.jsp 200 4048ms 175cpu_ms 40api_cpu_ms
0kb Lynx/2.8.5rel.4 libwww-FM/2.14,gzip(gfe)
See details

75.125.202.50 - - [05/Dec/2009:23:04:37 -0800] "GET /keepalive.jsp
HTTP/1.1" 200 40 - "Lynx/2.8.5rel.4 libwww-FM/2.14,gzip(gfe)"
"wcondominios.appspot.com"

#
E 12-05 11:04PM 37.048

org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext:
Exception initializing page context
com.google.appengine.api.datastore.DatastoreTimeoutException: Unknown
at
com.google.appengine.api.datastore.DatastoreApiHelper.translateError
(DatastoreApiHelper.java:42)
at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
(DatastoreApiHelper.java:60)
at com.google.appengine.api.datastore.DatastoreServiceImpl$2.run
(DatastoreServiceImpl.java:173)
at
com.google.appengine.api.datastore.TransactionRunner.runInTransaction
(TransactionRunner.java:30)
at com.google.appengine.api.datastore.DatastoreServiceImpl.put
(DatastoreServiceImpl.java:161)
at com.google.appengine.api.datastore.DatastoreServiceImpl.put
(DatastoreServiceImpl.java:141)
at com.google.appengine.api.datastore.DatastoreServiceImpl.put
(DatastoreServiceImpl.java:133)
at com.google.apphosting.runtime.jetty.SessionManager.createSession
(SessionManager.java:333)
at com.google.apphosting.runtime.jetty.SessionManager
$AppEngineSession.(SessionManager.java:135)
at com.google.apphosting.runtime.jetty.SessionManager.newSession
(SessionManager.java:265)
at com.google.apphosting.runtime.jetty.SessionManager.newSession
(SessionManager.java:50)
at org.mortbay.jetty.servlet.AbstractSessionManager.newHttpSession
(AbstractSessionManager.java:413)
at org.mortbay.jetty.Request.getSession(Request.java:1005)
at org.mortbay.jetty.Request.getSession(Request.java:977)
at org.apache.jasper.runtime.PageContextImpl._initialize
(PageContextImpl.java:147)
at org.apache.jasper.runtime.PageContextImpl.initialize
(PageContextImpl.java:122)
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext
(JspFactoryImpl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.access$000
(JspFactoryImpl.java:37)
at org.apache.jasper.runtime.JspFactoryImpl
$PrivilegedGetPageContext.run(JspFactoryImpl.java:151)
at
com.google.apphosting.runtime.security.shared.intercept.java.security.AccessController_.doPrivileged
(AccessController_.java:34)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext
(JspFactoryImpl.java:59)
at org.apache.jsp.keepalive_jsp._jspService(keepalive_jsp.java:33)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
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.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
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.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
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 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:239)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(Runti

[appengine-java] Re: Text Search Support for Java

2009-12-06 Thread a.maza


On 4 Dez., 12:04, Raphael André Bauer 
wrote:
> On Fri, Dec 4, 2009 at 11:46 AM, a.maza  wrote:
> > regarding compass:
> 1. Task queues do not work, because tasks might get executed in
> parallel what almost for sure messes up your index
> (http://forum.compass-project.org/message.jspa?messageID=299109#299109)

I just had another thought about (re-occuring) indexing:

Vince Bonfanti's Deferrable (see ) may be helpful

Regards,
andr

--

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-j...@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.




[appengine-java] SDK 1.2.8

2009-12-06 Thread uud ashr
I'm using SDK 1.2.8, update my jar, but why it shows message like this.

 [java] 2009-12-06 19:12:12.825 java[1069:903] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.10
 [java] 
 [java] There is a new version of the SDK available.
 [java] ---
 [java] Latest SDK:
 [java] Release: 1.2.8
 [java] Timestamp: Fri Dec 04 03:27:12 WIT 2009
 [java] API versions: [1.0]
 [java]
 [java] ---
 [java] Your SDK:
 [java] Release: 1.2.6
 [java] Timestamp: Thu Oct 08 00:34:04 WIT 2009
 [java] API versions: [1.0]
 [java]
 [java] ---
 [java] Please visit http://code.google.com/appengine for the latest
SDK.
 [java] 
 [java] Dec 6, 2009 12:12:14 PM
com.google.appengine.tools.development.agent.impl.BlackList initBlackList
* [java] SEVERE: Unable to read a jre library while constructing the
blacklist.* Security restrictions may not be entirely emulated.
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/plugin.jar


Weird thing happens, It tells I'm still using 1.2.6, cannot initBlackList
and shows the SEVERE message.

Any idea?

Regards,
uudashr

--

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-j...@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.




Re: [appengine-java] Re: Failed to startup after ver 1.2.8 update

2009-12-06 Thread Shawn Brown
> Yes its like a official release I can breathe again.
>
> Then move back original question. "How should I teach
> Eclipse of this update?

Can't you just update eclipse?

> Sorry I am writing from japan so Dec-5th is japan time and it means
> Dec-4th US west coast.

Actually I'm in Japan (Tokyo) myself.

Shawn

--

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-j...@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.




[appengine-java] Re: /a/domain.com/ Logic

2009-12-06 Thread Peter Ondruska
Jason, I am interested in the same. Take Google moderator or Google
short links as example.

On Dec 6, 11:24 am, patrick  wrote:
> Hello
>
> I'm trying to build an application wich can be deployed to diffrent
> google apps custmer, and each of them shoud have there own enviorment,
> like gmail, docs, ...
> But i don't like to deploy it to each customer app engine. Is there
> such a funtion?
>
> On 14 Okt., 22:24, "Jason (Google)"  wrote:
>
>
>
> > What are you trying to do exactly? Are you just looking to segment your
> > application for various domains/clients?
> > - Jason
>
> > On Mon, Oct 12, 2009 at 12:37 PM, patrick 
> > wrote:
>
> > > Is there a API or a Function at Google to use this /a/domain.com/
> > > Logic. How Google use it for his APPS applikations?
>
> > > If ther isn't such a function, how is the best way to implement it?
> > > Dose someone have experience?

--

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-j...@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.




[appengine-java] Re: Processing incoming email

2009-12-06 Thread Sam
Appengine team, can someone please post (on the incoming mail docs
page) a full example of processing an incoming email in appengine
1.2.8 including getting the message body and attachment?  Please test
from different mail clients.  Everyone is totally confused here,
especially with the mysterious API "fix" in 1.2.8 that broke all
incoming mail code.  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-j...@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.




[appengine-java] Re: /a/domain.com/ Logic

2009-12-06 Thread patrick

Hello

I'm trying to build an application wich can be deployed to diffrent
google apps custmer, and each of them shoud have there own enviorment,
like gmail, docs, ...
But i don't like to deploy it to each customer app engine. Is there
such a funtion?


On 14 Okt., 22:24, "Jason (Google)"  wrote:
> What are you trying to do exactly? Are you just looking to segment your
> application for various domains/clients?
> - Jason
>
> On Mon, Oct 12, 2009 at 12:37 PM, patrick wrote:
>
>
>
>
>
> > Is there a API or a Function at Google to use this /a/domain.com/
> > Logic. How Google use it for his APPS applikations?
>
> > If ther isn't such a function, how is the best way to implement it?
> > Dose someone have experience?

--

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-j...@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.




[appengine-java] Re: "Any single entity or entity group can only be updated about five times a second."

2009-12-06 Thread Tim Cooper
Thanks Peter for your reply.

In fact, after doing some experimentation, I'm able to answer most of
my own questions, at least unless a Google engineer corrects my
answers:


* What is an "update" exactly?  Is it a call to "pm.makePersistent
()"?  Is it a call to "tx.commit()"?  Is it a call to "pm.flush()"?
Is it an update of a single field in a single Java object?  Is it an
invocation of "doGet()/doPost()"?

tim> If you're not using transactions, then an update seems to mean a
call to "pm.makePersistent()", (or "pm.makePersistentAll()" on objects
within an entity group.)  If you are using transactions, the answer
seems more complicated and I don't know.

* Suppose you want to do multiple updates within the one entity group
within a single Java function.  At what point is the 100ms cost
incurred?   Which function call blocks for the 100ms?
tim> If you're not using transactions, then it's "pm.makePersistent()"
which blocks.  If you are using transactions, then I *think* there's
significant time elapsed in both "pm.makePersistent()" and "tx.commit
()".

* Is it possible to create 900 child entities in an entity group in a
single Java function call, by structuring this "creation of 900
objects" as a single "update"?
tim> Yes, if I use "pm.makePersistentAll()"   (duh!).   I got my
request running extremely quickly, (as quickly as I'd ever expect) by
using "pm.makePersistentAll()".   I passed in a collection:
"ArrayList".I used an ArrayList in order that I
can persist child objects if different types, and also even the head
object, in a single call.

* If I don't use transactions, does this "1-10 updates per second"
limitation go away?
tim> No.   The critical difference is the use of "pm.makePersistentAll
()".   (However, for the record:  it seems that transactions can
somewhat mitigate the mistake of using "pm.makePersistent()" when you
should be using "pm.makePersistentAll()":  for me, it made things run
twice as quick).

--

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-j...@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.




[appengine-java] Re: Datastore statistics wrong

2009-12-06 Thread Peter Ondruska
Sessions are not enabled (and never were enabled).

On Dec 6, 4:26 am, Don Schwarz  wrote:
> Do you have HTTP sessions enabled?  They use datastore entities behind the
> scenes.
>
> On Sat, Dec 5, 2009 at 11:52 AM, Peter Ondruska 
> wrote:
>
>
>
> > I look at datastore statistics and the numbers there are wrong. For
> > all entities reports total number of entities = 248. I have two
> > entities persisted. 1 customer (shown correctly if displayed
> > statistics for customer entity) and 1 invoice (again correctly if
> > statistics for this entity). What are the other 246 entities? I used
> > to delete some but that was days ago.
>
> > --
>
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

--

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-j...@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.