[appengine-java] Request for best practice ideas for deployment of GWT JARs in AppEngine project

2012-02-11 Thread andrew
We use GWT in our GAE project for UI stuff, plus RPC to back-end.

In GWT you can use third party packages/modules that are packaged
into .jar files, and can include Java source for server side, client
side Java source (which is used during the GWT compile cycle to
produce javascript), native javascripts, image files, css, etc..

We have these GWT jar files in our /lib directory and reference them
from our class path, and our external ant build and Eclipse (with GWT
plugin) are quite happy with all that.

The GWT modules get compile, which generates the compiled javascript
and files in the module's 'public' directory (images, css, etc) in /
war.
So far, so good.

If a module has server side code (such as server side of an RPC the
client code does, etc), then these .class files must be deployed to
the server.

Until now we were copying these .jar to our /war/WEB-INF/lib/ for
deployment.

But I have just realized a few problems with unecessary deployment of
files due to that approach:
- if a gwt jar (say, gwt-maps.jar) comes with source files (even
Javadoc could be in there!) then we will also be deploying that
- the client-side java .class files in a library .jar (used to
generate javascript) will also be deployed, but never used on the
server.

I am not sure if that will make our app start-up slowed in AppEngine,
or not. Either way, not too nice.

What are other people doing in their build/deploy of GAE apps using
GWT to avoid such things?

-- 
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 with cloud SQL and hibernate

2012-02-11 Thread lisandrodc
Hi!
I have a problem with AppEngine SDK 1.5.1. On having to persist a
simple class,
the error is:
Caused by: java.lang.VerifyError: class
com.google.protos.cloud.sql.Client$SqlException overrides final method
getUnknownFields.()Lcom/google/appengine/repackaged/com/google/
protobuf/UnknownFieldSet;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)

Using the import:
import org.hibernate.tool.hbm2ddl.SchemaExport


The error (debugging) is in the line 4:
1.System.out.println(--- Setting up Hibernate
---);
2.Configuration cfg = new Configuration();
3.cfg.configure();
4.new SchemaExport(cfg).drop(true, true);
5.System.out.println(DONE.);

Will they be able to help me?

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



[appengine-java] GAE, hibernate and MySQL

2012-02-11 Thread lisandrodc
Hi!
I have a problem using Hibernate with MySQL.
ON having wanted to persist the error is:

Caused by: java.lang.ExceptionInInitializerError
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
282)
  ...
...
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)

The user and pass the MySQL is correct...
Viewing
https://forum.hibernate.org/viewtopic.php?f=1t=999288
It's a limitation from GAE.

Any solution?
But then if Cloud SQL, Hibernate admits ... since it would be the
configuration?

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



[appengine-java] Example simple application Hibernate with Cloud SQL

2012-02-11 Thread lisandrodc
Does someone know an  example of a simple application GAE with
Hibernate and Cloud SQL?
Supposedly Cloud SQL support.
(Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL in
Server)
The link:
https://developers.google.com/cloud-sql/
It does not mention anything with regard to Hibernate.

Thanks and 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: [google-appengine] Re: Task Queue Quota Errors, but I have enough quota

2012-02-11 Thread Simon Knott
I always liked this picture by Ikai for explaining Task Queue 
configurations - http://twitpic.com/3y5814/full

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/CtI5t_b-AxEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] PIL error - 'type 'ImagingCore' has type type 'ImagingCore', but expected one of: str, unicode,)'

2012-02-11 Thread googlefox
I am using PIL with GAE to do some image conversions. My app ran fine
in dev_appserver, but I am getting errors when I upload and run it in
GAE.

2012-02-10 13:18:11.907 type 'exceptions.TypeError'
E 2012-02-10 13:18:11.907 (type 'ImagingCore' has type type
'ImagingCore', but expected one of: str, unicode,)
E 2012-02-10 13:18:11.907 type 'ImagingCore' has type type
'ImagingCore', but expected one of: str, unicode

--

My WSGI handler already has 'debug=true'. I dont know why it is not
showing a full stacktrace.

Any idea why this call would fail?

