[appengine-java] Re: Netbeans support

2011-07-19 Thread Ian Marshall
Have you looked at

 
http://code.google.com/p/googleappengine/issues/detail?id=1294can=5sort=priority%20-statuscolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

Regards,

Ian


On Jul 17, 5:26 pm, Pascal Emile Fares pascal.emile.fa...@gmail.com
wrote:
 Hello,

 why there is no Netbeans support?

 Who is like me wich to have support for Netbeans like in Eclipse

 Regards

-- 
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] Re: Netbeans support

2011-07-19 Thread Liang Ding
Hi,

You can have a look at maven-gae-plugin:
http://code.google.com/p/maven-gae-plugin/,
and here http://code.google.com/p/b3log-solo/ is a real-world project with
NetBeans IDE, GAE/J and Maven.

On Tue, Jul 19, 2011 at 2:27 PM, Ian Marshall ianmarshall...@gmail.comwrote:

 Have you looked at



 http://code.google.com/p/googleappengine/issues/detail?id=1294can=5sort=priority%20-statuscolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

 Regards,

 Ian


 On Jul 17, 5:26 pm, Pascal Emile Fares pascal.emile.fa...@gmail.com
 wrote:
  Hello,
 
  why there is no Netbeans support?
 
  Who is like me wich to have support for Netbeans like in Eclipse
 
  Regards

 --
 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.




-- 
My Blog: http://88250.b3log.org

Open Source, Open Mind, Open Sight, Open Future!

-- 
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] 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 read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
at java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at 
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.FileInputStream.init(FileInputStream.java:130)
at java.io.FileInputStream.init(FileInputStream.java:96)

I tried placing the file both directly in the war and in the war/WEB-INF 
directories, the problem persists. The code on the server that attempts to 
read the file is as simple as this:

final FileInputStream fis = new 
FileInputStream(/war/WEB-INF/StaticContent.xml);

According to this article, I am doing everything correctly:
http://code.google.com/appengine/kb/java.html#readfile

Any help will be much appreciated.

-- 
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/-/TnMsvbMeBmoJ.
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] 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(cascade={CascadeType.PERSIST,CascadeType.REFRESH,CascadeType.REMOVE})
ListSmartItemdata;

// standard getters/setters
}

One of the fields above is data which is a collection of a another Entity 
class SmartItem.  
@Entity
public class SmartItem implements java.io.Serializable{
private static final long serialVersionUID = 4428700412206745337L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Key key;
public Key getKey() {
return key;
}
//bunch of persistent fields
}

Key key = 
KeyFactory.createKey(MyDataObject.class.getSimpleName(), newData.deviceId); 
newData.key = key;
em.persist(newData);
//em.merge(newData);

When I call em.persist for first time, the data is saved correctly. I see a 
list of my SmartItem objects in the datastore. When I call em.persist 
again for the same entiry MyDataObject, the SmartItems are appended and 
not replaced. Ex: First item I have my List data as list1, list2. 
Next I add list3 to my list and call em.persist(..). Now I see list1, 
list2, list1, list2, list3 items.  Tried em.merge and still same 
behavior. 

Anyone has suggestions? When I call em.persist(), I would like my nested 
Entity field item ListSmartItem data to just contain the new list and not 
the old entities.. 

Thanks
Neeli 


-- 
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/-/jw2M2-7kSucJ.
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] 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 application where the user can 
respond to a captcha, if necessary.  That's not practical in my case.

---

My reason for needing this is that I have a Java application using OFX4j to 
read bank transactions from a checking account.  I'd like to store these 
transactions in a GAE datastore for later access.  I cannot use OFX4j 
directly in GAE because it uses sockets.  So I will periodically run the 
Java application as a cron job.  It will call the RESTful web service in GAE 
to store the data.

Thank you for any help.

Rob

-- 
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/-/d4Svj1CJb-sJ.
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: 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 durand.did...@gmail.com 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+
 insfrastructure:http://www.quora.com/Can-someone-provide-some-information-about-Googl

 regards

 didier

 On Jul 19, 6:57 am, J.Ganesan j.gane...@datastoregwt.com wrote:







  I am curious to know the persistence engine used by Google +. Is it
  not Google App Engine ?

  J.Ganesan

