[appengine-java] does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-12 Thread Shawn Brown
Hi,

I used the open-jdk workaround to solve the problems introduced by the
latest apple java sdk update but have a question an Apple engineer
asked me about the following:

http://code.google.com/p/googleappengine/issues/detail?id=4712
http://code.google.com/p/google-web-toolkit/issues/detail?id=6125

does the Google AppEngine or WebToolkit replace the bootclasspath of
the running Java runtime? From the crash reports I've seen, we should
only be failing in native in this way if a couple of new classes we
introduced are not present. I'm not sure how to explain it, but since
the problem appears to be isolated to these Google tools, I can only
speculate that this is the work of JVM wizards who are somehow
replacing our universe with their own.

I don't think AE or GWT do that, do they?

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



[appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread Didier Durand
Hi,

Are you using queued tasks ? This can of error may appear then.

It appears on the dev server when the Task Queue env in not correctly
started.

regards

didier

On Mar 12, 8:03 am, dalchand choudhary dc4...@gmail.com wrote:
 Hi,

 I am using App Engine Locally with eclipse and while operating put on
 datastore using IterableEntity object (datastrore.put(entityList)) I am
 getting this Exception.

 com.google.appengine.api.datastore.DatastoreFailureException: handle 16 not
 found
 at
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:53)
 at
 com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:98)
 at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:69)
 at
 com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:136)
 at
 com.google.appengine.api.datastore.FutureHelper$TxnAwareFuture.get(FutureHelper.java:213)
 at
 com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
 at
 com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
 at
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113)
 at
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110)
 at
 com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
 at
 com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110)

 Please help.

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



Re: [appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread dalchand choudhary
No I am only testing locally using eclipse debugger.



On Sat, Mar 12, 2011 at 3:55 PM, Didier Durand durand.did...@gmail.comwrote:

 Hi,

 Are you using queued tasks ? This can of error may appear then.

 It appears on the dev server when the Task Queue env in not correctly
 started.

 regards

 didier

 On Mar 12, 8:03 am, dalchand choudhary dc4...@gmail.com wrote:
  Hi,
 
  I am using App Engine Locally with eclipse and while operating put on
  datastore using IterableEntity object (datastrore.put(entityList)) I am
  getting this Exception.
 
  com.google.appengine.api.datastore.DatastoreFailureException: handle 16
 not
  found
  at
 
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:53)
  at
 
 com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:98)
  at
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:69)
  at
 
 com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:136)
  at
 
 com.google.appengine.api.datastore.FutureHelper$TxnAwareFuture.get(FutureHelper.java:213)
  at
 
 com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
  at
 
 com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
  at
 
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113)
  at
 
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110)
  at
 
 com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
  at
 
 com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110)
 
  Please help.

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




-- 
Dal Chand Choudhary
Research Engineer
DataResolve Technologies Pvt. Ltd.
Kolkata, India.

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



[appengine-java] Re: GAE on Mac OS X not working on local Jetty

2011-03-12 Thread Stefan
Hi guys,

I seem to be running into the same or a similar problem when trying to run a 
GAE app in dev mode on MacOS. Have you looked in your system.log (e.g. using 
Console.app)? I am getting:

Mar 12 12:29:40 Stefans-MacBook java[1407]: [Java CocoaComponent 
compatibility mode]: Enabled
Mar 12 12:29:40 Stefans-MacBook java[1407]: [Java CocoaComponent 
compatibility mode]: Setting timeout for SWT to 0.10
Mar 12 12:29:45 Stefans-MacBook mds[35]: (Warning) Server: No stores 
registered for metascope kMDQueryScopeComputer
Mar 12 12:29:45 Stefans-MacBook ReportCrash[1409]: Saved crash report for 
java[1407] version 1.0 (1.0) to 
/Users/Stefan/Library/Logs/DiagnosticReports/java_2011-03-12-122945_Stefans-MacBook.crash

In the crash-report file mentioned above I am seeing the following:

Process: java [1362]
Path:   
 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
