[appengine-java] Re: Any way to change my appengine's XMPP account settings?

2011-07-19 Thread Dan Bourque
Oops, slight correction: I meant to say app...@appspot.com everywhere, not @appengine. Sorry 'bout dat. Cheers, Dan. On Jul 19, 1:36 pm, Dan Bourque wrote: > Hi all, > > My GAE webapp uses the XMPP service to send IM messages to my > customers.  However, all they see is "pqr-...@appengine.com"

[appengine-java] Re: Help...How to convert png to jpg? Every time got black/orange background...

2011-07-19 Thread Didier Durand
Hi, Then, you should open an issue to get it fixed regards didier On Jul 19, 11:24 pm, Zhenyu wrote: > Hi Didier, > > It is PNG. > You can change any other PNG images to test. > > GAE can NOT handle transparent when convert PNG to JPEG. > > Regards, > > On Jul 18, 6:34 pm, Didier Durand wrote

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread keyvez
Thanks Jeff and Bruno, will try that out. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/0TM8G5toDwYJ. To post to this group, send e

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread Bruno Fuster
just like Jeff said, it will work using a simple equality filter you can find who's friend with 1 *or* 2 using IN (eg: who is friend with 1, 2 *or* 3) if you need to find who's friend with 1 *and* 2, query using 2 equality filters anyway, be careful with lists... if you have 2 friends following s

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread Jeff Schnitzer
It's actually much simpler than you realize. Assuming that your List is an indexed property named 'friends', you just need to filter entities for 'friends' equal to your id. This is how list indexes work - if you filter on the property, the entity matches if any value in the list matches the filt

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread keyvez
Thanks for your quick response. After looking into the IN operator, it doesn't seem to be what I need. My table looks like this. User table: id friends 15 21, 4 31 41, 2 51 I would like to find out who are user 1's friends so the query would be something like this SELECT

Re: [appengine-java] Installation problem in Google plugin

2011-07-19 Thread David Chandler
Hi sunil, I've seen a couple reports of this, but have thus far been unable to reproduce it. Can you please provide: Your OS Update site URL you're using The actual error message Also it would be helpful to open the Eclipse Errors view and post any error logs from the installation process. Than

Re: [appengine-java] Javadoc missing in Google plugin for Eclipse

2011-07-19 Thread David Chandler
Hmmm, I see some missing Javadocs, too, in the latest GAE SDK. If you press F3 to inspect the Servlet type, which jar is it coming from? /dmc On Mon, Jul 18, 2011 at 6:57 AM, Patrick wrote: > Hello, > I'm using Google plugin for Eclipse 3.6, and Javadoc is missing for many > classes: servlet, Ca

[appengine-java] Re: Help...How to convert png to jpg? Every time got black/orange background...

2011-07-19 Thread Zhenyu
Hi Didier, It is PNG. You can change any other PNG images to test. GAE can NOT handle transparent when convert PNG to JPEG. Regards, On Jul 18, 6:34 pm, Didier Durand wrote: > Hi, > > did you check oldImage.getFormat() to make sure that the initial PNG > format is properly detected ? > > regar

[appengine-java] Want to run Grails on Google App Engine

2011-07-19 Thread Marcel Overdijk
Join the discussion at: http://goo.gl/sT7uT -- 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-appengin

[appengine-java] Any way to change my appengine's XMPP account settings?

2011-07-19 Thread Dan Bourque
Hi all, My GAE webapp uses the XMPP service to send IM messages to my customers. However, all they see is "pqr-...@appengine.com", with no picture, no descriptive name, no vCard. Is there a way for me to change the XMPP/Jabber account's settings, to add my company's logo and name? That way, at

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread Bruno Fuster
Use the IN constant http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.FilterOperator.html#IN On Tue, Jul 19, 2011 at 3:49 PM, Bruno Fuster wrote: > select * from User where friends in (200,300,400) > > > On Tue, Jul 19, 2011 at 3:46 PM, keyvez wrote: >

