[appengine-java] Re: App Engine SDK 1.3.1 is out!
On 2月11日, 午後4:35, yjun hu itswa...@gmail.com wrote: it exists on sdk1.3.0 too. That code have worked well with 1.3.0. I had updated SDK from 1.3.0 to 1.3.1, then the Exception occurred. After that, I changed back to 1.3.0 and re-deploy, then the Exception stopped. (Of course I used the same source code.) So, I think it is a bug of 1.3.1. Or, is it a bug of 1.3.0? -- 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: App Engine SDK 1.3.1 is out!
Hi, Nice release! I could not find any docs on the Custom Admin Console pages feature... Can you please point me in the right direction? Thanks, Viktor On Feb 11, 12:15 am, Ikai L (Google) ika...@google.com wrote: Check it out! http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ... http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ...Here's the post: App Engine SDK 1.3.1, Including Major Improvements to Datastore!http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ... We are excited to announce the release of version 1.3.1 of the App Engine SDK for both Python and Java. While this release contains plenty of new features and fixes, we've concentrated on using our very first SDK release of 2010 to improve the heart of many App Engine applications: the Datastore. Here are the three major improvements that 1.3.1 has in store for datastore users: - *Datastore Query Cursors* - Cursors allow applications to save and 'bookmark' their progress through a query, so that it can be resumed later. This works great in combination with paging URLs, as well as processing in the Task Queue API, but there are many other uses. Watch for an upcoming blog post that explores Cursors in the near future. They're also really handy in the context of the next change... - *No more 1000 result limit* - That's right: with addition of Cursors and the culmination of many smaller Datastore stability and performance improvements over the last few months, we're now confident enough to remove the maximum result limit altogether. Whether you're doing a fetch, iterating, or using a Cursor, there's no limits on the number of results. - *Reduced error rate with Automatic Datastore Retries* - We've heard a lot of feedback that you don't want to deal with the Datastore's sporadic errors. In response, App Engine now automatically retries all datastore calls (with the exception of transaction commits) when your applications encounters a datastore error caused by being unable to reach Bigtable. Datastore retries automatically builds in what many of you have been doing in your code already, and our tests have shown it drastically reduces the number of errors your application experiences (by up to *3-4x error reduction for puts, 10-30x for gets*). But even with our focus on the Datastore, we were able to sneak in a quite a number of other new goodies into 1.3.1 as well: For Python, we've included the *AppStats* RPC instrumentation library. AppStats lets users easily profile the performance of calls from their app to the App Engine backend services to identify and isolate issues such as ineffective caching, bottlenecks, and redundant RPC calls in their app. (A Java version is in beta testing now.) And for Java, we've included a comprehensive new *unit-testing framework* for your App Engine apps. The unit-testing framework enables you to test your application code in a natural, fully supported manner, and also allows you to integrate your App Engine apps into other existing testing and automation frameworks. The list of changes in 1.3.1 goes on and on (Custom Admin Console pages! Support for wildcard domain mappings! Java precompilation on by default for all applications!), so make sure to downloadhttp://code.google.com/appengine/downloads.html the new version and read our release notes for the complete list (Pythonhttp://code.google.com/p/googleappengine/wiki/SdkReleaseNotes , Javahttp://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes ). Posted by the App Engine Team -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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: can't send attachment via Java Mail API supported by GAE
Hi. It is great. I was able also to receive attached mail. Congratulations. Thanks everything is working now. Now attachment is working. Flex base video to image capture application hosted on google app engine http://clickpicture.appspot.com/Video.html Hi. I'm sorry for being not able to explain well. Please try the following sources. code MimeMessage msg = new MimeMessage(session); Multipart mp = new MimeMultipart(); //attachmentPart MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(videoimage.jpeg); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource(theByteArray, image/jpeg); javax.activation.DataHandler datahandler = new javax.activation.DataHandler(byteArrayDataSource); attachment.setDataHandler(datahandler); mp.addBodyPart(attachment); //MessagePart(body) MimeBodyPart body = new MimeBodyPart(); body.setText(Message_sample); //set message mp.addBodyPart(body); msg.setContent(mp); msg.setFrom(fromIaddress); // set from msg.addRecipient(Message.RecipientType.TO, toIaddress); // set to msg.setSubject(subject_sample); //set subject Transport.send(msg); /code I confirm that I received in Gmail. If it is useless in this method The value of theByteArray might have to be confirmed. thanks. 2010/2/5 Nehul neh...@gmail.com: Can you please explain what you mean? Hi. I think that I can transmit if it is shape that stores msg and attachement in each Part Please try. thanks. Multi-Part Messages I can't send attachment (simple image file) to email but normal text email is working. code (session); -- 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. -- 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] Running a cron job within a time span of work days
Hi, May be possible if the following way 1.Taskqueue that operates every four hours and two minutes is made. 2.Cron that calls the Taskqueue at 10:00 is made. Please try. thanks. Hi, I want to configure a cron job for running every 2 minutes from (e.g.) 1000 to 1600 hours. Firstly, can I use something as follows? Secondly, how can I specify how long the cron job will run? cron url/update/url descriptionRepopulate data every 2 minutes from 10:00 AM/ description scheduleevery 2 minutes sun,mon,tue,wed,thu 10:00/schedule timezoneAsia/Dhaka/timezone /cron Thank you in advance, Imran -- 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. -- 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: Spring 3.0 + Tiles 2.1.4 + GAE
I've found the solution : http://tiles.apache.org/2.1/framework/tutorial/advanced/el-support.html Just get the jasper-el library from Tomcat, add it to your classpath and it works. Usually running on Tomcat, I never encountered this error with Tiles. Now I'm on GAE with Jetty, it popped-up. Have fun! -- David, new to GAE Spring On 10 fév, 18:29, David F. david.friq...@gmail.com wrote: Hi, I was experiencing the same trouble and your advice solved it. Thank you for that. But it's not the last problem integrating Spring + Tiles on GAE. My stacktrace now shows : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/DispatcherServlet-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/ apache/el/ExpressionFactoryImpl at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean(AbstractAutowireCapableBeanFactory.java: 1401) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean(AbstractAutowireCapableBeanFactory.java: 512) ... All my googling revealed that this class is heavily related to Apache Tomcat but GAE is running on Jetty if I'm not mistaken. Is there any workaround? Thanks. -- David, new to GAE Spring On 10 fév, 02:00, vladjan vlad...@gmail.com wrote: Hi, try usingtiles-2.1.2 Best regards, Vladislav On Feb 8, 12:52 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, Any suggestions/thoughts/ideas? Stuck at this now.. Thanks, Arun Shanker Prasad. On Feb 4, 4:23 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I was trying to create a samplespringapplication withSpring3.0 (RELEASE) Tiles2.1.4, but I am getting the following error when I start up the dev server. Has anyone else come across this? Any work around? I had read in the forum about modifying some classes got get the Springform tag to work, but that was for 2.5, anyone else tried Spring3.0? What more problems can I get? I am at the initial phase of planning for my project and just thought to giveSpring3.0 a try since I don't want to learn 2.5 if 3.0 is already there ;) WARNING: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; at org.apache.tiles.jsp.evaluator.el.JspExpressionFactoryFactory.getExpression Factory(JspExpressionFactoryFactory.java: 62) at org.apache.tiles.evaluator.el.ELAttributeEvaluator.init(ELAttributeEvaluato r.java: 111) at org.apache.tiles.factory.TilesContainerFactory.storeContainerDependencies(T ilesContainerFactory.java: 447) at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesCon tainerFactory.java: 368) at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesCo ntainerFactory.java: 287) at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContain erFactory.java: 231) at org.apache.tiles.startup.BasicTilesInitializer.createContainer(BasicTilesIn itializer.java: 117) at org.apache.tiles.startup.BasicTilesInitializer.initialize(BasicTilesInitial izer.java: 53) at org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterProperties Set(TilesConfigurer.java: 203) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y $5.run(AbstractAutowireCapableBeanFactory.java:1451) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java: 1449) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean(AbstractAutowireCapableBeanFactory.java: 1398) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean(AbstractAutowireCapableBeanFactory.java: 512) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
[appengine-java] Re: Google Plugin for Eclipse 1.3 plans
SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is also released, and more importantly if it contains better support for maven as described in Keith's post. On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote: Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post athttp://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than having to manually generate/copy jar files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's possible, but I'm hopeful! :) Jake On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote: Where's the lastest plugin update sites for GAE Plugin? I will to test it! 2010/2/6 Philippe Marschall philippe.marsch...@gmail.com Sounds like a good start. Ideally the maven eclipse plugin [1] could be configured to automatically generate the configuration for the Google Plugin and M2Eclipse [2] picking that up as well. Also an archetype would help quick starting. I assume you're aware that you get the most benefit out of that only when there are up to date Maven artifacts wit good metadata in a publicly available repo, preferably Maven central. [1]http://maven.apache.org/eclipse-plugin.html [2]http://m2eclipse.sonatype.org/ Cheers Philippe -- 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] Caching pages.
Caching objects in App engine is easy Cache cache; Cache cache ; try { cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap()); } catch (CacheException e) { // ... } String key; // ... int value;// ... // Put the value into the cache. cache.put(key, value); I am using jsp pages, how do i cache whole pages? -- 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: Error while uploading the App - Unable to update
Thanks for your response. I updated to OpenSuse 11.2 and it worked. I assume, there was a problem with the java libraries. On 10 Feb., 00:10, Ikai L (Google) ika...@google.com wrote: Is there any information in that log file that the error mentioned? On Mon, Feb 8, 2010 at 3:22 AM, mike22153 groeg...@gmx.de wrote: Hi, I just tried to upload my first App to the Google App Engine. I tried the Eclipse Plugin and appengine-java-sdk-1.3.0/bin/appcfg.sh. I have Suse Linux 10.3 and jdk1.6.0_18 installed. Each time I tried, I got the following error: ------ Reading application configuration data... Beginning server interaction for ... 0% Creating staging directory 5% Scanning for jsp files. 20% Scanning files on local disk. 25% Initiating update. Email: ...@xxx.xx Password for ...@xxx.xx: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl) Unable to update app: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl) Please see the logs [/tmp/appcfg55133.log] for further information. Has anybody an idea? On my pc, the App is running. Best regards, 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-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 Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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: Google Plugin for Eclipse 1.3 plans
Hi Marcel, The Eclipse plugin has a different release cycle than the App Engine SDK, so no, the current plugin version remains 1.2. Look the 1.3 version of the plugin to be released in March (with a preview build available near the end of this month). Keith On Thu, Feb 11, 2010 at 9:09 AM, Marcel Overdijk marceloverd...@gmail.comwrote: SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is also released, and more importantly if it contains better support for maven as described in Keith's post. On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote: Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post athttp:// hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository= http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than having to manually generate/copy jar files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's possible, but I'm hopeful! :) Jake On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote: Where's the lastest plugin update sites for GAE Plugin? I will to test it! 2010/2/6 Philippe Marschall philippe.marsch...@gmail.com Sounds like a good start. Ideally the maven eclipse plugin [1] could be configured to automatically generate the configuration for the Google Plugin and M2Eclipse [2] picking that up as well. Also an archetype would help quick starting. I assume you're aware that you get the most benefit out of that only when there are up to date Maven artifacts wit good metadata in a publicly available repo, preferably Maven central. [1]http://maven.apache.org/eclipse-plugin.html [2]http://m2eclipse.sonatype.org/ Cheers Philippe -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Wildcard domain names?
Hi, is the new release providing UniversalLogin? So that you can use the UserService to login with Google and Google apps accounts? Or is it still required to restrict the access to the domain to be able to login with google apps accounts? Thanks, daniel -- 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: How to use junit test in the newest SDK1.3.1
Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@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 Enginehttp:// googleappengine.blogspot.com|http://twitter.com/app_engine -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1
It's the same (attached) I used before update to 1.3.1. Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.com: Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@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 Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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. -- 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. -- 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. TestEnvironment.java Description: Binary data
[appengine-java] [character encoding] request.setEncoding
Salaam all; Eclipse encoding is UTF-8 and HTML form charset is UTF-8. Is it OK for this code below? System.out.println(1-request char encoding : +request.getCharacterEncoding()); request.setCharacterEncoding(UTF-8); System.out.println(2-request char encoding : +request.getCharacterEncoding()); executes like this: 1-request char encoding : null 2-request char encoding : null I am trying to process arabic text as parameter coming from an html form. The code worked fine in tomcat settings though... Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!
Assuming a ClassA object with the specified id already exists, the code you've posted works fine for me. Could you put together a complete example that demonstrates the unexpected behavior? Thanks, Max On Wed, Feb 10, 2010 at 7:49 PM, vori vori...@gmail.com wrote: Is it a bug on JDO of SDK 1.3.1? -- PersistentManager pm = PMF.get().getPersistenceManager();; ClassA classA = pm.getObjectById(ClassA.class, id); ClassB classB = new ClassB(); Transaction tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(classB); tx.commit(); // It throws javax.jdo.JDOException: can't operate on multiple entity groups in a single transaction. -- -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1
Ooops.. missed your question! It's just: @Override protected Environment newEnvironment() { return new TestEnvironment(); } Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.com: Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@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 Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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. -- 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. -- 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: How to use junit test in the newest SDK1.3.1
Your code looks fine. Are you sure you're calling setUp() on the LocalServiceTestHelper? On Thu, Feb 11, 2010 at 10:11 AM, Krishna Caldas krishnacal...@gmail.comwrote: Ooops.. missed your question! It's just: @Override protected Environment newEnvironment() { return new TestEnvironment(); } Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com : Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2B unsubscr...@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 Enginehttp://googleappengine.blogspot.com| http://twitter.com/app_engine -- 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. -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Precompilation Failure
Precompilation is failing and giving the following exception. This is from the SDK 1.3.1. It did the same thing under 1.3.0. com.google.inject.internal.ComputationException: java.lang.SecurityException: Unable to get members for class com.dynafocus.aws.s3.S3URLGenerator The app runs fine without pre-compilation. The class com.dynafocus.aws.s3.S3URLGenerator is a Scala class. All of the methods are public. There are a couple of instance variables that have getters and setters on them. Please address because it takes about 20 seconds to fire up a load request. The app engine needs to keep these things in memory a little longer than a minute. I would be willing to pay for spot instances. -- 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: Google Plugin for Eclipse 1.3 plans
Has anyone else noticed that installing GAE SDK 1.3.1 screws up the Google Plugin? It keeps throwing class loader exceptions and renders the run configs useless. On Feb 11, 9:23 pm, Keith Platfoot kplatf...@google.com wrote: Hi Marcel, The Eclipse plugin has a different release cycle than the App Engine SDK, so no, the current plugin version remains 1.2. Look the 1.3 version of the plugin to be released in March (with a preview build available near the end of this month). Keith On Thu, Feb 11, 2010 at 9:09 AM, Marcel Overdijk marceloverd...@gmail.comwrote: SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is also released, and more importantly if it contains better support for maven as described in Keith's post. On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote: Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post athttp:// hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository= http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than having to manually generate/copy jar files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's possible, but I'm hopeful! :) Jake On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote: Where's the lastest plugin update sites for GAE Plugin? I will to test it! 2010/2/6 Philippe Marschall philippe.marsch...@gmail.com Sounds like a good start. Ideally the maven eclipse plugin [1] could be configured to automatically generate the configuration for the Google Plugin and M2Eclipse [2] picking that up as well. Also an archetype would help quick starting. I assume you're aware that you get the most benefit out of that only when there are up to date Maven artifacts wit good metadata in a publicly available repo, preferably Maven central. [1]http://maven.apache.org/eclipse-plugin.html [2]http://m2eclipse.sonatype.org/ Cheers Philippe -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to use junit test in the newest SDK1.3.1
You're right! I refactored my code and forget to annotate the new setUp method with @Before. Sorry for taking your time! It works now. Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.com: Your code looks fine. Are you sure you're calling setUp() on the LocalServiceTestHelper? On Thu, Feb 11, 2010 at 10:11 AM, Krishna Caldas krishnacal...@gmail.com wrote: Ooops.. missed your question! It's just: @Override protected Environment newEnvironment() { return new TestEnvironment(); } Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.com: Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@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 Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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. -- 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. -- 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. -- 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. -- 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: How to use junit test in the newest SDK1.3.1
Great, glad to hear it! I forgot to add a method to LocalServiceTestHelper to set a custom app id. My mistake. I'll make sure this gets added for the next release so you don't need to provide your own Environment implementation. Max On Thu, Feb 11, 2010 at 10:30 AM, Krishna Caldas krishnacal...@gmail.comwrote: You're right! I refactored my code and forget to annotate the new setUp method with @Before. Sorry for taking your time! It works now. Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com : Your code looks fine. Are you sure you're calling setUp() on the LocalServiceTestHelper? On Thu, Feb 11, 2010 at 10:11 AM, Krishna Caldas krishnacal...@gmail.com wrote: Ooops.. missed your question! It's just: @Override protected Environment newEnvironment() { return new TestEnvironment(); } Thanks, Krishna 2010/2/11 Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com : Subclassing LocalServiceTestHelper and overriding newEnvironment() should work fine. What does your implementation of newEnvironment() look like? On Wed, Feb 10, 2010 at 7:35 PM, Krishna krishnacal...@gmail.com wrote: Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java: 270) I've tried to extend LocalServiceTestHelper and overwrite newEnvironment() with my Environment (who returns appId) but it didn't work... What's wrong? Thanks, Krishna On Feb 10, 10:25 pm, Ikai L (Google) ika...@google.com wrote: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)){}); So I can't new a ApiProxyLocalImpl instance! Any body know how to use JUnit? Thanks :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2B unsubscr...@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 Enginehttp://googleappengine.blogspot.com| http://twitter.com/app_engine -- 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. -- 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,
[appengine-java] Workaround for like keyword in JDOQL
Hi All, I am developing a resource allocation application in GAE with Java. Since there is no like keyword in JDOQL, I am unable to do search in database based on a keyword. For example, I want to list all the employees who have 'ash' word in their name. I have already wasted 3 days due to this problem. So please suggest me some workaround to achieve above this goal. Thanks in advance. Regards, Piyush Jain -- 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: App Engine SDK 1.3.1 is out!
Hi, I found a small documentation here: http://code.google.com/appengine/docs/java/config/appconfig.html#Administration_Console_Custom_Pages Cheers, Sor On 11 Feb., 09:50, phraktle phrak...@gmail.com wrote: Hi, Nice release! I could not find any docs on the Custom Admin Console pages feature... Can you please point me in the right direction? Thanks, Viktor -- 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: Running a cron job within a time span of work days
Hi,Imran. I am doing the same code in my program.but it is not working.could you please tell me, is it need any another settings. On Feb 10, 1:48 pm, Imran M Yousuf imyou...@gmail.com wrote: Hi, I want to configure a cron job for running every 2 minutes from (e.g.) 1000 to 1600 hours. Firstly, can I use something as follows? Secondly, how can I specify how long the cron job will run? cron url/update/url descriptionRepopulate data every 2 minutes from 10:00 AM/description scheduleevery 2 minutes sun,mon,tue,wed,thu 10:00/schedule timezoneAsia/Dhaka/timezone /cron Thank you in advance, -- Imran M Yousuf Entrepreneur Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: im...@smartitengineering.com Blog:http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557 -- 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] JPA with database
what is JPA.what are steps to create new JPA web application.how to make database connection. what are the jar files are needed to make database connection. how to make database connection. -- 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] Could not deploy my App in Google App Engine!
I am very new to GWT world! I am getting below exception when I am trying to deploy in Google App Engine. Error:- An internal error occurred during: Deploying Babu'sFirstGWTApp to Google. Received IOException parsing the input stream for C:/GWTWorkspace/ Babu'sFirstGWTApp/war\WEB-INF/web.xml However it's working locally! Can any one 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-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 mail in google app engine in java
Hi, i am trying to send a mail with google app engine wuth java. My code is, Properties props =*new* Properties(); props.put(mail.smtp.host,smtp.gmail.com); props.put(mail.smtp.username,sowji.apr10); props.put(mail.smtp.PASSWORD,smtp.gmail.com); Session session = Session.*getDefaultInstance*(props, *null*); String msgBody = Hai this is my first mail through java programming; *try* { Message msg=*new* MimeMessage(session); msg.setText(hai...+msgBody); msg.setSubject(First Message from java); msg.setFrom(*new* InternetAddress(my...@gmail.com)); msg.setRecipient(Message.RecipientType.*TO*,*new*InternetAddress( my...@gmail.com)); Transport.*send*(msg); PrintWriter pw=resp.getWriter(); pw.println(html/bodymail is seding.../body/html); } *catch*(AddressException adde){ // System.*out*.print(error in address); } *catch*(MessagingException mse){ // System.*out*.print(error in messaging); } For this code i did not get any mail or any errors as reply. My console print warning like this, The server is running at http://localhost:3624/ Feb 11, 2010 12:22:58 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Feb 11, 2010 12:23:00 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Please help me to solve this problem. Thanks, Lakshmi. -- 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: JPA with database
Really sounds like you ought to read the docs before using the software http://code.google.com/appengine/docs/ Omitting such a basic step is not advisable. -- 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: Google Plugin for Eclipse 1.3 plans
Can you provide a stack trace? On Thu, Feb 11, 2010 at 1:29 PM, Sudhir sudhi...@gmail.com wrote: Has anyone else noticed that installing GAE SDK 1.3.1 screws up the Google Plugin? It keeps throwing class loader exceptions and renders the run configs useless. On Feb 11, 9:23 pm, Keith Platfoot kplatf...@google.com wrote: Hi Marcel, The Eclipse plugin has a different release cycle than the App Engine SDK, so no, the current plugin version remains 1.2. Look the 1.3 version of the plugin to be released in March (with a preview build available near the end of this month). Keith On Thu, Feb 11, 2010 at 9:09 AM, Marcel Overdijk marceloverd...@gmail.comwrote: SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is also released, and more importantly if it contains better support for maven as described in Keith's post. On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote: Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post athttp:// hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository= http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than having to manually generate/copy jar files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's possible, but I'm hopeful! :) Jake On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote: Where's the lastest plugin update sites for GAE Plugin? I will to test it! 2010/2/6 Philippe Marschall philippe.marsch...@gmail.com Sounds like a good start. Ideally the maven eclipse plugin [1] could be configured to automatically generate the configuration for the Google Plugin and M2Eclipse [2] picking that up as well. Also an archetype would help quick starting. I assume you're aware that you get the most benefit out of that only when there are up to date Maven artifacts wit good metadata in a publicly available repo, preferably Maven central. [1]http://maven.apache.org/eclipse-plugin.html [2]http://m2eclipse.sonatype.org/ Cheers Philippe -- 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.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How to make a query searching by an @PrimaryKey String field from the console using GQL
Hi there, I have something like: public class User { @PrimaryKey @Persistent private String username; But I couln't find a way of making work a query like select * from User where username = 'someUserName' from the admin console. It's driving me nuts!, Anyone has any idea how to do this? I guess it's supossed to be achieved with the KEY(..) feature, but I tried different ways and couldn't get it to work. Thanks, Esteban -- 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] sending mail in google app engine in java
That's just your browser trying to get a favicon from your site: http://en.wikipedia.org/wiki/Favicon http://en.wikipedia.org/wiki/FaviconCreate one and put it in your app where it is accessible at http://yourappid.appspot.com/favicon.ico On Thu, Feb 11, 2010 at 4:32 AM, Sowji sowji.ap...@gmail.com wrote: Hi, i am trying to send a mail with google app engine wuth java. My code is, Properties props = *new* Properties(); props.put( mail.smtp.host,smtp.gmail.com); props.put( mail.smtp.username,sowji.apr10); props.put( mail.smtp.PASSWORD,smtp.gmail.com); Session session = Session.*getDefaultInstance*(props, *null*); String msgBody = Hai this is my first mail through java programming; *try* { Message msg= *new* MimeMessage(session); msg.setText( hai...+msgBody); msg.setSubject( First Message from java); msg.setFrom( *new* InternetAddress(myown my...@gmail.com@gmail.com)); msg.setRecipient(Message.RecipientType. *TO*,*new* InternetAddress(my...@gmail.com)); Transport.*send*(msg); PrintWriter pw=resp.getWriter(); pw.println( html/bodymail is seding.../body/html); } *catch*(AddressException adde){ // System. *out*.print(error in address); } *catch*(MessagingException mse){ // System. *out*.print(error in messaging); } For this code i did not get any mail or any errors as reply. My console print warning like this, The server is running at http://localhost:3624/ Feb 11, 2010 12:22:58 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Feb 11, 2010 12:23:00 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Please help me to solve this problem. Thanks, Lakshmi. -- 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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: Google Plugin for Eclipse 1.3 plans
Yeah... I've raised an issue http://code.google.com/p/googleappengine/issues/detail?id=2758sort=-openedcolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component%20Opened with the stacktrace. On Feb 11, 11:51 pm, Rajeev Dayal rda...@google.com wrote: Can you provide a stack trace? On Thu, Feb 11, 2010 at 1:29 PM, Sudhir sudhi...@gmail.com wrote: Has anyone else noticed that installing GAE SDK 1.3.1 screws up the Google Plugin? It keeps throwing class loader exceptions and renders the run configs useless. On Feb 11, 9:23 pm, Keith Platfoot kplatf...@google.com wrote: Hi Marcel, The Eclipse plugin has a different release cycle than the App Engine SDK, so no, the current plugin version remains 1.2. Look the 1.3 version of the plugin to be released in March (with a preview build available near the end of this month). Keith On Thu, Feb 11, 2010 at 9:09 AM, Marcel Overdijk marceloverd...@gmail.comwrote: SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is also released, and more importantly if it contains better support for maven as described in Keith's post. On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote: Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post athttp:// hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository= http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than having to manually generate/copy jar files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's possible, but I'm hopeful! :) Jake On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote: Where's the lastest plugin update sites for GAE Plugin? I will to test it! 2010/2/6 Philippe Marschall philippe.marsch...@gmail.com Sounds like a good start. Ideally the maven eclipse plugin [1] could be configured to automatically generate the configuration for the Google Plugin and M2Eclipse [2] picking that up as well. Also an archetype would help quick starting. I assume you're aware that you get the most benefit out of that only when there are up to date Maven artifacts wit good metadata in a publicly available repo, preferably Maven central. [1]http://maven.apache.org/eclipse-plugin.html [2]http://m2eclipse.sonatype.org/ Cheers Philippe -- 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%2B unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Manipulate Blobs in Blobstore
Not yet, though we are looking at interfaces for programmatically interacting with blobs in the blobstore. Please star this issue: http://code.google.com/p/googleappengine/issues/detail?id=2536 On Sat, Feb 6, 2010 at 9:44 AM, BimboJones bimbojone...@gmail.com wrote: Hi, I would like to know if it is possible to manipulate multiple blobs in the blobstore, for example, if i have a bunch of .pdf files and want to gather them in 1 zip file for download, even if the generated file limit is 50mb. If not is it possible to let the blobs from the datastore get more then 10mb? i was using the example from Google File Service, but 10mb is pretty low. Thanks in advance. -- 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] Generic type in GAE JDO. Howto?
I'm a bit curious as you why you are trying to persist a collection class. Why not create an entity and persist the Map as a field on the entity? On Sun, Feb 7, 2010 at 10:57 PM, Alex Lui luiale...@gmail.com wrote: As java.util.Map isn't supported by GAE, I'm trying to create a class @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public class DAOMapK extends Object, V extends Object implements MapK,V { ... however, got such exception in Eclipse console DataNucleus Enhancer (version 1.1.4) : Enhancement of classes Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Feb 8, 2010 2:55:53 PM org.datanucleus.enhancer.DataNucleusEnhancer main SEVERE: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details org.datanucleus.exceptions.NucleusUserException: Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 426) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java: 743) at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java: 545) at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java: 1252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java: 57) at com.google.appengine.tools.enhancer.Enhance.init(Enhance.java: 60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) Caused by: java.lang.IllegalStateException: Unknown type: K at org.datanucleus.jdo.metadata.JDOAnnotationReader.processMemberAnnotations(JDOAnnotationReader.java: 1748) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java: 169) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java: 136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java: 2278) at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 385) ... 10 more Nested Throwables StackTrace: java.lang.IllegalStateException: Unknown type: K at org.datanucleus.jdo.metadata.JDOAnnotationReader.processMemberAnnotations(JDOAnnotationReader.java: 1748) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java: 169) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java: 136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java: 2278) at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 385) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java: 743) at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java: 545) at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java: 1252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java: 57) at com.google.appengine.tools.enhancer.Enhance.init(Enhance.java: 60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details Any idea? -- 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,
Re: [appengine-java] Setting the key of a child entity
Are both the parent and child persisted at the same time? If so, you can add the child object as a child (not the Key) of the Parent object and call makePersistent on the Parent. On Thu, Feb 4, 2010 at 1:28 AM, Manny S manny.m...@gmail.com wrote: I am missing something simple here but can anyone point me to how I can set the child key before making the parent data persistent...(in a unidirectional one to one relationship) I create the parent data and the child data parentdata pdata = new parentdata('x','y', 'z'); pdata.setKey(null); childdata child = new childdata('A'); pdata.setChild(child); Now, I would like to set the child key as parent key + mystring When I try, String strparentKey = KeyFactory.keyToString(pdata.getKey()); String strchildKey = strparentKey + details; Key childKey = KeyFactory.stringToKey(strchildKey); it gives me an error as the parent data does not have a key yet (cause is null) In this case the key of the parent is generated only when I persist. But I need to set the child key before I make it persistent. My application cannot generate an unique app id and I rely on the datastore to do it. As far as I can tell the KeyFactory.Builder does not have an option to generate unique keys and relies on the app to provide it and so I cant use that either. Any help would be appreciated... Manny -- 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] Blobstore UploadBlobServlet.java NPE
I'm trying to post files into the blobstore on my dev station using eclipse. The _BlobInfo_ objects are appearing within the datastore viewer but this exception keep getting thrown for the first time I post the form. Is there anyone with access to UploadBlobServlet.java that can point me to why I'm getting a NPE? --Andy.Stevko Feb 11, 2010 8:06:43 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /_ah/upload/ ag5uaW51a3VtZW1vcmllc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGIYIDA java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java: 365) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access $000(UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet $1.run(UploadBlobServlet.java:100) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java: 98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java: 67) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java: 122) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 110) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) 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: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) 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-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] Owned One-to-Many Relationships - query/filter on the associated/child object?
It sounds like what you want to do here is an ancestor query: http://groups.google.com/group/google-appengine-java/browse_thread/thread/6de4dfe44f0d0f11/f45729dfe28c9425?lnk=gst http://groups.google.com/group/google-appengine-java/browse_thread/thread/6de4dfe44f0d0f11/f45729dfe28c9425?lnk=gstItems should be in the same entity group with Box as a parent. On Mon, Feb 8, 2010 at 3:39 PM, ChrisDane gregersen@gmail.com wrote: Hi there, How would you query/filter on ContactInfo when you have the Employee. Or better sample if it was Box and a Items, where you only want the yellow items. From: http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned%5FRelationships ### Employee.java import java.util.List; // ... @Persistent(mappedBy = employee) private ListContactInfo contactInfoSets; ### ContactInfo.java import Employee; // ... @Persistent private Employee employee; Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] Updating an owned One-To-Many relationship (JDO)
Hello, I was experiencing problems very similar to the ones described in this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/13473fcae300d845 where updates I made on my JDO objects weren't actually reflected in the datastore. Taking the advice of an answer from that thread, I tried closing and reopening the PersistenceManager in the following order: Initialize pm Retrieve the parent object from the datastore using pm Retrieve the list of child objects from the parent object (with a simple method call) Close pm Re-initialize pm Add a new child object to the list Make the parent object persistent using pm This actually works perfectly, as opposed to when the close and re- initialization of pm are omitted, in which case the parent object's list will not include the newly added child. However, because of this closing of pm, I cannot put this entire update into a single transaction, or an JDOUserException is thrown that tells me 'transaction is still active. You should always close your transactions correctly using commit() or rollback()'. Everything works fine if I separate this code into two transactions, but then it is possible that two users interleave transactions such that they each retrieve identical child lists from the same parent object, each add a new child to that list, and the last to write will wipe out the child added by the first. Any ideas or workarounds would be greatly appreciated! Thanks, Greg -- 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: Could not deploy my App in Google App Engine!
Wild guess, but a ' in a path can't help things On Feb 11, 8:32 am, Babgali babuvi...@gmail.com wrote: I am very new to GWT world! I am getting below exception when I am trying to deploy in Google App Engine. Error:- An internal error occurred during: Deploying Babu'sFirstGWTApp to Google. Received IOException parsing the input stream for C:/GWTWorkspace/ Babu'sFirstGWTApp/war\WEB-INF/web.xml However it's working locally! Can any one 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-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] Cannot deploy - Version not ready
Ive been trying to update my app for the past hour, and I keep getting version not ready errors, the log always shows something like this: Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:456) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:127) 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) I havent changed anything important, so it looks like a temporary glitch, but it doesnt go away.. Any ideas? Thanks David -- 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: Workaround for like keyword in JDOQL
Get a list of (key, name) for your object in question Do a foreach loop and check each name in java ( if blah.indexOf(ash) = 0 ) if it matches your filter, download the full person via the key and add him to a list to return On Feb 11, 5:26 am, Piyush piyush.mn...@gmail.com wrote: Hi All, I am developing a resource allocation application in GAE with Java. Since there is no like keyword in JDOQL, I am unable to do search in database based on a keyword. For example, I want to list all the employees who have 'ash' word in their name. I have already wasted 3 days due to this problem. So please suggest me some workaround to achieve above this goal. Thanks in advance. Regards, Piyush Jain -- 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: Caching pages.
The server should cache JSP's for you, you would only cache any stuff that is needed by the page and sent to it from your action On Feb 11, 9:33 am, abhi abhishek9...@gmail.com wrote: Caching objects in App engine is easy Cache cache; Cache cache ; try { cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyM ap()); } catch (CacheException e) { // ... } String key; // ... int value; // ... // Put the value into the cache. cache.put(key, value); I am using jsp pages, how do i cache whole pages? -- 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] Cannot deploy - Version not ready
I'm having the same problem. As I saw in another emails some time ago, the system might be experimenting some technical dificulties, an if you see the system status ( http://code.google.com/status/appengine ) the datastore doesn't look good. So I guess we'll have to wait... El 11/02/2010 18:37, david ruescas escribió: Ive been trying to update my app for the past hour, and I keep getting version not ready errors, the log always shows something like this: Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:456) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:127) 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) I havent changed anything important, so it looks like a temporary glitch, but it doesnt go away.. Any ideas? Thanks David -- 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. -- 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: Could not deploy my App in Google App Engine!
but it works locally ... I have recently started getting a similar error where upload/deploy fails while parsing datastore-indexes.xml claims there is an error with the .xsd in the toolkit .jar ... On Feb 11, 1:37 pm, Brian bwa...@gmail.com wrote: Wild guess, but a ' in a path can't help things On Feb 11, 8:32 am, Babgali babuvi...@gmail.com wrote: I am very new to GWT world! I am getting below exception when I am trying to deploy in Google App Engine. Error:- An internal error occurred during: Deploying Babu'sFirstGWTApp to Google. Received IOException parsing the input stream for C:/GWTWorkspace/ Babu'sFirstGWTApp/war\WEB-INF/web.xml However it's working locally! Can any one help?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tag search
Thanks, but if I add SetString tags and I search query.setFilter(tags.containsAll(tags1)); query.declareParameters(java.util.List tags1); Then it tells Unsupported method containsAll while parsing expression: InvokeExpression{[PrimaryExpression{tags}].containsAll(ParameterExpression{tags1})} Is that possible to search for multiple tags or not? --- I have some ideas how to search for 2 tags or 3 tags. But it will requires all 2 tag pair combinations to be stored for each object. 3 tags search will require even more combinations of 3 tags for each object. Have someone implemented tag search already? Thanks, Max On Feb 9, 9:34 pm, John Patterson jdpatter...@gmail.com wrote: Hi Max, you could store tags as a multi-valued property which will allow you to search for entities with all tags in a single query. To track how common a tag is you should maintain a count entity for each one. On 10 Feb 2010, at 02:23, Max wrote: I already searchedread app-engine(|-java|-python) forums for tag search and it looks like the the best way to implement tags is unordered relationship many to many. I can search for object with one tag. But I would like to specify multiple tags. e.g. I wish objects that has all 10 tags that I specify or any of 10 tags that I specify. I would like to generate tag cloud also. But SELECT name, count(name) from Tags GROUP by name is not supported Is that possible to implement all most common tag features with app engine? I start thinking that it is not possible. I will have millions of object. So I can't select all objects. Have someone implemented tags in App Engine? Please, tell if know that it is not possible to implement tags in App Engine. Thanks, Max -- 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 athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Anyway to check if current app instance is default version?
Is there anyway to check if current app version is default? Basically we want to cache the pages with only the default version. We want testers to hit the new version but won't effect normal users using the default version. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Workaround for like keyword in JDOQL
The usual approach to complex queries in GAE is to process your data before you need to query it. So in this case for each person create an index entity which simply contains a list of partial names e.g. Pliyush, iyush, yush, ush Then do a keys-only range query for the name part e.g. iyu (look into how to do range queries). Then take the result key's parent and look up the Person entity. On 11 Feb 2010, at 18:26, Piyush wrote: Hi All, I am developing a resource allocation application in GAE with Java. Since there is no like keyword in JDOQL, I am unable to do search in database based on a keyword. For example, I want to list all the employees who have 'ash' word in their name. I have already wasted 3 days due to this problem. So please suggest me some workaround to achieve above this goal. Thanks in advance. Regards, Piyush Jain -- 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-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: Tag search
Yes you can query for multiple tags. Not too sure about the JDO syntax but try something like: query.setFilter(tags == 'hello'); query.setFilter(tags == 'world'); On 12 Feb 2010, at 05:48, Max wrote: Thanks, but if I add SetString tags and I search query.setFilter(tags.containsAll(tags1)); query.declareParameters(java.util.List tags1); Then it tells Unsupported method containsAll while parsing expression: InvokeExpression {[PrimaryExpression{tags}].containsAll(ParameterExpression{tags1})} Is that possible to search for multiple tags or not? --- I have some ideas how to search for 2 tags or 3 tags. But it will requires all 2 tag pair combinations to be stored for each object. 3 tags search will require even more combinations of 3 tags for each object. Have someone implemented tag search already? Thanks, Max On Feb 9, 9:34 pm, John Patterson jdpatter...@gmail.com wrote: Hi Max, you could store tags as a multi-valued property which will allow you to search for entities with all tags in a single query. To track how common a tag is you should maintain a count entity for each one. On 10 Feb 2010, at 02:23, Max wrote: I already searchedread app-engine(|-java|-python) forums for tag search and it looks like the the best way to implement tags is unordered relationship many to many. I can search for object with one tag. But I would like to specify multiple tags. e.g. I wish objects that has all 10 tags that I specify or any of 10 tags that I specify. I would like to generate tag cloud also. But SELECT name, count(name) from Tags GROUP by name is not supported Is that possible to implement all most common tag features with app engine? I start thinking that it is not possible. I will have millions of object. So I can't select all objects. Have someone implemented tags in App Engine? Please, tell if know that it is not possible to implement tags in App Engine. Thanks, Max -- 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 athttp://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 . -- 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] Anyway to check if current app instance is default version?
You could check the http host in the request to check for your live url On 12 Feb 2010, at 05:59, Peter Liu wrote: Is there anyway to check if current app version is default? Basically we want to cache the pages with only the default version. We want testers to hit the new version but won't effect normal users using the default version. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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-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] Manipulate Blobs in Blobstore
Thanks for the answer, I have an async call that get's the url(string) from the blobstore api and use that string directly on the form.setAction(...); then i show the button to upload.The problem is that sometimes i get errors, is there some issue or should i try to resubmit, or could the blobstore api be returning an invalid url, i that case how can i check it? i sometimes get the 500 error. Thanks 2010/2/11 Ikai L (Google) ika...@google.com Not yet, though we are looking at interfaces for programmatically interacting with blobs in the blobstore. Please star this issue: http://code.google.com/p/googleappengine/issues/detail?id=2536 On Sat, Feb 6, 2010 at 9:44 AM, BimboJones bimbojone...@gmail.com wrote: Hi, I would like to know if it is possible to manipulate multiple blobs in the blobstore, for example, if i have a bunch of .pdf files and want to gather them in 1 zip file for download, even if the generated file limit is 50mb. If not is it possible to let the blobs from the datastore get more then 10mb? i was using the example from Google File Service, but 10mb is pretty low. Thanks in advance. -- 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Precompilation Failure
Garry, Can you send us your app-id (privately if you wish)? On Thu, Feb 11, 2010 at 1:29 PM, Garry ga...@dynafocus.com wrote: Precompilation is failing and giving the following exception. This is from the SDK 1.3.1. It did the same thing under 1.3.0. com.google.inject.internal.ComputationException: java.lang.SecurityException: Unable to get members for class com.dynafocus.aws.s3.S3URLGenerator The app runs fine without pre-compilation. The class com.dynafocus.aws.s3.S3URLGenerator is a Scala class. All of the methods are public. There are a couple of instance variables that have getters and setters on them. Please address because it takes about 20 seconds to fire up a load request. The app engine needs to keep these things in memory a little longer than a minute. I would be willing to pay for spot instances. -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tag search
I can use query.setFilter(tags.contains(tags1)); // not containsAll with java.util.List object as tag. But it will return any object containing at list one tag. I wish to search for objects that has all tags that I specify. Is that possible to do? On Feb 12, 12:48 am, Max max.seven@gmail.com wrote: Thanks, but if I add SetString tags and I search query.setFilter(tags.containsAll(tags1)); query.declareParameters(java.util.List tags1); Then it tells Unsupported method containsAll while parsing expression: InvokeExpression{[PrimaryExpression{tags}].containsAll(ParameterExpression{ tags1})} Is that possible to search for multiple tags or not? --- I have some ideas how to search for 2 tags or 3 tags. But it will requires all 2 tag pair combinations to be stored for each object. 3 tags search will require even more combinations of 3 tags for each object. Have someone implemented tag search already? Thanks, Max On Feb 9, 9:34 pm, John Patterson jdpatter...@gmail.com wrote: Hi Max, you could store tags as a multi-valued property which will allow you to search for entities with all tags in a single query. To track how common a tag is you should maintain a count entity for each one. On 10 Feb 2010, at 02:23, Max wrote: I already searchedread app-engine(|-java|-python) forums for tag search and it looks like the the best way to implement tags is unordered relationship many to many. I can search for object with one tag. But I would like to specify multiple tags. e.g. I wish objects that has all 10 tags that I specify or any of 10 tags that I specify. I would like to generate tag cloud also. But SELECT name, count(name) from Tags GROUP by name is not supported Is that possible to implement all most common tag features with app engine? I start thinking that it is not possible. I will have millions of object. So I can't select all objects. Have someone implemented tags in App Engine? Please, tell if know that it is not possible to implement tags in App Engine. Thanks, Max -- 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 athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tag search
Thank You! On Feb 12, 1:11 am, John Patterson jdpatter...@gmail.com wrote: Yes you can query for multiple tags. Not too sure about the JDO syntax but try something like: query.setFilter(tags == 'hello'); query.setFilter(tags == 'world'); On 12 Feb 2010, at 05:48, Max wrote: Thanks, but if I add SetString tags and I search query.setFilter(tags.containsAll(tags1)); query.declareParameters(java.util.List tags1); Then it tells Unsupported method containsAll while parsing expression: InvokeExpression {[PrimaryExpression{tags}].containsAll(ParameterExpression{tags1})} Is that possible to search for multiple tags or not? --- I have some ideas how to search for 2 tags or 3 tags. But it will requires all 2 tag pair combinations to be stored for each object. 3 tags search will require even more combinations of 3 tags for each object. Have someone implemented tag search already? Thanks, Max On Feb 9, 9:34 pm, John Patterson jdpatter...@gmail.com wrote: Hi Max, you could store tags as a multi-valued property which will allow you to search for entities with all tags in a single query. To track how common a tag is you should maintain a count entity for each one. On 10 Feb 2010, at 02:23, Max wrote: I already searchedread app-engine(|-java|-python) forums for tag search and it looks like the the best way to implement tags is unordered relationship many to many. I can search for object with one tag. But I would like to specify multiple tags. e.g. I wish objects that has all 10 tags that I specify or any of 10 tags that I specify. I would like to generate tag cloud also. But SELECT name, count(name) from Tags GROUP by name is not supported Is that possible to implement all most common tag features with app engine? I start thinking that it is not possible. I will have millions of object. So I can't select all objects. Have someone implemented tags in App Engine? Please, tell if know that it is not possible to implement tags in App Engine. Thanks, Max -- 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 athttp://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 athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Caching pages.
Hey there, I cached some html pages with tags like #MESSAGE# in a string, then used, htmlstring = htmlstring.replaceall(#MESSAGE#,new message); then just print the whole string. BufferedReader in = new BufferedReader(new FileReader(pagetobecached.html)); while (in.ready()) htmlstring= htmlstring+in.readLine(); Then you can cache/change it and print to the HttpServletResponse with a PrintWriter, then when you need it later you just have to use (String) cache.get(key); and voilá. Hope this helps. 2010/2/11 Brian bwa...@gmail.com The server should cache JSP's for you, you would only cache any stuff that is needed by the page and sent to it from your action On Feb 11, 9:33 am, abhi abhishek9...@gmail.com wrote: Caching objects in App engine is easy Cache cache; Cache cache ; try { cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyM ap()); } catch (CacheException e) { // ... } String key; // ... int value;// ... // Put the value into the cache. cache.put(key, value); I am using jsp pages, how do i cache whole pages? -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tag search
query.setFilter(tags == 'hello'); query.setFilter(tags == 'world'); --- I have not coded much in native API but I think it will search first for hello and then for world then mix results. How tags property defined in your Model? Is tags a property of Object entity of tags is property of Tag entity linked with Object entity? May be I have to try to code it in native API. Could you show some sample code? I have idea how to implement tags. It is expensive idea but it should work with up to 6-8 tags per object. I will post it in next post. On Feb 12, 1:11 am, John Patterson jdpatter...@gmail.com wrote: Yes you can query for multiple tags. Not too sure about the JDO syntax but try something like: query.setFilter(tags == 'hello'); query.setFilter(tags == 'world'); On 12 Feb 2010, at 05:48, Max wrote: Thanks, but if I add SetString tags and I search query.setFilter(tags.containsAll(tags1)); query.declareParameters(java.util.List tags1); Then it tells Unsupported method containsAll while parsing expression: InvokeExpression {[PrimaryExpression{tags}].containsAll(ParameterExpression{tags1})} Is that possible to search for multiple tags or not? --- I have some ideas how to search for 2 tags or 3 tags. But it will requires all 2 tag pair combinations to be stored for each object. 3 tags search will require even more combinations of 3 tags for each object. Have someone implemented tag search already? Thanks, Max On Feb 9, 9:34 pm, John Patterson jdpatter...@gmail.com wrote: Hi Max, you could store tags as a multi-valued property which will allow you to search for entities with all tags in a single query. To track how common a tag is you should maintain a count entity for each one. On 10 Feb 2010, at 02:23, Max wrote: I already searchedread app-engine(|-java|-python) forums for tag search and it looks like the the best way to implement tags is unordered relationship many to many. I can search for object with one tag. But I would like to specify multiple tags. e.g. I wish objects that has all 10 tags that I specify or any of 10 tags that I specify. I would like to generate tag cloud also. But SELECT name, count(name) from Tags GROUP by name is not supported Is that possible to implement all most common tag features with app engine? I start thinking that it is not possible. I will have millions of object. So I can't select all objects. Have someone implemented tags in App Engine? Please, tell if know that it is not possible to implement tags in App Engine. Thanks, Max -- 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 athttp://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 athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tag search
Here is my tag search idea:- If I have 4 tags Then I can save following strings combinations tag1,tag2,tag3,tag4, tag1,tag2,tag4, tag1,tag3,tag4, tag1,tag4 tag2,tag3,tag4, tag2,tag4, tag3,tag4, tag4, class TagLine{ @PrimaryKey @Persistent Long id; @Key @Persistent String tags; @Persistent Long objectId; } If I have search tag list then I will implode tag list in a string with comma as delimiter. and search for tags (in TagLine) starting with that string If I will have many tags that I will have to insert many TagLine objects. I estimate 2^(n-1) for n tags So it is expensive feature and it is most efficient solution I have found so far. Sample search [tag3, tag2] Sort: [tag2, tag3] Implode into string tag2,tag3, Object with this tags will have TagLine(s) starting with tag2,tag3, In my sample data it is:- tag2,tag3,tag4, -- 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: Anyway to check if current app instance is default version?
Great simple suggestion! Thanks!!! On Feb 11, 3:12 pm, John Patterson jdpatter...@gmail.com wrote: You could check the http host in the request to check for your live url On 12 Feb 2010, at 05:59, Peter Liu wrote: Is there anyway to check if current app version is default? Basically we want to cache the pages with only the default version. We want testers to hit the new version but won't effect normal users using the default version. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Discussion on will-it-play-in-app-engine
Hi, I have an alternative for getting Spring forms working on the app engine. Instead of registering custom editors for your properties, you can just comment out the offending line (a call to findEditorByConvention) in the spring source code and recompile. Everything will work fine as long your code doesn't rely on finding custom property editors by naming convention. I made a blogspot post with more details and also a recompiled Spring jar with this modification. See http://www.answercow.com/2010/02/spring-forms-on-google-app-engine.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: Tag search
On 12 Feb 2010, at 06:53, Max wrote: I have not coded much in native API but I think it will search first for hello and then for world then mix results. No, it does a merge join - only returning entities that match all filters - not separate queries like the JDO contains() creates. -- 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: any plans for deferred.defer in Java?
A bit of a blast from the past on this thread, but... I've always had a trickle of serialization problems in production using the Deferred servlet. Finally I had one that was consistent and repeatable. I forced it to base64 encode always (not just dev mode) and now it works consistently. FYI. Jeff -- 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: Caching pages.
Not sure that would really save any time unless your page is super complex to render and the app engine app server is super dumb, but I guess it is possible with app engine. On Feb 11, 5:40 pm, bimbo jones bimbojone...@gmail.com wrote: Hey there, I cached some html pages with tags like #MESSAGE# in a string, then used, htmlstring = htmlstring.replaceall(#MESSAGE#,new message); then just print the whole string. BufferedReader in = new BufferedReader(new FileReader(pagetobecached.html)); while (in.ready()) htmlstring= htmlstring+in.readLine(); Then you can cache/change it and print to the HttpServletResponse with a PrintWriter, then when you need it later you just have to use (String) cache.get(key); and voilá. Hope this helps. 2010/2/11 Brian bwa...@gmail.com The server should cache JSP's for you, you would only cache any stuff that is needed by the page and sent to it from your action On Feb 11, 9:33 am, abhi abhishek9...@gmail.com wrote: Caching objects in App engine is easy Cache cache; Cache cache ; try { cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyM ap()); } catch (CacheException e) { // ... } String key; // ... int value; // ... // Put the value into the cache. cache.put(key, value); I am using jsp pages, how do i cache whole pages? -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Workaround for like keyword in JDOQL
you can try compass to search On Fri, Feb 12, 2010 at 7:03 AM, John Patterson jdpatter...@gmail.comwrote: The usual approach to complex queries in GAE is to process your data before you need to query it. So in this case for each person create an index entity which simply contains a list of partial names e.g. Pliyush, iyush, yush, ush Then do a keys-only range query for the name part e.g. iyu (look into how to do range queries). Then take the result key's parent and look up the Person entity. On 11 Feb 2010, at 18:26, Piyush wrote: Hi All, I am developing a resource allocation application in GAE with Java. Since there is no like keyword in JDOQL, I am unable to do search in database based on a keyword. For example, I want to list all the employees who have 'ash' word in their name. I have already wasted 3 days due to this problem. So please suggest me some workaround to achieve above this goal. Thanks in advance. Regards, Piyush Jain -- 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. -- dream or truth -- 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: Caching pages.
I'm actually pretty sure that's worse than just serving the static file from the filesystem. Prove me wrong with benchmarks ... On Thu, Feb 11, 2010 at 5:24 PM, Brian bwa...@gmail.com wrote: Not sure that would really save any time unless your page is super complex to render and the app engine app server is super dumb, but I guess it is possible with app engine. On Feb 11, 5:40 pm, bimbo jones bimbojone...@gmail.com wrote: Hey there, I cached some html pages with tags like #MESSAGE# in a string, then used, htmlstring = htmlstring.replaceall(#MESSAGE#,new message); then just print the whole string. BufferedReader in = new BufferedReader(new FileReader(pagetobecached.html)); while (in.ready()) htmlstring= htmlstring+in.readLine(); Then you can cache/change it and print to the HttpServletResponse with a PrintWriter, then when you need it later you just have to use (String) cache.get(key); and voilá. Hope this helps. 2010/2/11 Brian bwa...@gmail.com The server should cache JSP's for you, you would only cache any stuff that is needed by the page and sent to it from your action On Feb 11, 9:33 am, abhi abhishek9...@gmail.com wrote: Caching objects in App engine is easy Cache cache; Cache cache ; try { cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyM ap()); } catch (CacheException e) { // ... } String key; // ... int value;// ... // Put the value into the cache. cache.put(key, value); I am using jsp pages, how do i cache whole pages? -- 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.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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 use junit test in the newest SDK1.3.1
Hello Ikai L(Google)! Thank you! In the demo: http://code.google.com/appengine/docs/java/tools/localunittesting.html I have a idea about the JUnit4 testcase! defined a Basic TestCase: public class *GAETestCase* { protected final LocalServiceTestHelper gaeHelper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()); @Before public *final* void *setUpForGAEEvn*() throws Exception { gaeHelper.setUp(); } @After public *final* void *tearDownForGAEEvn*() throws Exception { gaeHelper.tearDown(); } } public class OtherTestCase extends *GAETestCase* { …… @Test public void myTest() { …… } } the another testcase OtherTestCase extends GAETestCase, so It's will never forget invoke the *LocalServiceTestHelper.setUp* and * LocalServiceTestHelper.tearDown* method! (Krishna Caldas krishnacal...@gmail.com forgot to invoke * LocalServiceTestHelper.setUp and **LocalServiceTestHelper.tearDown*,others may be will forget invoke it!) 在 2010年2月11日 上午8:25,Ikai L (Google) ika...@google.com写道: We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.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] Mail with ODT attachment
I am trying to send a mail containing an openoffice text document with mimetype application/vnd.oasis.opendocument.text, but I cant seem to get it through. So far Ive tried both JavaMail API and googles low-level API unsuccessfully. Caused by: java.lang.IllegalArgumentException: Invalid Attachment Type: Invalid attachment type at com.google.appengine.api.mail.MailServiceImpl.doSend(MailServiceImpl.java: 107) at com.google.appengine.api.mail.MailServiceImpl.send(MailServiceImpl.java: 32) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java: 247) ... 47 more -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Discussion on will-it-play-in-app-engine
jersey 1.1.5 final now fully support gae http://blogs.sun.com/sandoz/entry/jersey_1_1_5_is -- 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: JPA with database
hai Thanks for your reply But I didnot know where to create a new JPA Project to make databese connection with google app engine, which option i need go, JPA project,web application project or dynamic web project. Thanks in advance On Fri, Feb 12, 2010 at 12:08 AM, datanucleus andy_jeffer...@yahoo.comwrote: Really sounds like you ought to read the docs before using the software http://code.google.com/appengine/docs/ Omitting such a basic step is not advisable. -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: JPA with database
hai Thanks for your reply But I didnot know where to create a new JPA Project to make databese connection with google app engine, which option i need go, JPA project,web application project or dynamic web project. Thanks in advance On Fri, Feb 12, 2010 at 4:13 AM, Jake jbrooko...@cast.org wrote: It's true that you should read the documentation. As a former newbie and teacher, though, I appreciate the need for some helpful hints: JPA is Java's Persistence (Saving) API found in the javax.persistence.* package. You can use JDO as an alternative, though, instead of JPA. I would recommend this simply because Google App Engine has better documentation for JDO. In the end, to the new user, they are essentially the same. JPA or JDO is how you will save full Java objects into the Google database. It is not difficult to make the database connection if you follow the tutorials. At this stage, it sounds like you will have more trouble creating a basic web application. So, I would start with that first - also in the tutorials. The App Engine SDK comes with a few sample projects that should work out of the box - see if you can get those up and running. Good luck! Jake On Feb 11, 1:38 pm, datanucleus andy_jeffer...@yahoo.com wrote: Really sounds like you ought to read the docs before using the softwarehttp://code.google.com/appengine/docs/ Omitting such a basic step is not advisable. -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Close PersistenceManager every time?
On Feb 11, 11:42 am, Conor Power iamco...@gmail.com wrote: Hi, I have a question on detachment ... I have my PM in a DAO and I open and close pre / post query. The problem was that the objects returned are null once the PM was closed unless I set them to be detachable. This is exactly the issue I have... My DAO's methods do the querying return a ListE of results. JSP page uses this list to construct and return the page. Unless I close the PM in the JSP by making a second call to a Close() method on the DAO (I don't like that idea), I either leave the PM as it is (which, based on Ikai's reply, does not seem to be a problem) or I detach (duplicate?) the result set. Ikai clearly tells us that detaching is expensive (as expected), so I'll avoid that. Do repeated calls to PMF.get().getPersistenceManager() return the same PM or is a new one created everytime? Even though the getPersistenceManager() call is light, I'd rather avoid repeated calls if it returns a new instance every time. Thanks, HSJ Is there an alternative instead of detach in this case? Should I: 1. make DTO of the returned objects (similar to what would happen in detachable anyway I guess?) 2. design the layers such that the PM is closed at the end of the request once the reponse has been formed using the data from the objects that were queried. thanks ... cowper On Wed, Feb 10, 2010 at 1:46 PM, Ikai L (Google) ika...@google.com wrote: This is really up to you, though I would avoid detaching unless absolutely necessary. Opening and closing a PersistenceManager should be extremely cheap (it's instantiating a PersistenceManagerFactory that's expensive). You've got a few options here, and what you do really just depends on what makes sense for you: - dependency inject the PersistenceManager into a DAO class that you instantiate and pass that instance around, closing it when you are complete - open and close each time in the DAO - the problem here is if you need a PersistenceManager that spans DAO objects (either build that into a method or a Service layer, though for the record I have an aversion to additional, unnecessary layers that do a single thing) From a performance perspective, we aren't doing anything. If you take a look at the low-level API documentation, there's no concept of close: http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... On Wed, Feb 10, 2010 at 8:26 AM, hsjawanda hsjawa...@gmail.com wrote: Nobody knows the answer to this? On Feb 7, 2:34 pm, hsjawanda hsjawa...@gmail.com wrote: Should the PersistenceManager be closed after every query? I have a utility class that handles querying the datastore. This class then returns results which are used by JSP pages to show output. AFAIK, these are my options: * Make all my data objects detachable (what is the extra cost of doing this? Don't they have to be copied when detaching? ) * Make a second call on the utility class to close the PM (defeats the purpose of having the utility class) * Leave my PM unclosed (what is/are the implications of this?) I am referring to a case where I am only doing reads from the data store. Regards, Harshdeep -- 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 http://googleappengine.blogspot.com|http://twitter.com/app_engine -- 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine SDK 1.3.1 is out!
Sorry, I am wrong. I inspected my source code and found the real cause. The following code can works on SDK1.3.0, but it throws java.lang.IllegalArgumentException: can't operate on multiple entity groups in a single transaction. when it used on SDK1.3.1. PersistenceManager pm = pmfInstance.getPersistenceManager(); pm.makePersistent(new EntityB(key)); // If this two lines are commented out, pm.getObjectById(EntityB.class, key); // the following code throws exception on SDK1.3.0 too. ArrayListEntityA entities = new ArrayListEntityA(2); entities.add(new EntityA()); entities.add(new EntityA()); Transaction tx = pm.currentTransaction(); tx.begin(); pm.makePersistentAll(entities); // it throws exception if it compiled using sdk1.3.1. tx.commit(); Full source code is here. https://test-gae-j-sdk-131.googlecode.com/hg/ On 2月12日, 午前3:11, Max Ross (Google) maxr+appeng...@google.com wrote: Assuming a ClassA object with the specified id already exists, the code you've posted works fine for me. Could you put together a complete example that demonstrates the unexpected behavior? Thanks, Max On Wed, Feb 10, 2010 at 7:49 PM, vori vori...@gmail.com wrote: Is it a bug on JDO of SDK 1.3.1? -- PersistentManager pm = PMF.get().getPersistenceManager();; ClassA classA = pm.getObjectById(ClassA.class, id); ClassB classB = new ClassB(); Transaction tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(classB); tx.commit(); // It throws javax.jdo.JDOException: can't operate on multiple entity groups in a single transaction. -- -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Generic type in GAE JDO. Howto?
java.util.HashMap is not supported, isn't it? I'm using Google plugin for Eclipse. This kind of exception came when I testing the entity having the Map field in Eclipse. Caused by: java.lang.IllegalArgumentException: notes: java.util.HashMap is not a supported property type The class declaration is: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public class Person { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Index(unique = true) @Persistent(nullValue = NullValue.NONE) private String name; @Persistent(nullValue = NullValue.NONE) private Date birthday; @Persistent(nullValue = NullValue.NONE) private char gender; @Persistent(defaultFetchGroup=true) @Element(dependent = true) private MapString, String notes; @Persistent private Text remark; @Persistent private boolean isPublic = false; ... } On 2月12日, 上午4時10分, Ikai L (Google) ika...@google.com wrote: I'm a bit curious as you why you are trying to persist a collection class. Why not create an entity and persist the Map as a field on the entity? On Sun, Feb 7, 2010 at 10:57 PM, Alex Lui luiale...@gmail.com wrote: As java.util.Map isn't supported by GAE, I'm trying to create a class @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public class DAOMapK extends Object, V extends Object implements MapK,V { ... however, got such exception in Eclipse console DataNucleus Enhancer (version 1.1.4) : Enhancement of classes Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Feb 8, 2010 2:55:53 PM org.datanucleus.enhancer.DataNucleusEnhancer main SEVERE: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details org.datanucleus.exceptions.NucleusUserException: Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 426) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNu cleusEnhancer.java: 743) at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.ja va: 545) at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java: 1252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java: 57) at com.google.appengine.tools.enhancer.Enhance.init(Enhance.java: 60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) Caused by: java.lang.IllegalStateException: Unknown type: K at org.datanucleus.jdo.metadata.JDOAnnotationReader.processMemberAnnotations(J DOAnnotationReader.java: 1748) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataFo rClass(AbstractAnnotationReader.java: 169) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForCl ass(AnnotationManagerImpl.java: 136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataMa nager.java: 2278) at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 385) ... 10 more Nested Throwables StackTrace: java.lang.IllegalStateException: Unknown type: K at org.datanucleus.jdo.metadata.JDOAnnotationReader.processMemberAnnotations(J DOAnnotationReader.java: 1748) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataFo rClass(AbstractAnnotationReader.java: 169) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForCl ass(AnnotationManagerImpl.java: 136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataMa nager.java: 2278) at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java: 385) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNu cleusEnhancer.java: 743) at
[appengine-java] Re: Could not deploy my App in Google App Engine!
Hi, I believe there was a problem in DOCTYPE, I replaced !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; with the below one web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 now I am getting different error, which is listed below Compiling module com.qwest.gwt.example.Babu_sFirstGWTApp Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into C:\GWTWorkspace\Babu'sFirstGWTApp\war\babu_sfirstgwtapp. Link succeeded Compilation succeeded -- 92.727s Creating staging directory Scanning for jsp files. Scanning files on local disk. Initiating update. java.net.ConnectException: Connection timed out: connect Unable to update: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) at sun.net.www.http.HttpClient.openServer(HttpClient.java:509) at sun.net.www.http.HttpClient.init(HttpClient.java:231) at sun.net.www.http.HttpClient.New(HttpClient.java:304) at sun.net.www.http.HttpClient.New(HttpClient.java:316) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java: 817) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java: 769) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java: 694) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java: 861) 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) any Idea about this exception On Feb 12, 3:01 am, Larry Cable larry.ca...@gmail.com wrote: but it works locally ... I have recently started getting a similar error where upload/deploy fails while parsing datastore-indexes.xml claims there is an error with the .xsd in the toolkit .jar ... On Feb 11, 1:37 pm, Brian bwa...@gmail.com wrote: Wild guess, but a ' in a path can't help things On Feb 11, 8:32 am, Babgali babuvi...@gmail.com wrote: I am very new to GWT world! I am getting below exception when I am trying to deploy in Google App Engine. Error:- An internal error occurred during: Deploying Babu'sFirstGWTApp to Google. Received IOException parsing the input stream for C:/GWTWorkspace/ Babu'sFirstGWTApp/war\WEB-INF/web.xml However it's working locally! Can any one help?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.