-- 
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: 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 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Gm4mYhE7R60J.
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: 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 discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/vTXcL1iEBuUJ.
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: 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 bayc...@gmail.com 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 the below
 error is thrown at me:

 Caused by: java.security.AccessControlException: access denied
 (java.io.FilePermission /war/WEB-INF/StaticContent.xml read)
 at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
 at java.security.AccessController.checkPermission(AccessController.java:553)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
 at
 com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
 at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
 at java.io.FileInputStream.init(FileInputStream.java:130)
 at java.io.FileInputStream.init(FileInputStream.java:96)

 I tried placing the file both directly in the war and in the war/WEB-INF
 directories, the problem persists. The code on the server that attempts to
 read the file is as simple as this:

 final FileInputStream fis = new
 FileInputStream(/war/WEB-INF/StaticContent.xml);

 According to this article, I am doing everything 
 correctly:http://code.google.com/appengine/kb/java.html#readfile

 Any help will be much appreciated.

-- 
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: Reading static XML file on App Engine

2011-07-19 Thread Didier Durand


On Jul 19, 10:53 am, Simon Knott knott.si...@gmail.com 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 
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: 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 Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/qB7l6R50LXUJ.
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] 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, the 
browser is still pointing to the old version when I type in my URL. But when 
I type in the URL along with my new version like 
http://newversion.myapp.appspot.com, it is going to the new version. 

Anybody having samilar issues ?
The dashboard shows the normal status. 
We are having tough time telling our clients about the issue.  
Can some one from google please comment. 

Thanks

-- 
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/-/jtGMJHDb9K0J.
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] 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 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] 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 vik@gmail.com wrote:

 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 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.




-- 
Bruno Fuster

-- 
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] 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 brunofus...@gmail.com wrote:

 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 vik@gmail.com wrote:

 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 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.




 --
 Bruno Fuster

  --
 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] 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 HTTP Codes 200 or 403 if login succeed or failed.

Hope it helps.

Regards,



On Mon, Jul 18, 2011 at 11:59 PM, Rob r...@conaway58.com wrote:

 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 application where the user can
 respond to a captcha, if necessary.  That's not practical in my case.

 ---

 My reason for needing this is that I have a Java application using OFX4j to
 read bank transactions from a checking account.  I'd like to store these
 transactions in a GAE datastore for later access.  I cannot use OFX4j
 directly in GAE because it uses sockets.  So I will periodically run the
 Java application as a cron job.  It will call the RESTful web service in GAE
 to store the data.

 Thank you for any help.

 Rob

 --
 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/-/d4Svj1CJb-sJ.
 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.




-- 
Bruno Fuster

-- 
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] 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 fay...@gmail.com wrote:

 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 durand.did...@gmail.com 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+
  insfrastructure:
 http://www.quora.com/Can-someone-provide-some-information-about-Googl
 
  regards
 
  didier
 
  On Jul 19, 6:57 am, J.Ganesan j.gane...@datastoregwt.com wrote:
 
 
 
 
 
 
 
   I am curious to know the persistence engine used by Google +. Is it
   not Google App Engine ?
 
   J.Ganesan

 --
 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] 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 brunofus...@gmail.comwrote:

 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 HTTP Codes 200 or 403 if login succeed or failed.

 Hope it helps.

 Regards,



 On Mon, Jul 18, 2011 at 11:59 PM, Rob r...@conaway58.com wrote:

 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 application where the user can
 respond to a captcha, if necessary.  That's not practical in my case.

 ---

 My reason for needing this is that I have a Java application using OFX4j
 to read bank transactions from a checking account.  I'd like to store these
 transactions in a GAE datastore for later access.  I cannot use OFX4j
 directly in GAE because it uses sockets.  So I will periodically run the
 Java application as a cron job.  It will call the RESTful web service in GAE
 to store the data.

 Thank you for any help.

 Rob

 --
 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/-/d4Svj1CJb-sJ.
 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.




 --
 Bruno Fuster




-- 
Bruno Fuster

-- 
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] 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, Jul 19, 2011 at 10:49 AM, Vik vik@gmail.com wrote:

 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 brunofus...@gmail.comwrote:

 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 vik@gmail.com wrote:

 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 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.




 --
 Bruno Fuster

  --
 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.




-- 
Bruno Fuster

-- 
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] 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 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] 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 in 16 seconds.
Will check again in 32 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
...

java.lang.RuntimeException: Version not ready.
at 
com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:568)
at 
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:154)
at 
com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:284)
at 
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:48)
at 
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:265)
at 
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:144)
at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

But I am able to upload the same app to to my development environment.