Re: [appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread Bruno Fuster
select * from User where friends in (200,300,400) On Tue, Jul 19, 2011 at 3:46 PM, keyvez wrote: > Hi, > > I need help with doing a query that uses a "contains" filter operation. The > specific use case is that I have to find all users that are have me as a > friend. The User class has a List of

[appengine-java] "Contains" query Low Level datastore

2011-07-19 Thread keyvez
Hi, I need help with doing a query that uses a "contains" filter operation. The specific use case is that I have to find all users that are have me as a friend. The User class has a List of friends. In JPA I am able to do something like this "SELECT FROM User u WHERE u.friends.contains(:myId)".

[appengine-java] Re: Polymorphic @Embedded using JDO

2011-07-19 Thread Sébastien Tromp
Sorry, didn't see that polymorphic relationships were not supported: http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Polymorphic_Relationships 2011/7/19 Sébastien Tromp > Hello, > > I have the following classes: > > > @PersistenceC

[appengine-java] any library to convert google code wiki format text to html ?

2011-07-19 Thread Prashant
is there any library available which can be used on GAE/Java to convert google wiki format text to html ? Thanks, Prashant -- 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@

[appengine-java] Polymorphic @Embedded using JDO

2011-07-19 Thread Sébastien Tromp
Hello, I have the following classes: @PersistenceCapable(detachable = "true", identityType = IdentityType.APPLICATION) @Inheritance(customStrategy = "complete-table") public class Move implements Cloneable, Serializable { @PrimaryKey @Persistent(value

Re: [appengine-java] Reading static XML file on App Engine

2011-07-19 Thread de Witte
We use the following code snippet, for a static file stored in /war/data/rules.xml ... File file = new File("data/content.xml"); FileInputStream istream = new FileInputStream(file); int ret = 0, count = 0; byte[] buff = new byte[2048]; StringBuffer xmlString

Re: [appengine-java] Reading static XML file on App Engine

2011-07-19 Thread Stephen Johnson
You need to get the real file path. Use: getServletContext().getRealPath("/WEB-INF/") Stephen On Mon, Jul 18, 2011 at 12:37 PM, bb wrote: > Hello, > I have a static XML file in my App Engine app that uploads just fine and I > am trying to read it for some rules based execution logic, but t

[appengine-java] Re: JPA em.persist() saving old copies of nested Entity class

2011-07-19 Thread Kesava Neeli
Hi, Any one has suggestions to my issue? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/_j8bIC6qa54J. To post to this group, send e

Re: [appengine-java] calling restful services

2011-07-19 Thread Vik
Thanks a lot Bruno. You rock! Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jul 19, 2011 at 7:40 PM, Bruno Fuster wrote: > public class BlaController { > > private final URLFetchService urlFetchService = URLFetchServiceFactory > .getURLFetchService(

[appengine-java] Not able to upload new version of my app

2011-07-19 Thread oceandrive
I am getting version not ready error when I try to upload a new version to my production environment. Initializing precompilation... Deploying new version. Will check again in 1 seconds. Will check again in 2 seconds. Will check again in 4 seconds. Will check again in 8 seconds. Will check again

[appengine-java] New Pricing Model

2011-07-19 Thread Ricardo Boscollo
Hello, I would like to estimate how much my application will cost to me. Let's imagine that I have 1 million users and each user has 100 pageviews per day, each views has 100 Kb data transfer and 10 database query. How much does it cost me per day? Thanks, Ricardo -- You received this message

Re: [appengine-java] calling restful services

2011-07-19 Thread Bruno Fuster
public class BlaController { private final URLFetchService urlFetchService = URLFetchServiceFactory. getURLFetchService(); public void bla() { HTTPResponse response = urlFetchService.fetch(new HTTPRequest(new URL(" http://url";))); String content = response.getContent(); } } On Tue, J

Re: [appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Bruno Fuster
A very simple solution is to use a filter that checks whether a method has a particular annotation. My auth methods have an annotation called @AuthRequired that will only succeed if the user is ok and then inject that user into my resources. On Tue, Jul 19, 2011 at 11:00 AM, Bruno Fuster wrote:

Re: [appengine-java] Re: does Google+ use GAE ?

2011-07-19 Thread Ikai Lan (Google)
Nope, but it uses many of the same technologies. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Tue, Jul 19, 2011 at 8:41 AM, tempy wrote: > Could it be that

Re: [appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Bruno Fuster
Hi Rob, I'm developing an iphone app using GAE as a RESTful back-end and I've implemented my own auth using HTTP Digest over SSL. RESTful services should be stateless, so each authenticated call should send the user information (tokens or login/pass). To Login, just create a service that returns

Re: [appengine-java] calling restful services

2011-07-19 Thread Vik
tx any usage example? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, Jul 19, 2011 at 7:12 PM, Bruno Fuster wrote: > URLFetchService? > > > http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/URLFetchService.html#fetch(co

Re: [appengine-java] calling restful services

2011-07-19 Thread Bruno Fuster
URLFetchService? http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/URLFetchService.html#fetch(com.google.appengine.api.urlfetch.HTTPRequest) On Tue, Jul 19, 2011 at 10:04 AM, Vik wrote: > Hie > > Can some one please guide on how to invoke a restful api from s

[appengine-java] calling restful services

2011-07-19 Thread Vik
Hie Can some one please guide on how to invoke a restful api from server Impl class? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this g

[appengine-java] Too many deadline exceptions for past 12 hours and many more issues

2011-07-19 Thread oceandrive
We have been experiencing too many deadline exceptions for past 12 hours. Another issue that we are having is that we are not able to move to a new version. Yesterday we have uploaded a new version of our application with the changes and from the dashboard when I make my new version default, th

[appengine-java] Отг: Re: Higher than expected latencies, 2011 Jul 14 9-11pm PDT/GMT-7

2011-07-19 Thread Miroslav Genov
The issue is similar with my app. It looks like that latencies are still high. http://code.google.com/status/appengine/detail/serving-java/2011/07/19#ae-trust-detail-helloworld-get-java-latency -- You received this message because you are subscribed to the Google Groups "Google App Engine for

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Didier Durand
On Jul 19, 10:53 am, Simon Knott wrote: > Oops, read that link without any coffee!  It obviously states that you > *can*use the FileInputStream class - have you tried dropping the "war" bit off > your filepath? -- You received this message because you are subscribed to the Google Groups "Goo

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Didier Durand
Hi, Did you properly set up auths for access to static content See http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files regards didier On Jul 18, 9:37 pm, bb wrote: > Hello, > I have a static XML file in my App Engine app that uploads just fine and

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Simon Knott
Oops, read that link without any coffee! It obviously states that you *can*use the FileInputStream class - have you tried dropping the "war" bit off your filepath? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this dis

[appengine-java] Re: Reading static XML file on App Engine

2011-07-19 Thread Simon Knott
The link you've provided states that you can't use FileInputStream, as it's not a whitelisted class. Have you tried placing the XML file into your classes directory and using getClass().*getResourceAsStream()?* -- You received this message because you are subscribed to the Google Groups "G

[appengine-java] Re: does Google+ use GAE ?

2011-07-19 Thread tempy
Could it be that the load created by g+ is responsible for the recent chaos and lack of reliability? On Jul 19, 7:47 am, Didier Durand wrote: > Hi, > > J. Smarr, tech lead for G+,  says: "Our backends are built mostly on > top of BigTable and Colossus/GFS" in this short description of Google+ > i

[appengine-java] Call an authenticated web service from a desktop app.

2011-07-19 Thread Rob
I'd like to create a RESTful web service in GAE. I want to restrict access with authentication. I want to call the service from a Java program that is run unattended. How can I authenticate from the Java program? I see ClientLogin, but that seems to be oriented toward an interactive applicat

[appengine-java] JPA em.persist() saving old copies of nested Entity class

2011-07-19 Thread Kesava Neeli
Hi, I have a question on nested Entity class using JPA framework on appengine. I have code liek this.. @Entity public class MyDataObject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Key key; // some persistent fields of standatd types @Basic @OneToOne(

[appengine-java] Reading static XML file on App Engine

2011-07-19 Thread bb
Hello, I have a static XML file in my App Engine app that uploads just fine and I am trying to read it for some rules based execution logic, but the below error is thrown at me: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /war/WEB-INF/StaticContent.xml