[appengine-java] Re: java.lang.OutOfMemoryError: PermGen space
You appear to be encountering this problem in hosted mode. If you are using a Sun (ahem I mean oracle) JVM you can use -XX:MaxPermSize to increase the perm gen space. From your stack trace you also seem to be using jrebel (com.zeroturnaround.javarebel). This library may be introducing a bit of overhead in the perm gen space that helps you encounter this issue more easily. Hot deploy is fun though. HTH - Eric -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/fOSZhh-HhT4J. 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: java.lang.OutOfMemoryError: PermGen space
...and by hosted mode I mean the development server (not on the cloud). -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/NlxGNE_JKA0J. 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] Prospective search exception
Hi all, I've tried the new prospective search api today. It was alright to subscribe, unsubscribe, listSubscriptions, getSubscription. But when trying to list topics, below error message came out. I'm not sure whether it is a bug of the API or my problem. Is there anyone who knows something about this issue? Thanks. Uncaught exception from servlet com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 1: app s~appid does not have permission to list topics for app appid at com.google.apphosting.runtime.ApiProxyImpl $AsyncApiFuture.rpcFinished(ApiProxyImpl.java:503) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher $1.runInContext(RpcStub.java:1050) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:455) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: 335) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: 325) at com.google.tracing.TraceContext $TraceContextRunnable.run(TraceContext.java:453) at com.google.net.rpc.RpcStub $RpcCallbackDispatcher.rpcFinished(RpcStub.java:1071) at com.google.net.rpc.RPC.internalFinish(RPC.java:2240) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java: 2339) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java: 1269) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 328) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 299) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 856) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 222) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 116) at com.google.net.async.GlobalEventRegistry $2.runLoop(GlobalEventRegistry.java:95) at com.google.net.async.LoopingEventDispatcher $EventDispatcherThread.run(LoopingEventDispatcher.java:385) Eric -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/9bqv21wki44J. 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] Failed to compile jsp files.
My project works fine in local server. But when I upload my project to GAE, there is an error: How to solve the problem Regards Creating staging directory Scanning for jsp files. Compiling jsp files. com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files. 2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp \appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache\jsp \match_jsp.java [javac] Compiling 1 source file 2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) ... 8 more Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more --- Nested Exception --- java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more 2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric \LOCALS~1\Temp\appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache \jsp\match_jsp.java classpath=/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api-labs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api-stubs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-local- runtime.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\appengine- local-runtime-shared.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib \shared\el-api.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\jsp
[appengine-java] unable to update app:Failed to compile jsp files
I got problem when I deploy my project to Google App Engine. The project works ok on localhost. When deploying, there was a error message I post below: How to solve it? Creating staging directory Scanning for jsp files. Compiling jsp files. com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files. 2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp \appcfg1263523209940719896.tmp\WEB-INF\classes\org\apache\jsp \match_jsp.java [javac] Compiling 1 source file 2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) ... 8 more Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more --- Nested Exception --- java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more 2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric \LOCALS~1\Temp\appcfg1263523209940719896.tmp\WEB-INF\classes\org\apache \jsp\match_jsp.java classpath=/E:/eclipse/plugins/ com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811/ appengine-java-sdk-1.4.2/lib/impl/appengine-api-labs.jar;/E:/eclipse/ plugins/com.google.appengine.eclipse.sdkbundle. 1.4.2_1.4.2.v201102111811/appengine-java-sdk-1.4.2/lib/impl/appengine- api-stubs.jar;/E:/eclipse/plugins/ com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811/ appengine-java-sdk-1.4.2/lib/impl/appengine-api.jar;/E:/eclipse/
[appengine-java] Failed to compile jsp files.
I use the new version of sdk1.4.3. The problem still unsolved. here is the error message Creating staging directory Scanning for jsp files. Compiling jsp files. com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files. 2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp \appcfg6893966832847615321.tmp\WEB-INF\classes\org\apache\jsp \match_jsp.java [javac] Compiling 1 source file 2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) ... 8 more Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more --- Nested Exception --- java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java: 226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.JspC.processFile(JspC.java:1192) at org.apache.jasper.JspC.execute(JspC.java:1341) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ?? at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more 2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler generateClass 嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric \LOCALS~1\Temp\appcfg6893966832847615321.tmp\WEB-INF\classes\org\apache \jsp\match_jsp.java classpath=/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api-labs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api-stubs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine- api.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-local- runtime.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\appengine- local-runtime-shared.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib \shared\el-api.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\jsp \repackaged-appengine-ant-1.7.1.jar;D:\java_sdk\appengine-java-
[appengine-java] Re: Question About Loading HTML into a Frame
Your question, although not the answer that worked, got me to thinking about whether the html file itself was properly defined, because before I used OpenOffice to create the html document and this time I used Google Docs to create the html document, and that was the problem. For whatever very strange reason, app engine won't load an html page if I create on google docs and then download it into the war. On the other hand, when I created the document again using OpenOffice, it worked. Thank you for hinting at the definition of the file itself even if this didn't turn out to be the problem. On Jan 2, 3:50 am, Didier Durand durand.did...@gmail.com wrote: Hi, Is you Summary.html properly defined as a static file ? See how-to inhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat If not defined directly (or via a containing directory), GAE won't be able to serve it to your application. Hence the 404. regards didier On Jan 1, 5:33 pm, Eric Atkinson atki4...@gmail.com wrote: The App Engine Manual says that any file I put in the WAR (or subdirectory) is automatically known to the app, so why, when I use the following code... Frame frame = new Frame(/StrategicInternationalSystems/war/WEB-INF/ pages/Summary.html); dockLayoutPanel.add(frame); ...does it tell me: HTTP ERROR 404 Problem accessing /StrategicInternationalSystems/war/WEB-INF/pages/ Summary.html. Reason: NOT_FOUND I think it has something to do with the fact that I started coding the app (using a new project) using GWT Designer. Why? Because when it was just App Engine and the GWT Toolkit before, it executed this code fine. I'm at my wit's end; please help understand why this code no longer works because of using GWT Designer (I think). -- 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] Question About Loading HTML into a Frame
The App Engine Manual says that any file I put in the WAR (or subdirectory) is automatically known to the app, so why, when I use the following code... Frame frame = new Frame(/StrategicInternationalSystems/war/WEB-INF/ pages/Summary.html); dockLayoutPanel.add(frame); ...does it tell me: HTTP ERROR 404 Problem accessing /StrategicInternationalSystems/war/WEB-INF/pages/ Summary.html. Reason: NOT_FOUND I think it has something to do with the fact that I started coding the app (using a new project) using GWT Designer. Why? Because when it was just App Engine and the GWT Toolkit before, it executed this code fine. I'm at my wit's end; please help understand why this code no longer works because of using GWT Designer (I think). -- 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 organize the data for different organizations?
Prompt please or give links to documentation about how to GAE for Java to (eg, domains in Google Apps, or by some other factor, such as service identifier, etc.). -- 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] KeyFactory.keyToString format?
Is it safe to assume that the regular expression [a-zA-Z0-9]+ will match any string generated by KeyFactory.keyToString? -- 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: Datastore Statistics vs. Quota
On Tue, Dec 8, 2009 at 1:26 AM, Toby tobias.ro...@sunnymail.mobi wrote: Reading the doc carefully it tells me that indexes are created based on the queries I make. Hence if I never query an entity on a certain property there should be no index. That's not exactly what it says. Only the development servers creates indexes automatically by inserting a few lines in your datastore-indexes-auto.xml. (It doesn't actually create indexes as the development server doesn't need indexes to access data, I believe.) The point of that mechanism is to make it easy for you to know which indexes to request on the production appengine: just look in the datastore-indexes-auto.xml, and copy the lines that you want from it. If so configured, appcfg.sh will copy the entire content of datastore-indexes-auto.xml to the production server. Also in the app-engine administration there is a menu entry Indexes which only lists two indexes that I am actually using. Now if I understand right per default many more indexes are created if I need them or not. This should be mentioned more clearly because it could help to save a lot of space. That's it. Most of the indexes space is likely to be coming from implicit indexes. Is there an JDO annotation to disable indexes on properties or do I need to disable auto-index? There is: @Persistent @Extension(vendorName = datanucleus, key = gae.unindexed, value=true) private String unindexedString; It's in the doc: http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html -- 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: Datastore Statistics vs. Quota
On Mon, Dec 7, 2009 at 2:20 AM, Toby tobias.ro...@sunnymail.mobi wrote: thank you for your update. In fact I was suspecting the index or other management data. But it is hard to believe that it leads to such a big overhead. I mean it is enormous to have an index that is 10 times more than the actual data, don't you think so? If you look at the article, it doesn't seem that out of place. Remember that by default, two indexes are built for every property, EntitiesByProperty ASC and EntitiesByProperty DESC. If you look at the number of fields in the corresponding tables (see article), and if your entity has 5-10 fields, I would not be surprised by such an overhead. Marking properties as non-indexable, if you don't need the systematic indexing that Google does, will help save a lot of space. Furthermore in the datastore statistics they already list so called Metadata. It is consuming about 44% of the space. I think that this is the index, is it not? I don't think it is, no. I believe it refers to other kinds of metadata (see article linked earlier in the thread). Index disk space usage is, I believe, nowhere explicit. Eric. -- 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] Nearly doubled CPU usage since december 3rd
On Mon, Dec 7, 2009 at 5:42 AM, SCMSoft scms...@gmail.com wrote: We always used to have ~100ms api cpu_ms, but cpu_ms used to be more like 50ms or so. We added logging on the time of entry and exit of doGet() and there was 58 ms difference in this case. How is it possible to have 210cpu_ms, which is ~100ms more than the api usage, while the request only lasted 58 ms (or 76 ms according to the appengine number)? I cannot tell you why your CPU time seems to have increased, but know that cpu_ms and api_cpu_ms are not using wall-clock milliseconds, but virtual milliseconds, defined for the purpose of billing. They more or less correspond to milliseconds on an old-ish machine (some kind of Intel 1.2GHz, IIRC) -- and they depend on the type of request. They are essentially an abstract unit. The app engine documentation gives more detail: http://code.google.com/appengine/docs/quotas.html Google might have been better inspired to not label this unit millisecond. Disney dollars are meant to confuse you -- that might not have been a good example to follow. P.S. Turns out, Disney dollars are convertible and pegged to the USD. Linden dollars, then. -- 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: Datastore Statistics vs. Quota
On Sat, Dec 5, 2009 at 9:29 AM, Toby tobias.ro...@sunnymail.mobi wrote: I know that they are updated at least once a day. In my case the data volume has not changed for quite some time. And the discrepancy is really huge. I mean 50MB to 500MB. So maybe my datastore contains stuff that does not apear in the statistics. Or the statistics are wrong. I wonder if other people find the same ratio. Is there any other way to get details on the data consumption of the datastore. Do e.g. log-files count into it or other data? The difference is likely coming from the indexes, both implicit indexes that Google builds systematically, and indexes that you have requested explicitly. When asked about the lack of visibility into indexes disk usage, during the IRC office hours, the Google people said they were working on improving that, and the admin console will likely give you more details about where that extra space is going. It will be very useful, as you can mark properties to be non-indexable, and thus save space. They also talked about an article they will publish soon that gives enough details on how indexes are built that you can at least predict the size of your indexes. -- 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: Datastore Statistics vs. Quota
On Sat, Dec 5, 2009 at 10:05 AM, Eric Rannaud eric.rann...@gmail.com wrote: They also talked about an article they will publish soon that gives enough details on how indexes are built that you can at least predict the size of your indexes. There it is: http://code.google.com/appengine/articles/storage_breakdown.html -- 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] Struts 2.1.8 access denied exception
OS: Windows XP IDE: Eclipse w/GAE plugin I'm playing around with GAE and wanted to test it out with Struts2. I've followed the various tutorials and everytime I try to test out my code, I get the following exception when I access my local dev site: java.security.AccessControlException: access denied (java.io.FilePermission jar:file:\C:\projects-java\Struts2\war\WEB-INF \lib\struts2-core-2.1.8.jar read) 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:151) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.util.zip.ZipFile.init(ZipFile.java:109) at java.util.jar.JarFile.init(JarFile.java:133) at java.util.jar.JarFile.init(JarFile.java:70) at com.opensymphony.xwork2.util.FileManager $JarEntryRevision.needsReloading(FileManager.java:264) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading (FileManager.java:70) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload (XmlConfigurationProvider.java:324) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload (StrutsXmlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload (ConfigurationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer (Dispatcher.java:819) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:362) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter (ActionContextCleanUp.java:102) 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:342) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) I've seen others with the issue, but no resolution yet. Any ideas? --~--~-~--~~~---~--~~ 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] Bulk delete behind RPC
Hi, I'm trying to delete some unwanted data from my datastore and found some code using the DatastoreService that I modified to delete as many entries as possible in 10 seconds: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(PostalCodes); long starttime = (new Date()).getTime(); for (Entity entity : datastore.prepare(query).asIterable()) { datastore.delete(entity.getKey()); if ((new Date().getTime()) (starttime + 1)) break; } It seems to work when I run this. I check the console's data viewer and the Kind I'm trying to delete (PostalCodes) is gone, but the day after I do this, the whole thing has been restored. Am I missing a call to flush or commit or something?!? Is there a better way to do this? Thanks in advance, Eric =) --~--~-~--~~~---~--~~ 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] App Engine 1.2.5 Doesn't Support String, Exception, SAXParser in Java?
I justed updated to App Engine 1.2.5 and now all my software is full of compiler errors because it says app engine no longer support classes like String, Exception, SAXParser in Java. Should I revert back to an earlier app engine that did support them or is this really the new app engine support? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---