Identifier:  java
Version: 1.0 (1.0)
Code Type:   X86 (Native)
Parent Process:  eclipse [1242]

Date/Time:   2011-03-12 12:15:57.436 +0100
OS Version:  Mac OS X 10.6.6 (10J567)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x
Crashed Thread:  10  Dispatch queue: com.apple.root.low-priority

(Followed by a bunch of info about different processes.)

I don't really know what to make of this. I have tried launching the GAE 
devmode using an older JRE-version but this does not help. According to 
Apple the EXC_BAC_ACCESS / KERN_PROTECTION_FAILURE:

 This is caused by the thread trying to write to read-only memory. This is 
always caused by a data access. [1]

I am running Snow Leopard with the most recent Java Update and the most 
recent GAE SDK.

Anybody else got any thoughts in this?

Stefan


[1] 
http://developer.apple.com/library/mac/#technotes/tn2004/tn2123.html#SECCRASHLOGBASIC

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



[appengine-java] Re: GAE on Mac OS X not working on local Jetty

2011-03-12 Thread Stefan
Just found another thread about this error which seems to have solution for 
this problem (I haven't tried it yet): 

http://code.google.com/intl/de-DE/appengine/forum/java-forum.html?place=topic%2Fgoogle-appengine-java%2FWiImnzVb9Fo%2Fdiscussion

I suggest we continue over there.

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



[appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread Didier Durand
Another try: did you start the local ds like said in
http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Datastore_Tests
?

regards

didier

On Mar 12, 11:27 am, dalchand choudhary dc4...@gmail.com wrote:
 No I am only testing locally using eclipse debugger.

 On Sat, Mar 12, 2011 at 3:55 PM, Didier Durand durand.did...@gmail.comwrote:







  Hi,

  Are you using queued tasks ? This can of error may appear then.

  It appears on the dev server when the Task Queue env in not correctly
  started.

  regards

  didier

  On Mar 12, 8:03 am, dalchand choudhary dc4...@gmail.com wrote:
   Hi,

   I am using App Engine Locally with eclipse and while operating put on
   datastore using IterableEntity object (datastrore.put(entityList)) I am
   getting this Exception.

   com.google.appengine.api.datastore.DatastoreFailureException: handle 16
  not
   found
   at

  com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:53)
   at

  com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:98)
   at
  com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:69)
   at

  com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:136)
   at

  com.google.appengine.api.datastore.FutureHelper$TxnAwareFuture.get(FutureHelper.java:213)
   at

  com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
   at

  com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
   at

  com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113)
   at

  com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110)
   at

  com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
   at

  com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110)

   Please help.

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

 --
 Dal Chand Choudhary
 Research Engineer
 DataResolve Technologies Pvt. Ltd.
 Kolkata, India.

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



Re: [appengine-java] Re: Datastore throwing exception while putting entity.

2011-03-12 Thread dalchand choudhary
I figured out something. This exception comes when I wait at some debug
point while the transaction is on.

Is this some bug or is there a time limit over transaction period ?.

 If so how should I make my application fail safe.


On Sat, Mar 12, 2011 at 6:50 PM, Didier Durand durand.did...@gmail.comwrote:

 Another try: did you start the local ds like said in

 http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Datastore_Tests
 ?

 regards

 didier

 On Mar 12, 11:27 am, dalchand choudhary dc4...@gmail.com wrote:
  No I am only testing locally using eclipse debugger.
 
  On Sat, Mar 12, 2011 at 3:55 PM, Didier Durand durand.did...@gmail.com
 wrote:
 
 
 
 
 
 
 
   Hi,
 
   Are you using queued tasks ? This can of error may appear then.
 
   It appears on the dev server when the Task Queue env in not correctly
   started.
 
   regards
 
   didier
 
   On Mar 12, 8:03 am, dalchand choudhary dc4...@gmail.com wrote:
Hi,
 
I am using App Engine Locally with eclipse and while operating put on
datastore using IterableEntity object (datastrore.put(entityList))
 I am
getting this Exception.
 
com.google.appengine.api.datastore.DatastoreFailureException: handle
 16
   not