feroze.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google App Engine community support is moving to Stack Overflow

2012-02-11 Thread Rick Mangi
Ive gotten my head bit off on stack-overflow for answering a question
in a way that the reader didn't agree with, but then again, at least
people answer questions there. I've yet to have a question asked in
the GAE-java google group get answered. Most of them are just ignored.


On Feb 7, 3:32 pm, Brandon Wirtz drak...@digerat.com wrote:
  Do you have examples of newbie questions that didn't get treated nicely on
  Stack Overflow?

 Most have them have been cleaned up, but why do you think I don't hang out
 there?  D-Nice, Necronet and a few others have flamed me for asking simple
 questions, usually about simple Java things.

 So even when the answer looks nice in hind sight, the Realtime experience is
 shit.



  I'm not aware of any trolls or poachers on the google-app-engine tag, and
 if
  they were any their answers are likely to get downvoted by the community
  (you!).

 You haven't been paying attention.  My guys get contacted through their
 OverFlow Specific email CONSTANTLY about other services, usually
 CloudFoundry related, but Generally 2-3 mails per post about Django, 10 if
 they post about a Java technology. They have gone to all sharing a single
 login for work stuff, to cut down on the spam.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: What is the email situation now?

2012-02-11 Thread Kaan Soral
Thanks for all your answers,

Greg how do you follow up with ISPs?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/WtDqUPCABugJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google App Engine community support is moving to Stack Overflow

2012-02-11 Thread Supercobra Thatbytes
I think this is a terrible idea because it makes people check 2 places and 
subscribe to 2 boards. Newcomers to this discussion will have a hard time 
knowing about this.

App Engine team does put enough resources for community and customer 
support. I have a paid app and I cannot get my simple billing questions 
answered. In the billing interface, there is no link or phone # to use. 
Just a link to this forum... unless we pay become a Premier Account for 
$500 / month but first we need to talk to the sales team. Really? So 
desperate users in need of urgent help post questions on forums and if they 
make enough noise and show enough distress, others users help them and 
sometimes, in with their immense goodwill and too little available time, 
Google Engineers help too.

Google App Engine team says, 'well support is best effort around here or 
get a Premier Account'. I think this is not the way to do it. Together with 
Google engineers, WE make Google products what they are because of our deep 
involvement. 

This lack of support is general across most Google products. Our company 
uses many Google products that are now business critical for us: Google 
Apps for Business, Checkout, Analytics, and more. With all of those, if you 
have a problem, well, it's your problem because you cannot contact anyone. 

So is it hard to provide good support? Not for every company. We use Amazon 
S3 and Cloud Service. We are a little tiny customers for them. The other 
day we had a problem that brought down our SaaS app. Emergency. What do you 
do when that happens? Well, simple. On Amazon AWS console, click on 'call 
me I need help now' button and a human calls you within a minute. 

So Google: use a tiny portion of the immense net revenue to add more 
community and product support engineers. I bet that will improve the bottom 
line even further.

One last BIG concern. One of the things that first get dropped when a 
product is going to be retired (i.e. killed) is developer and community 
support. Java and Python appengine discussion groups are being deprecated 
and dev support is moved to Stack Overflow. That does not sound like App 
Engine is going forward to me. More like a huge red flag. Is App Engine 
business in danger?

Telling Google users to use Stack Overflow is the equivalent of displaying 
a big sign on Google Groups home page saying use Stack Overflow, it's much 
better than what we have.

As other users suggested, Google should improve this forum software and 
make it work more like Stack Overflow and not move there... 




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-CMqxkvEya4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: PIL error - 'type 'ImagingCore' has type type 'ImagingCore', but expected one of: str, unicode,)'

2012-02-11 Thread Anand Mistry
Can you post a short reproducer? The exception itself doesn't appear very 
useful.

