[appengine-java] About jsp error
Hi, Recently i have started doing google app engine application.I am following the steps to develop my first application.I am successful in creating the project and execute it with out a jsp file . When i tried to include a jsp file in WAR folder it is showing an error , but no syntax errors in the file.Just it is showing an cross mark on the file. i have deleted the index.html page and added the following code in the web.xml page ,still i am getting the same error welcome-file-list welcome-fileguestbook.jsp/welcome-file /welcome-file-list Thanks, sreekanth -- 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 Bulk Upload in Java
The demo was too good.. Going to try now .. Thanks alot On Wed, Aug 25, 2010 at 11:28 PM, Ikai L (Google) ika...@google.com wrote: Check out this blog post I threw together: http://ikaisays.com/2010/08/11/using-the-app-engine-mapper-for-bulk-data-import/ This shows how to use the Python bulkloader with Java: http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ On Wed, Aug 25, 2010 at 12:43 AM, Sree ... gattasrika...@gmail.comwrote: How do I do bulk uploads in JAVA using Eclipse?? I saw this http://code.google.com/appengine/docs/python/tools/uploadingdata.html but this has to do with py Is there any alternative for it? -- -Thanks -Srikanth.G -Hyderabad -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- -Thanks -Srikanth.G -Hyderabad -- 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] How to Bulk Upload in Java
How do I do bulk uploads in JAVA using Eclipse?? I saw this http://code.google.com/appengine/docs/python/tools/uploadingdata.html but this has to do with py Is there any alternative for it? -- -Thanks -Srikanth.G -Hyderabad -- 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] Using BlobService doesn't work after deployment?
Hi Am working on a small sample project using GWT+GAE/J, where the app allows each user to upload their own display picture. This works on local client but once I upload it to online and open the app, it shows the error message as follows Uncaught exception from servlet com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.appengine.runtime.Request.process-8a690d78b7b79704(Request.java) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1025) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java:688) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046) at com.google.net.rpc.RPC.internalFinish(RPC.java:2038) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:2352) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:1279) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java:474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:103) at com.google.net.async.GlobalEventRegistry$2.runLoop(GlobalEventRegistry.java:95) at com.google.net.async.LoopingEventDispatcher$EventDispatcherThread.run(LoopingEventDispatcher.java:384) Unexpected exception from servlet: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. Is that really a limitation? There is no minimum free quota available for users? -- -Thanks -Srikanth.G -Hyderabad -- 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] Using BlobService doesn't work after deployment?
Thanks for clarification. *You will not be billed for low usage;* That means the 1GB of blob store will still be available for me for free right? Only beyond that 1GB i ll get charged. Am I right? On Wed, Aug 25, 2010 at 11:33 PM, Ikai L (Google) ika...@google.com wrote: Blobstore requires a billing enabled application. There is no free quota for this feature. You will not be billed for low usage; you just need to have it on. On Wed, Aug 25, 2010 at 4:35 AM, Sree ... gattasrika...@gmail.com wrote: Hi Am working on a small sample project using GWT+GAE/J, where the app allows each user to upload their own display picture. This works on local client but once I upload it to online and open the app, it shows the error message as follows Uncaught exception from servlet com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.appengine.runtime.Request.process-8a690d78b7b79704(Request.java) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1025) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java:688) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046) at com.google.net.rpc.RPC.internalFinish(RPC.java:2038) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:2352) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:1279) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java:474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:103) at com.google.net.async.GlobalEventRegistry$2.runLoop(GlobalEventRegistry.java:95) at com.google.net.async.LoopingEventDispatcher$EventDispatcherThread.run(LoopingEventDispatcher.java:384) Unexpected exception from servlet: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. Is that really a limitation? There is no minimum free quota available for users? -- -Thanks -Srikanth.G -Hyderabad -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- 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] How to send data back to client side code?
Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- 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] How to send data back to client side code?
Yes.. after some google search i came to know abt that only http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Serializable_Objects http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Serializable_ObjectsBut am poor little developer so can you please help me out with a small example say my class looks like thishttp://code.google.com/appengine/docs/java/datastore/dataclasses.html#Child_Objects_and_Relationships On Sat, Aug 14, 2010 at 1:35 AM, Alessandro Barbosa alessandro.barb...@gmail.com wrote: Hi, this is a GWT issue. The model class Employee must implements the com.google.gwt.user.client.rpc.IsSerializable interface in order to be able to be transcripted between server and client. Best Regards, Alessandro 2010/8/13 Sree ... gattasrika...@gmail.com Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- 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.comgoogle-appengine-java%2bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- 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] Need help with Datastore
I want to create a simple datebase for my app. But am having some trouble. I created a class Employee.java it has got @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent() private String empID; @Persistent private String firstName; So when ever I creates new entry in datastore, and i checked in the browser... it shows one additional column as below *KeyID/Name empID firstName* So how is this ID/Name column is created... Its always increasing a by one number.. Say 1 2 3 4 and so on. So is there any way I can customize that column. That means instead of every time i create a empID programmaticly I would rather want that ID/Name column to be updated in way i want. ie say like company_name_1, company_name_2 and so on. -- -Thanks -Srikanth.G -Hyderabad -- 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: Policy prevented put operation
sorry it was exceeding the 1mb limit. -- 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: Policy prevented put operation
sorry it was exceeding 1mb limit. -- 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] Policy prevented put operation
memcache was working fine 4 days back. but after clear the cache by calling clear() method. the cache is not working. the following message is displayed in the log:- com.google.appengine.api.memcache.LogAndContinueErrorHandler handleServiceError: Service error in memcache com.google.appengine.api.memcache.MemcacheServiceException: Memcache put: exception setting 1 key (dependentsdataad...@insure.com) to '{5370=[com.entity.depende...@9bbe8c, com.entity.depende...@a7bdab, com.entity.depende...@1ad2bfb, com.entity.depende...@127507e], 14099=[com.entity.depende...@ebbf0d, com.entity.depende...@d62035, com.entity.depende...@dafa36, com.entity.depende...@c677a7, com.entity.depende...@19cce36], 8418=[com.entity.depende...@1c228c, com.entity.depende...@acb63d, com.entity.depende...@d56991, com.entity.depende...@15cebc], 8417=[com.entity.depende...@90dbfc, com.entity.depende...@14aa61, com.entity.depende...@1d6a276], 8741=[com.entity.depende...@2e9626, com.entity.depende...@7ec591], 16400=[com.entity.depende...@871341, com.entity.depende...@cc5148], 5373=[com.entity.depende...@128fd34, com.entity.depende...@1073e42, com.entity.depende...@1cf3877, com.entity.depende...@1f548ea], 3479=[com.entity.depende...@1e5e369, com.entity.depende...@66386e, com.entity.depende...@11f321c, com.entity.depende...@1ccf12f, com.entity.depende...@a0a721], 5372=[com.entity.depende...@5df7c6, com.entity.depende...@10d0df0], 5371=[com.entity.depende...@11a8d64, com.entity.depende...@9fc304, com.entity.depende...@16daf20, com.entity.depende...@98229], 7349=[com.entity.depende...@12f65c1, com.entity.depende...@18ec2d7], 15158=[com.entity.depende...@cbeac9, com.entity.depende...@10049b6, com.entity.depende...@1b6417, com.entity.depende...@18b9edc], 14275=[com.entity.depende...@e5fdad, com.entity.depende...@14c3626, com.entity.depende...@6901ac, com.entity.depende...@1faef0a], 16408=[com.entity.depende...@5138d9, com.entity.depende...@1587c75], 16407=[com.entity.depende...@d26c5f, com.entity.depende...@58ebff, com.entity.depende...@c2c549, com.entity.depende...@1c88831], 5369=[com.entity.depende...@976434, com.entity.depende...@4e2837, com.entity.depende...@1615685], 6865=[com.entity.depende...@197fe9c, com.entity.depende...@bea80e, com.entity.depende...@22102f, com.entity.depende...@14598d4, com.entity.depende...@10db0b3], 14884=[com.entity.depende...@b463fc, com.entity.depende...@14875cd], 12851=[com.entity.depende...@194ec90, com.entity.depende...@1f6aa5f, com.entity.depende...@9d14a9], 14680=[com.entity.depende...@14ad9fb, com.entity.depende...@1c83981], 6498=[com.entity.depende...@255a5c, com.entity.depende...@744f5a, com.entity.depende...@dc10b6, com.entity.depende...@5d3317], 10713=[com.entity.depende...@d68b8d, com.entity.depende...@1daf346, com.entity.depende...@168f2ef], 6496=[com.entity.depende...@4e1a77, com.entity.depende...@4ec632, com.entity.depende...@d4bf7b, com.entity.depende...@1af028b], 10716=[com.entity.depende...@17fcfe1], 6494=[com.entity.depende...@880c2b, com.entity.depende...@151c7ee, com.entity.depende...@13a8ee], 8420=[com.entity.depende...@d637ab, com.entity.depende...@16a8e18, com.entity.depende...@1e3df54], 10718=[com.entity.depende...@1902ab1, com.entity.depende...@1cb4cb5, com.entity.depende...@174748f], 10717=[com.entity.depende...@2470ee, com.entity.depende...@38323f, com.entity.depende...@9ae0a1], 6094=[com.entity.depende...@1147c4c, com.entity.depende...@eabebe], 8214=[com.entity.depende...@43dcca, com.entity.depende...@114739, com.entity.depende...@1e6a407, com.entity.depende...@6efbef], 8213=[com.entity.depende...@1bf110c, com.entity.depende...@1c5f1fb, com.entity.depende...@32a50a], 16005=[com.entity.depende...@3382f, com.entity.depende...@70ca8c], 14870=[com.entity.depende...@11a2c6a, com.entity.depende...@1ca276f, com.entity.depende...@a294ec], 8212=[com.entity.depende...@5a7141, com.entity.depende...@10b8552, com.entity.depende...@10b0f6f], 16006=[com.entity.depende...@16fd757, com.entity.depende...@ba6b1b], 14871=[com.entity.depende...@26c417, com.entity.depende...@d293b7, com.entity.depende...@1cce612], 14280=[com.entity.depende...@62681b, com.entity.depende...@cf16d9, com.entity.depende...@26b13c, com.entity.depende...@4eaead], 8211=[com.entity.depende...@1dd153b, com.entity.depende...@12b520a], 14679=[com.entity.depende...@1bd702e, com.entity.depende...@3bc723, com.entity.depende...@1d141bb, com.entity.depende...@1c3e166], 8730=[com.entity.depende...@1a7b1af, com.entity.depende...@504887], 8025=[com.entity.depende...@101e5eb, com.entity.depende...@1bbc3eb], 7346=[com.entity.depende...@dcb012, com.entity.depende...@9281bb, com.entity.depende...@30cbae, com.entity.depende...@17196e4], 12867=[com.entity.depende...@1d56ac0, com.entity.depende...@f30fce, com.entity.depende...@1fb9d58], 7347=[com.entity.depende...@1eafdce, com.entity.depende...@2f5a2], 15141=[com.entity.depende...@a52c57, com.entity.depende...@ff208a, com.entity.depende...@18c0a1, com.entity.depende...@789566,
[appengine-java] Re: File Uploads
Okey! Please Ignore I got all the answers from the documentation :) thanks alot On Sun, Aug 1, 2010 at 1:32 AM, SreekanthGatta gattasrika...@gmail.comwrote: Hi I am new to Google App Engine and trying out various stuff.. I need some clarification. In My app, I need the user to submit a profile pic, so How do I handle this? Can I store the images uploaded by users under myapp/images/blahblah folder? instead of storing in as blob Thanks in advance -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- 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] Policy prevented put operation
the following exception is logged when data is put into the cache. com.google.appengine.api.memcache.stdimpl.GCacheException: Policy prevented put operation the which is stored in the cache MapString, ListDependents dependentMap = new HashMapString, ListDependents(); in the map key will be an ID and for each ID there will be 0 or more objects (max 5 objects) the map size is dependentMap.size() = 1500 approximately what are the limitation to store data in the cache ? -- 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] Request was aborted after waiting too long to attempt to service your request.
application id: su-raksha version: appengine-java-sdk-1.3.5 precompilation enabled what is the reason for the below message in the log ? Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. response will be Error: Server Error please explain the cause and how to solve it ? -- 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: Adding new property for an existing entity.
thank you. -- 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] Unable to update
i am using appengine-java-sdk-1.3.0. when i deploy the application, i am getting the following exception Creating staging directory Scanning for jsp files. Compiling jsp files. Compiling java files. Scanning files on local disk. Scanned 250 files. Initiating update. java.net.SocketException: No buffer space available (maximum connections reached?): connect Debugging information may be found in C:\Documents and Settings\. \Local Settings\Temp\appengine-deploy4954.log Unable to update: java.net.SocketException: No buffer space available (maximum connections reached?): connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.init(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream (Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect (ServerConnection.java:333) at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:127) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:522) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:339) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:111) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy (AppEngineBridgeImpl.java:271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace (DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) why ? -- 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] Sending HTTPS request.
how to send request to 'https' urls in google app engine ? how to send authentication details and body in java.net.HttpURLConnection ? i tried using java.net api code as shown below. but i got the exception :- java.security.AccessControlException: access denied (java.net.NetPermission setDefaultAuthenticator) import java.net.Authenticator; import java.net.HttpURLConnection; import java.net.InetAddress; import java.net.PasswordAuthentication; import java.net.URL; public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { Authenticator.setDefault(new MyAuthenticator()); try { URL url = new URL(https://..;); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod(GET); System.out.println(Response Code : + connection.getResponseCode ()); System.out.println(Response Message :\n + connection.getResponseMessage()); if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { //OK } else { //Error code } } catch (Exception e) { } } class MyAuthenticator extends Authenticator { protected PasswordAuthentication getPasswordAuthentication() { String username = username; String password = password; return new PasswordAuthentication(username, password.toCharArray ()); } } -- 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=.
[appengine-java] how to handle multipart data in struts 2 ?
I am unable to get the multipart data (file etc.) from jsp/request (post). appengine sdk has been updated to 1.2.5. whereas the same can be achieved through servlets as described in How do I handle multipart form data? or How do I handle file uploads to my app? in faq section. http://code.google.com/appengine/kb/java.html#fileforms how to achieve the above said through struts 2 action ? when I try to get the file through the struts 2 action the following exception is thrown : java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\SRK~1.001\LOCALS~1\Temp \Jetty_127_0_0_1_8180_war-aref0x \upload_7ecc51fe_12383ed82aa__8000_.tmp write) at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323) at java.security.AccessController.checkPermission (AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) at java.lang.SecurityManager.checkWrite(SecurityManager.java:962) at java.io.FileOutputStream.(FileOutputStream.java:169) at java.io.FileOutputStream.(FileOutputStream.java:131) at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached (DeferredFileOutputStream.java:123) at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold (ThresholdingOutputStream.java:220) at org.apache.commons.io.output.ThresholdingOutputStream.write (ThresholdingOutputStream.java:127) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:101) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64) at org.apache.commons.fileupload.FileUploadBase.parseRequest (FileUploadBase.java:362) at org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse (JakartaMultiPartRequest.java:90) at org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper. (MultiPartRequestWrapper.java:73) at org.apache.struts2.dispatcher.Dispatcher.wrapRequest (Dispatcher.java:698) at org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest (FilterDispatcher.java:330) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:390) 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 com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) 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:313) 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.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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) --~--~-~--~~~---~--~~ 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] Performance optimization of query from datastore (cpu_ms/api_cpu_ms showing red)
Related to post: http://groups.google.com/group/google-appengine-java/browse_thread/thread/f3fa2b04d2fa6a3 In a test app I have created, I am able to query only 50 rows per request (for 1 entity with 10 properties only) from the datastore by using low-level api without getting any warnings for cpu_ms / api_cpu_ms usage. However if I try to query more rows (again only 1 entity being inserted), the cpu gets used for more than 1s thereby generating a warning or error from GAE. Stats from GAE log: To retrieve 50 records - /viewData.action?offset=0range=50 200 142ms 861cpu_ms 678api_cpu_ms (everything ok) To retrieve 100 records - /viewData.action?offset=0range=100 200 261ms 1653cpu_ms 1338api_cpu_ms (cpu_ms / api_cpu_ms in red) Is there a more performant way to query the datastore for more records in one request? Thanks in advance. P.S: This is a test app and billing is not enabled. Code in servlet: Query query = persistenceManager.newQuery(SELECT FROM + DetailsBean.class.getName()); query.setOrdering(crDate asc); query.setRange(offset, range); data = (ListDetailsBean) query.execute(); Code of Entity bean: package com.pojo; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.NotPersistent; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable(identityType = IdentityType.APPLICATION) public class DetailsBean implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long slno; @Persistent private long column1; @Persistent private String column2; @Persistent private double column3; @Persistent private double column4; @Persistent private double column5; @Persistent private float column6; @Persistent private double column7; @Persistent private double column8; @Persistent private Date crDate; @Persistent private Date modDate; @NotPersistent private String message; @NotPersistent private int n; @NotPersistent private long offset; @NotPersistent private long range; @NotPersistent private List data; public DetailsBean() { } public DetailsBean(long v1, String v2, double v3, double v4, double v5, float v6, double v7, double v8) { this.column1 = v1; this.column2 = v2; this.column3 = v3; this.column4 = v4; this.column5 = v5; this.column6 = v6; this.column7 = v7; this.column8 = v8; Date now = new Date(); this.crDate = now; this.modDate = now; } public Long getSlno() { return slno; } public void setSlno(Long slno) { this.slno = slno; } public long getColumn1() { return column1; } public void setColumn1(long column1) { this.column1 = column1; } public String getColumn2() { return column2; } public void setColumn2(String column2) { this.column2 = column2; } public double getColumn3() { return column3; } public void setColumn3(double column3) { this.column3 = column3; } public double getColumn4() { return column4; } public void setColumn4(double column4) { this.column4 = column4; } public double getColumn5() { return column5; } public void setColumn5(double column5) { this.column5 = column5; } public float getColumn6() { return column6; } public void setColumn6(float column6) { this.column6 = column6; } public double getColumn7() { return column7; } public void setColumn7(double column7) { this.column7 = column7; } public double getColumn8() { return column8; } public void setColumn8(double column8) { this.column8 = column8; } public Date getCrDate() { return crDate; } public void setCrDate(Date crDate) {
[appengine-java] Performance optimization of insert into datastore (cpu_ms/api_cpu_ms showing red)
In a test app I have created, I am able to insert only 2 rows per request (for 1 entity with 10 properties only) into the datastore by using low-level api without getting any warnings for cpu_ms / api_cpu_ms usage. However if I try to insert 3 rows or more (again only 1 entity being inserted), the cpu gets used for more than 1s thereby generating a warning or error from GAE. Stats from GAE log: For inserting 2 records - /insert.do 200 77ms 655cpu_ms 643api_cpu_ms (everything ok) For inserting 3 records - /insert.do 200 134ms 979cpu_ms 964api_cpu_ms (yellow warning) For inserting 10 records - /insert.do 200 178ms 3249cpu_ms 3216api_cpu_ms (red warning) How to optimize the ‘cpu_ms and api_cpu_ms’ usage? Can GAE perform only as many operations as 2 inserts into datastore if we want to keep within the warning levels? Can you please provide some feedback as to whether I am doing anything wrong in code or have not used a good practice to achieve better performance. Thanks in advance. Code in servlet (parsing and split operations have been benchmarked and they are not causing any adverse impact on performance): Pattern p1 = Pattern.compile(,); // created as servlet instance variable public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); ListEntity entity = new ArrayListEntity(); for (int i = 0; i n; i++) { String[] record = p1.split(1,tester,1.0,1.0,1.0,1.0,1.0,1.0); data1 = Long.parseLong(record[0]); data2 = record[1]; data3 = Double.parseDouble(record[2]); data4 = Double.parseDouble(record[3]); data5 = Double.parseDouble(record[4]); data6 = Double.parseDouble(record[5]); data7 = Double.parseDouble(record[6]); data8 = Float.parseFloat(record[7]); Entity e = new Entity(DetailsBean.class.getSimpleName()); e.setProperty(column1, i); e.setProperty(column2, data2); e.setProperty(column3, i + data3); e.setProperty(column4, i + data4); e.setProperty(column5, i + data5); e.setProperty(column6, i + data6); e.setProperty(column7, i + data7); e.setProperty(column8, i + data8); e.setProperty(crDate, new Date()); e.setProperty(modDate, new Date()); entity.add(e); } datastore.put(entity); } catch (Exception e) { e.printStackTrace(); } finally { persistenceManager.close(); } } Entity bean code: package com.pojo; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.NotPersistent; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable(identityType = IdentityType.APPLICATION) public class DetailsBean implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long slno; @Persistent private long column1; @Persistent private String column2; @Persistent private double column3; @Persistent private double column4; @Persistent private double column5; @Persistent private float column6; @Persistent private double column7; @Persistent private double column8; @Persistent private Date crDate; @Persistent private Date modDate; @NotPersistent private String message; @NotPersistent private int n; @NotPersistent private long offset; @NotPersistent private long range; @NotPersistent private List data; public DetailsBean() { } public DetailsBean(long v1, String v2, double v3, double v4, double v5, float v6, double v7, double v8) { this.column1 = v1; this.column2 = v2;