found
at
 
  
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:53)
at
 
  
 com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:98)
at
   com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:69)
at
 
  
 com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:136)
at
 
  
 com.google.appengine.api.datastore.FutureHelper$TxnAwareFuture.get(FutureHelper.java:213)
at
 
  
 com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
at
 
  
 com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
at
 
  
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113)
at
 
  
 com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110)
at
 
  
 com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
at
 
  
 com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110)
 
Please help.
 
   --
   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.
 
  --
  Dal Chand Choudhary
  Research Engineer
  DataResolve Technologies Pvt. Ltd.
  Kolkata, India.

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




-- 
Dal Chand Choudhary
Research Engineer
DataResolve Technologies Pvt. Ltd.
Kolkata, India.

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



[appengine-java] how to create an index in the datastore?

2011-03-12 Thread piero88
Hello everyone, I ask you to help me understand if and how I can create an 
index in the datastore then be used in the query.
Thanks to all

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



Re: [appengine-java] how to create an index in the datastore?

2011-03-12 Thread dalchand choudhary
You can configure datastore-index.xml file so that the entities
automatically get indexed according to your requirement.

On Sat, Mar 12, 2011 at 7:13 PM, piero88 piero.vit...@studenti.unimi.itwrote:

 Hello everyone, I ask you to help me understand if and how I can create an
 index in the datastore then be used in the query.
 Thanks to all

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




-- 
Dal Chand Choudhary
Research Engineer
DataResolve Technologies Pvt. Ltd.
Kolkata, India.

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



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-12 Thread Michael Green
I've had similar issues since the past three days.  Since I was out on 
vacation for the week, I'm fairly certain that it wasn't because of anything 
I changed.  The first symptom was when my warmup requests ate up all of my 
daily quota because I was getting HDEE's all day on Wednesday.  This had 
never happened before.

My first suspicion was a long term memory issue with my app since it had 
been running for a few days.  However, since uploading newer versions, I 
continue to see the same degraded performance.  Since late Tuesday, all 
requests seem to take much longer with a high percentage getting killed due 
to HDEE.

Has something changed on the platform this week?  In the mean time, I'm 
instrumenting for app stats to see if I can get a handle on bottlenecks.

~Michael

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



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-12 Thread Michael Green
For what it's worth.  About the same time, I developed an issue on my dev 
machine, a (Mac), that seems to be related to the recent Java SE Update 4 
release.  There a thread on the issue 
herehttp://code.google.com/appengine/forum/java-forum.html?place=msg%2Fgoogle-appengine-java%2FP6bBEiRB_xQ%2F1stMGk1klSgJ
.

Any chance the newly released Java update could be impacting performance on 
app engine (may be a stretch, but thought I would throw that out).

~Michael

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



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-12 Thread mdt
In case it helps you I'll point out that my strategy of deploying the same 
code under a different appid continues to work, and this morning I switched 
the domain over to the other appid. This new deployment continues to be 
lightning fast. The appid I'm using is not new, but has never been used for 
this app before. I'll also re-emphasize that the new instance has no data in 
the persistent store, while the other one has a little data that it never 
uses (long story).

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



Re: [appengine-java] does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-12 Thread Toby Reyelts
Do you have the contact information for the Apple Engineer?

On Sat, Mar 12, 2011 at 3:38 AM, Shawn Brown big.coffee.lo...@gmail.comwrote:

 Hi,

 I used the open-jdk workaround to solve the problems introduced by the
 latest apple java sdk update but have a question an Apple engineer
 asked me about the following:

 http://code.google.com/p/googleappengine/issues/detail?id=4712
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6125

 does the Google AppEngine or WebToolkit replace the bootclasspath of
 the running Java runtime? From the crash reports I've seen, we should
 only be failing in native in this way if a couple of new classes we
 introduced are not present. I'm not sure how to explain it, but since
 the problem appears to be isolated to these Google tools, I can only
 speculate that this is the work of JVM wizards who are somehow
 replacing our universe with their own.

 I don't think AE or GWT do that, do they?

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



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