[appengine-java] How to use ResourceBundle on GAE ?
I don't understand why ResourceBundle doesn't work on GAE (however on app engine white list) ... Should we do something special/unusual to use it in production ? Thx ! =D -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE+GDate+Dev mode+Proxy: can not access internet
hi all: I've searched this forum but seems none thread cover this topic: enviroment: GAE+GDate+Dev mode+Proxy Now my servlet need to retrieve data using the Gdata API, i'm using proxy to connect to the net, Gdata seem does not using the proxy i set in VM arguments when launching GAE. i manually set the proxy before the GData call, like this: System.setProperty( http.proxyHost, xx.xx.xx.xx ); System.setProperty( http.proxyPort, 8080 ); Still not work. it will throw IOException when connection timeout. Any ideas? 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.
[appengine-java] startup errors while using RemoteApiInstaller
Hi, I am trying1.4.3 SDK and looking into Remote API. In the ServletContextListener, I was installing the api, as provide in the document RemoteApiOptions options = new RemoteApiOptions() .server(your app.appspot.com, 443) .credentials(username, password); RemoteApiInstaller installer = new RemoteApiInstaller(); installer.install(options); I started the server, to get the following errors. I have also copied, $APPENGINE_SDK/lib/appengine-remote-api.jar to the war/WEB-INF/lib folder. java.lang.NoClassDefFoundError: java.util.logging.ConsoleHandler is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.clinit(RemoteApiInstaller.java:37) at com.veersoft.listener.VsServletContextListener.contextInitialized(VsServletContextListener.java:76) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) -Aswath http://www.AccountingGuru.in. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Can only reference properties of a sub-object if the sub-object is embedded
Hello. I am facing a huge problem now. I want to SELECT a FROM AClass a WHERE a.object.attribute. I am always catching this exception: Can only reference properties of a sub-object if the sub-object is embedded. I do not know what to do. Here are my classes: @Entity @Table(name = annotation) public class Annotation implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private String bookId; private Integer pageNumber; @Basic @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY) private AnnotationType annotationType; // setters and getters @Entity @Table(name = annotation_type) public class AnnotationType implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; @Basic private String name; @Basic @OneToMany(cascade = CascadeType.ALL, mappedBy = annotationType) private ArrayListAnnotation annotations; //setters and getters String sql = SELECT a FROM Annotation a WHERE a.annotationTypeName=' + annotationType2.getName() + '; annotations2 = (ListAnnotation) entityManager.createQuery(sql).getResultList(); exception: Can only reference properties of a sub-object if the sub-object is embedded. Thank you a lot. Kido. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Use Array as a query filter - possible?
Hey I have an entity with an Int Array and I would like to perform a query on the contents of the Array. For example, I would like to return entities which have a certain number within the array, I.e. Select * From MyObject Where numberArray contains 2 Is this possible in any way, shape or form? 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.
Re: [appengine-java] Use Array as a query filter - possible?
Yes it's possible. Make sure the property is indexed. From the data viewer you can perform the following query for example: select * from KIND where PROPERTY = NUMBER How you do it in code depends on if you're using JDO, Objectify, JPA, low-level API, etc. On Sun, May 8, 2011 at 5:14 PM, mscwd01 mscw...@gmail.com wrote: Hey I have an entity with an Int Array and I would like to perform a query on the contents of the Array. For example, I would like to return entities which have a certain number within the array, I.e. Select * From MyObject Where numberArray contains 2 Is this possible in any way, shape or form? 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Use Array as a query filter - possible?
BTW, I'm assuming by Int Array you actually meant ArrayList or multi-valued equivalent. Perhaps more info is needed for your particular situation and why it seems you think it can't be done. On Sun, May 8, 2011 at 5:41 PM, Stephen Johnson onepagewo...@gmail.comwrote: Yes it's possible. Make sure the property is indexed. From the data viewer you can perform the following query for example: select * from KIND where PROPERTY = NUMBER How you do it in code depends on if you're using JDO, Objectify, JPA, low-level API, etc. On Sun, May 8, 2011 at 5:14 PM, mscwd01 mscw...@gmail.com wrote: Hey I have an entity with an Int Array and I would like to perform a query on the contents of the Array. For example, I would like to return entities which have a certain number within the array, I.e. Select * From MyObject Where numberArray contains 2 Is this possible in any way, shape or form? 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: URGENT--Exception in running first app
Hi, I checked: newSetFromMap() method appears in jre 6: see the javadoc of jre 5.0 where it is not present at http://cupi2.uniandes.edu.co/web/javadoc/j2se/1.5.0/docs/api/java/util/Collections.html So, you must upgrade your jre to v6 for your code to work. regards didier On May 7, 9:06 pm, blue brandonjl...@gmail.com wrote: Please don't put URGENT in the title of your post, people don't like responding to someone who thinks their problem is more important than another. The error says to upgrade your JRE so you should start by upgrading your JRE to 1.6 first. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE+GDate+Dev mode+Proxy: can not access internet
Are yo using eclipse to debug? What OS are you using? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE+GDate+Dev mode+Proxy: can not access internet
Ways I setup proxy: 1. I'll set the proxy in the OS, then requests should be tunneled through. 2. I usually won't hard code it, b/c as soon as you deploy enviro changes 3. I'll change proxy in the eclipse networking configuration. If you code at work on a proxy, then you might setup more than one location. I usually have the most success with this depending on admin rights to OS. Test the proxy by trying to update or install. Eclipse Preferences search proxy setup the ports that you need to forward through the proxy. Brandon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Migration of data to HR Datastore
It's pretty small in the scheme of things (probably in the order of 500 referenced blobs) but there is obviously some effort in writing code to go and upload all the blobs again in the HR version of the app. Looks like that is the way forward though. Thanks for your input Brandon. Phil On May 7, 9:09 am, Brandon Donnelson branflake2...@gmail.com wrote: How much do you have? I would make a class to run as a task, and read the blobs then write them through a post to the other app. I can see the code overhead, because of new blobkey. Might have to break up tasks if you go over 10min. Brandon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How to inject with Guice into MapReduce job?
Creating MapReduce job I'd like to reuse existing manager and DAO classes and inject them using Guice - the way I do it in my app. Having already existing modules and ginjector that I use in my app how do get them injected into MapReduce job class? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: 1MB URL Fetch limit
Thank you for reply, Your idea is clear but In Google document list API upload option we need to use file object,and InputStream object is restricted class in App engine. And moreover enduser send document data in request body only. Thanks Mahesh.B -- 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.