Any suggestions or any one having similar 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/-/EXhHf9AlkOAJ.
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] 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 brunofus...@gmail.com wrote:

 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, Jul 19, 2011 at 10:49 AM, Vik vik@gmail.com wrote:

 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 brunofus...@gmail.comwrote:

 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 vik@gmail.com wrote:

 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 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.




 --
 Bruno Fuster

  --
 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.




 --
 Bruno Fuster

  --
 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: 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 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] 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 = new StringBuffer();
while( (ret = istream.read(buff))  0 ){
ByteBuffer bb = ByteBuffer.wrap(buff, 0, ret);
Charset csets = Charset.forName(US-ASCII);
CharBuffer encoded = csets.decode(bb);
xmlString.append(encoded.toString());
count += ret;
}
istream.close();
...
doXmlWorker(xmlString.toString());
...

In appengine-web-app.xml add

resource-files
include path=/data/**.* /

/resource-files



-- 
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/-/1ktYrx_9M-sJ.
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] 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(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName = datanucleus, key = gae.encoded-pk, value =
true)
private String id;

@Persistent(defaultFetchGroup = true)
@Embedded
private DelayedEffect delayedEffect;
}

-

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
true)
@Inheritance(customStrategy = complete-table)
public abstract class DelayedEffect implements Serializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName = datanucleus, key = gae.encoded-pk, value =
true)
protected String id;
}

-

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
true)
@Inheritance(customStrategy = complete-table)
public class SlowOpponentDelayedEffect extends DelayedEffect {
@Persistent
private int slowStrength;
}



When persisting the Move object (code snippet below), I get the following
exception:

java.lang.RuntimeException: Unable to locate
com.fiveorbs.shared.models.SlowOpponentDelayedEffect.slowStrength in
embedded meta-data map.  This is most likely an App Engine bug.
at
org.datanucleus.store.appengine.DatastoreFieldManager.buildMappingConsumer(DatastoreFieldManager.java:1211)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeEmbeddedField(DatastoreFieldManager.java:984)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(DatastoreFieldManager.java:810)


final Move move = new Move();
final SlowOpponentDelayedEffect effect = new SlowOpponentDelayedEffect();
effect.setSlowStrength(5);
move.setDelayedEffect(effect);

final PersistenceManager pm = this.newPersistenceManager();
final Move persistent = pm.makePersistent(move); // Exception is thrown
there


Please note that I have no problem when trying to persist embedded fields
that do not involve inheritance.
I googled around, but could not find anyone with a similar issue (except
here http://hoangle.info/2010/07/06/jpa-in-google-app-engine-embedded/,
but it involves JPA).

Does anyone has any clue as to what the problem could be?

Thanks in advance for your help,
-- 
seb

-- 
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] 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@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: 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 sebastien.tr...@gmail.com

 Hello,

 I have the following classes:

 
 @PersistenceCapable(detachable = true, identityType =
 IdentityType.APPLICATION)
 @Inheritance(customStrategy = complete-table)
 public class Move implements Cloneable, Serializable {

 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
 @Extension(vendorName = datanucleus, key = gae.encoded-pk, value =
 true)
 private String id;

 @Persistent(defaultFetchGroup = true)
 @Embedded
 private DelayedEffect delayedEffect;
 }

 -

 @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
 true)
 @Inheritance(customStrategy = complete-table)
 public abstract class DelayedEffect implements Serializable {

 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
 @Extension(vendorName = datanucleus, key = gae.encoded-pk, value =
 true)
 protected String id;
 }

 -

 @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
 true)
 @Inheritance(customStrategy = complete-table)
 public class SlowOpponentDelayedEffect extends DelayedEffect {
 @Persistent
 private int slowStrength;
 }

 

 When persisting the Move object (code snippet below), I get the following
 exception:

 java.lang.RuntimeException: Unable to locate
 com.fiveorbs.shared.models.SlowOpponentDelayedEffect.slowStrength in
 embedded meta-data map.  This is most likely an App Engine bug.
 at
 org.datanucleus.store.appengine.DatastoreFieldManager.buildMappingConsumer(DatastoreFieldManager.java:1211)
  at
 org.datanucleus.store.appengine.DatastoreFieldManager.storeEmbeddedField(DatastoreFieldManager.java:984)
 at
 org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(DatastoreFieldManager.java:810)

 
 final Move move = new Move();
 final SlowOpponentDelayedEffect effect = new SlowOpponentDelayedEffect();
 effect.setSlowStrength(5);
 move.setDelayedEffect(effect);

 final PersistenceManager pm = this.newPersistenceManager();
 final Move persistent = pm.makePersistent(move); // Exception is thrown
 there

 
 Please note that I have no problem when trying to persist embedded fields
 that do not involve inheritance.
 I googled around, but could not find anyone with a similar issue (except
 here http://hoangle.info/2010/07/06/jpa-in-google-app-engine-embedded/,
 but it involves JPA).

 Does anyone has any clue as to what the problem could be?

 Thanks in advance for your help,
 --
 seb




-- 
Seb

-- 
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] 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 ListLong of friends. In JPA I am able to do 
something like this SELECT FROM User u WHERE u.friends.contains(:myId). 
However, I haven't figured out how to do this with low-level datastore API. 
The Query.FilterOperation enum doesn't have a CONTAINS constant.

I really want to use low-level datastore API to be able to use paging 
operations. I could do some sort of paging using JPA too, but I don't want 
to do that.

Thanks,
Gaurav

-- 
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/-/6Ezy_-yx5JoJ.
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] 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 key...@gmail.com 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 ListLong of friends. In JPA I am able to do
 something like this SELECT FROM User u WHERE u.friends.contains(:myId).
 However, I haven't figured out how to do this with low-level datastore API.
 The Query.FilterOperation enum doesn't have a CONTAINS constant.

 I really want to use low-level datastore API to be able to use paging
 operations. I could do some sort of paging using JPA too, but I don't want
 to do that.

 Thanks,
 Gaurav

 --
 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/-/6Ezy_-yx5JoJ.
 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.




-- 
Bruno Fuster

-- 
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] 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 brunofus...@gmail.com wrote:

 select * from User where friends in (200,300,400)


 On Tue, Jul 19, 2011 at 3:46 PM, keyvez key...@gmail.com 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 ListLong of friends. In JPA I am able to do
 something like this SELECT FROM User u WHERE u.friends.contains(:myId).
 However, I haven't figured out how to do this with low-level datastore API.
 The Query.FilterOperation enum doesn't have a CONTAINS constant.

 I really want to use low-level datastore API to be able to use paging
 operations. I could do some sort of paging using JPA too, but I don't want
 to do that.

 Thanks,
 Gaurav

 --
 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/-/6Ezy_-yx5JoJ.
 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.




 --
 Bruno Fuster




-- 
Bruno Fuster

-- 
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] 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 least they'd see a more descriptive chat
invitation, and IM messages.

To do this, I've tried various XMPP/Jabber client apps to attempt to
log into the @appengine.com XMPP servers, but I can't seem to get it
right.  I am hoping that if I could log in this way, I could simply
change my account's vCard.

Any help would be greatly appreciated.
Cheers,
Dan.
(main nerd at www.p-qr.com)

-- 
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] 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-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: 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 durand.did...@gmail.com wrote:
 Hi,

 did you check oldImage.getFormat() to make sure that the initial PNG
 format is properly detected ?

 regards

 didier

 On Jul 18, 7:39 am, Zhenyu Wang wingzer...@gmail.com wrote:







  String iUrl = 
  http://upload.wikimedia.org/wikipedia/commons/5/5c/Torchlight_help.png;;
  URLFetchService fetchService = URLFetchServiceFactory.getURLFetchService();
  HTTPResponse fetchResponse = fetchService.fetch(new URL(iUrl));

  byte[] oldImageData = fetchResponse.getContent();
  Image oldImage = ImagesServiceFactory.makeImage(oldImageData);

  ImagesService imagesService = ImagesServiceFactory.getImagesService();
  Transform resize = ImagesServiceFactory.makeRotate(0);
  OutputSettings os = new OutputSettings(ImagesService.OutputEncoding.JPEG);
  Image newImage = imagesService.applyTransform(resize, oldImage, os);
  byte[] newImageData = newImage.getImageData();

  res.setContentType(image/jpeg);
  res.getOutputStream().write(newImageData);

-- 
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] 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 patrick.god...@gmail.com wrote:
 Hello,
 I'm using Google plugin for Eclipse 3.6, and Javadoc is missing for many
 classes: servlet, Cache, Json, etc.
 Did I miss something? Is it a config problem?
 Thanks,
 Patrick

 --
 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/-/ME2NRAY8tNQJ.
 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.




-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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] 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.

Thanks,
/dmc

On Sun, Jul 17, 2011 at 4:07 AM, sunil sunilkumar9...@gmail.com wrote:
 Hi guys ,

  I have problem in installing the Google app engine plugin(Java) for
 Eclipse Indigo,I am Installing for Indigo Java EE IDE, I downloaded
 the Google Archive and try to Install but IDE says two are more files
 missing during installation.
 I want to know whether they are any supporting file to be installed to
 eclipse.
 .

 --
 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.





-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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] 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 * FROM User WHERE friends.contains(1)

the IN version looks like this

SELECT * FROM User WHERE friends IN (1)

which would return id=3 as a result but it is wrong, I am expecting to see 
id=2,3,4 be returned in the result set. Because they are all friends with 
one.

Also I HAVE to do this through the low level datastore API to utilize the 
cursor feature.

Thanks,
Gaurav

-- 
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/-/XV-oATd4fjUJ.
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] Contains query Low Level datastore

2011-07-19 Thread Jeff Schnitzer
It's actually much simpler than you realize.  Assuming that your ListLong
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 filter.

Jeff

On Tue, Jul 19, 2011 at 5:28 PM, keyvez key...@gmail.com wrote:

 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 * FROM User WHERE friends.contains(1)

 the IN version looks like this

 SELECT * FROM User WHERE friends IN (1)

 which would return id=3 as a result but it is wrong, I am expecting to see
 id=2,3,4 be returned in the result set. Because they are all friends with
 one.

 Also I HAVE to do this through the low level datastore API to utilize the
 cursor feature.

 Thanks,
 Gaurav

 --
 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/-/XV-oATd4fjUJ.

 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] 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 someone at
the same time you can loose some followers due to concurrent writes, which
can also lead to datastore contention

I would also encourage you to create a new domain with these keys
information, so you wont need to write at the same entity list, you can just
add or remove record



On Tue, Jul 19, 2011 at 10:00 PM, Jeff Schnitzer j...@infohazard.orgwrote:

 It's actually much simpler than you realize.  Assuming that your ListLong
 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 filter.

 Jeff


 On Tue, Jul 19, 2011 at 5:28 PM, keyvez key...@gmail.com wrote:

 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 * FROM User WHERE friends.contains(1)

 the IN version looks like this

 SELECT * FROM User WHERE friends IN (1)

 which would return id=3 as a result but it is wrong, I am expecting to
 see id=2,3,4 be returned in the result set. Because they are all friends
 with one.

 Also I HAVE to do this through the low level datastore API to utilize the
 cursor feature.

 Thanks,
 Gaurav

 --
 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/-/XV-oATd4fjUJ.

 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.




-- 
Bruno Fuster

-- 
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] 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 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: 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 wingzer...@gmail.com 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 durand.did...@gmail.com wrote:

  Hi,

  did you check oldImage.getFormat() to make sure that the initial PNG
  format is properly detected ?

  regards

  didier

  On Jul 18, 7:39 am, Zhenyu Wang wingzer...@gmail.com wrote:

   String iUrl = 
   http://upload.wikimedia.org/wikipedia/commons/5/5c/Torchlight_help.png;;
   URLFetchService fetchService = 
   URLFetchServiceFactory.getURLFetchService();
   HTTPResponse fetchResponse = fetchService.fetch(new URL(iUrl));

   byte[] oldImageData = fetchResponse.getContent();
   Image oldImage = ImagesServiceFactory.makeImage(oldImageData);

   ImagesService imagesService = ImagesServiceFactory.getImagesService();
   Transform resize = ImagesServiceFactory.makeRotate(0);
   OutputSettings os = new OutputSettings(ImagesService.OutputEncoding.JPEG);
   Image newImage = imagesService.applyTransform(resize, oldImage, os);
   byte[] newImageData = newImage.getImageData();

   res.setContentType(image/jpeg);
   res.getOutputStream().write(newImageData);



-- 
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: 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 dan.bour...@gmail.com 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, 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 least they'd see a more descriptive chat
 invitation, and IM messages.

 To do this, I've tried various XMPP/Jabber client apps to attempt to
 log into the @appengine.com XMPP servers, but I can't seem to get it
 right.  I am hoping that if I could log in this way, I could simply
 change my account's vCard.

 Any help would be greatly appreciated.
 Cheers,
 Dan.
 (main nerd atwww.p-qr.com)

-- 
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.