On Sunday, 12 February 2012 01:51:15 UTC+11, googlefox wrote:

 I am using PIL with GAE to do some image conversions. My app ran fine 
 in dev_appserver, but I am getting errors when I upload and run it in 
 GAE. 

 2012-02-10 13:18:11.907 type 'exceptions.TypeError' 
 E 2012-02-10 13:18:11.907 (type 'ImagingCore' has type type 
 'ImagingCore', but expected one of: str, unicode,) 
 E 2012-02-10 13:18:11.907 type 'ImagingCore' has type type 
 'ImagingCore', but expected one of: str, unicode 

 -- 

 My WSGI handler already has 'debug=true'. I dont know why it is not 
 showing a full stacktrace. 


This is an issue with webapp2 which has been fixed upstream 
(http://code.google.com/p/webapp-improved/issues/detail?id=34). Until we 
bundle an updated webapp2 version, you can always include the webapp2 
source with your application.
 


 Any idea why this call would fail? 

 feroze.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/aIaRRN3915kJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Totally impossible reported usage

2012-02-11 Thread klang...@gmail.com
Hi,

I had the same problem with my application yesterday
Unfortunately it didn't fix at the end of the day. So today there are
still: 2,147,483,347 emails.
Lucky I wasn't charged for any mail send yet :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Not able to upload code on server

2012-02-11 Thread Vikash Patel
Hello,

 I am trying to deploy my application on google app angine and it
shows me successfully deployed,
but when i checked the log there are all files compiled successfully,
also cloned but doesn't upload even one file.

Here is a process message which i got...

20% Scanning files on local disk.
25% Scanned 250 files.
28% Initiating update.
31% Cloning 109 static files.
33% Cloned 100 files.
34% Cloning 249 application files.
35% Cloned 100 files.
36% Cloned 200 files.

40% Uploading 0 files.

52% Initializing precompilation...
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.


See here at 40% process no file is going to upload...
Any suggestion for this.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Mail quota Problem

2012-02-11 Thread partnerke...@hotmail.com
Hello
Recipients Emailed %100 fills up quickly.
Estimated cost for the last 6 hours:$0.00* / $150.00 active. But it
does not send.

The problem is what do you think?

Thank You

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Full Text Search Options

2012-02-11 Thread Ernest Criss
You can try taking a look at http://www.thriftdb.com. I'm currently using 
it for my project until GAE's full text search api is made available.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Sgi12JjrKU4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] replace into query

2012-02-11 Thread steven
Hi,

Thank you in advance.

Just wondering whether Google App Engine has something equivalent to
replace into query, like mysql does.
So that,
It can add a new row, if the row does not exist.
or, update the row, if the row exist.

Thank you very much,
Sincerely,
Steven

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



RE: [google-appengine] Not able to upload code on server

2012-02-11 Thread Brandon Wirtz
 See here at 40% process no file is going to upload...
 Any suggestion for this.

Save your work so there is a change to the files next time :-)
Only half kidding. Make a change to a file Like add a comment. See if that
resolves it.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] replace into query

2012-02-11 Thread Amy Unruh
Steven,

If your application specifies an identifier string for an entity (e.g., see
http://code.google.com/appengine/docs/python/datastore/entities.html#Kinds_and_Identifiers),
then that is how it works. That is, when you do a 'put', if the entity
with that ID does not exist, it is created.  If an entity with that
identifier does already exist, then the 'put' updates the entity.

On Sun, Feb 12, 2012 at 8:48 AM, steven jobshif...@gmail.com wrote:

 Hi,

 Thank you in advance.

 Just wondering whether Google App Engine has something equivalent to
 replace into query, like mysql does.
 So that,
 It can add a new row, if the row does not exist.
 or, update the row, if the row exist.

 Thank you very much,
 Sincerely,
 Steven

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Mail quota Problem

2012-02-11 Thread Robert Kluin
They've been having a number of issues related to email quotas / usage
display.  You might file an issue with your appid so they can take a
look.


Robert




On Sat, Feb 11, 2012 at 08:35, partnerke...@hotmail.com
partnerke...@hotmail.com wrote:
 Hello
 Recipients Emailed %100 fills up quickly.
 Estimated cost for the last 6 hours:$0.00* / $150.00 active. But it
 does not send.

 The problem is what do you think?

 Thank You

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.