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

2012-03-08 Thread Jeff Schnitzer
I find that you're either one of those people who lives on
StackOverflow or you're one of those people who only visits when
they're searching for something specific.  I'm the later myself; I
can't "follow" SO the way I follow an email list.  Truth be told, I
have the google-appengine list and the google-appengine-java list both
dumped to a common label in gmail, so combining the mailing lists
really makes no difference to me.  Actually it improves the situation,
since most discussions really end up being GAE-general.

But yeah, SO is tough to "follow".  I'm not sure it's really all that
useful to try.

Jeff

On Thu, Mar 8, 2012 at 7:30 PM, Shawn Brown  wrote:
>> When you're searching, you can specify a tag by putting it in square
>> brackets. E.g. if you search for:
>>  [google-app-engine] [java] spring
>> this will retrieve questions tagged with [google-app-engine] and [java], and
>> containing 'spring'.
>
> Thanks Amy,
>
> It's weird.  Here's what worked.
>
> [google-app-engine] +java
> then sort by newest
>
> Here's what didn't work
>
> [google-app-engine] java
> because the site changed it to [google-app-engine] [java]
> BUT many posts are not tagged as java though they contained java in
> the post which is what I was looking for but not showing up
>
> Thanks for your help.
> Shawn
>
> --
> 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: (Jersey 1.11) Unable to compile class for JSP error.

2012-03-08 Thread Keeyong
I also posted this to stack overflow (I saw the announcement of moving
to stack overflow for support only after posting to this group).

-K

On Mar 8, 4:29 pm, Keeyong  wrote:
> I am getting this error only in local dev machine:
>
> ===
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 11 in the generated java file
> The import  cannot be resolved
> ===
>
> Line #11 is importing some internal classes and again this works fine
> in production. I am using Eclipse 3.7 with corresponding Google App
> Engine plugin on Mac.
>
> I have been stuck on this problem for the last 2 days. Please someone
> helps me!
>
> -K

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



[appengine-java] How to call a backends job from cron job in java

2012-03-08 Thread Jinju
https://groups.google.com/forum/#!topic/google-cloud-sql-discuss/s1-q7y-JP0E<#%21topic/google-cloud-sql-discuss/s1-q7y-JP0E>

-- 
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/-/hoQEXhunmo8J.
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] (Jersey 1.11) Unable to compile class for JSP error.

2012-03-08 Thread Keeyong
I am getting this error only in local dev machine:

===
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 11 in the generated java file
The import  cannot be resolved
===

Line #11 is importing some internal classes and again this works fine
in production. I am using Eclipse 3.7 with corresponding Google App
Engine plugin on Mac.

I have been stuck on this problem for the last 2 days. Please someone
helps me!

-K

-- 
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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
> When you're searching, you can specify a tag by putting it in square
> brackets. E.g. if you search for:
>  [google-app-engine] [java] spring
> this will retrieve questions tagged with [google-app-engine] and [java], and
> containing 'spring'.

Thanks Amy,

It's weird.  Here's what worked.

[google-app-engine] +java
then sort by newest

Here's what didn't work

[google-app-engine] java
because the site changed it to [google-app-engine] [java]
BUT many posts are not tagged as java though they contained java in
the post which is what I was looking for but not showing up

Thanks for your help.
Shawn

-- 
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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Amy Unruh
Shawn,

You might try searching on the tags specifically.  E.g. try:
 http://stackoverflow.com/questions/tagged/google-app-engine+java
This should bring up a list sorted by (by default) newest first, though you
can change the sort via the tabs at the top of the page.

When you're searching, you can specify a tag by putting it in square
brackets. E.g. if you search for:
 [google-app-engine] [java] spring
this will retrieve questions tagged with [google-app-engine] and [java],
and containing 'spring'.


On Thu, Mar 8, 2012 at 3:50 PM, Shawn Brown wrote:

> > Search for "google-app-engine java".
> I still don't get it.
>
> searching pulls up results that are seemingly unordered by time
>
> using a Stack Overflow filter (to notify by email or display current
> results) doesn't find "java" related posts.
>
> YUCK.
>
> It'd be nice to be able to just follow the java version especially
> when a new release come out with it's inevitable problems.  It helps
> me pin down what might be wrong.  Also, do we need to have to follow
> two lists ...
>
> Maybe I'll get used to it.  I hate it for now.
>
> --
> 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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
> Search for "google-app-engine java".
I still don't get it.

searching pulls up results that are seemingly unordered by time

using a Stack Overflow filter (to notify by email or display current
results) doesn't find "java" related posts.

YUCK.

It'd be nice to be able to just follow the java version especially
when a new release come out with it's inevitable problems.  It helps
me pin down what might be wrong.  Also, do we need to have to follow
two lists ...

Maybe I'll get used to it.  I hate it for now.

-- 
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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Jeff Schnitzer
On Thu, Mar 8, 2012 at 6:27 PM, Shawn Brown  wrote:
>> Questions tagged with 'google-app-engine':
>>   http://stackoverflow.com/questions/tagged/google-app-engine
>
> I don't understand how to get java specific questions.  It's not
> useful and a huge waste of time to have to sort through the python
> stuff for me.  This sucks and it seems like google is losing it's mojo
> if it takes the natural categories and lumps them into one less useful
> one.

Search for "google-app-engine java".

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
> Questions tagged with 'google-app-engine':
>   http://stackoverflow.com/questions/tagged/google-app-engine

I don't understand how to get java specific questions.  It's not
useful and a huge waste of time to have to sort through the python
stuff for me.  This sucks and it seems like google is losing it's mojo
if it takes the natural categories and lumps them into one less useful
one.

Shawn

-- 
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: Uploading Files to Blobstore from external app

2012-03-08 Thread Stuart Langley
Is that the actual code?

You need to call createUploadURL for each blob you want to upload.

On Friday, 9 March 2012 00:03:43 UTC+11, Killian wrote:
>
> Hi Lads,
>
> This issue has been bugging me for a while now and just wasted the last 2 
> days with no solution found. I'm getting desperate at this stage ! 
>
> My aim was to use the Task Queue Pull service to run some NLP processing 
> outside of app engine on an external VM. That's working fine however all 
> the trouble started when I discovered that the output produced by the 
> external VM could be fed back into the Task Queue. Following the example in 
> the Google I/O video http://youtu.be/AM0ZPO7-lcE , I then decided to 
> provide the response of the task queue as a Blob upload to the app engine.
> So I have the working example 
> http://code.google.com/appengine/docs/java/blobstore/overview.htmlimplement 
> and working perfectly. (ie: I can manually upload a file using 
> the jsp form and store it).
>
> The problem is that for obvious reasons I need to send this post request 
> from the VM programmatically. And that's were things start getting messy. 
> Since the video only provides an example in Python and not in java I've 
> been struggling find a solution to this.
>
> Looking around it seems like I need the httpcomponents-client-4.1.3 apache 
> library to create post requests. 
> So this is the workflow I have: 
> I generate the upload url from the app engine side and place it in the 
> task queue payload which is then retrieved by the VM correctly.
>
> on the VM side this is what I do:
>
> String uploadURL = 
> "http:///_ah/upload/agtsaW5ndWFib3gxMHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGAEM"
> ;
>
>  DefaultHttpClient httpclient = new DefaultHttpClient();
>
>  HttpPost method = new HttpPost(uploadURL);
>
>  MultipartEntity entity = new MultipartEntity();
>
>  File f = new File("dummyFileToUpload.txt");
>
>  FileBody fileBody = new FileBody(f);
>
>  entity.addPart("myFile", fileBody);
>
>  method.setEntity(entity);
>
> HttpResponse response = httpclient.execute(method);
>
>  System.out.println(response.getStatusLine());
>
> PROBLEM: 
>
> When I do this both in development mode or production mode, I receive a 
> "http 404 not found" response. and it seems like the upload servlet isn't 
> run at all (if I'm in deug mode for instance). However when I look in the 
> blob store, the blob was indeed uploaded correctly which is good news of 
> course however it means I can't get a proper response from the app engine 
> side and more importantly can't run anything in the upload servlet.
>
> I'm guessing my post request mustn't be created properly which would 
> explain why the app engine side is reacting weird? Is there anything 
> obviously wrong in my approach?
>
> Would really appreciate any advice on this. 
>
> Thanks in advance :-)
>
>
>
>
>
>  
>

-- 
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/-/Az5y4fUBguwJ.
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: Slow cold starts

2012-03-08 Thread Mark Rathwell
Just wanted to follow up on this:

Idle instances set to 1:  7 of 10 requests were loading requests (20-30 seconds)
Idle instances set to 2:  3 of 9 requests were loading requests (and
cost was about 4 times as much)

This is a test app, with no other traffic, no new versions uploaded,
etc., and these requests were about once a day for the last few weeks.
 I'm giving up on finding a setting that will mimic always on for low
traffic apps, and just setting up a cron job to ping the apps
regularly.


On Wed, Feb 29, 2012 at 10:51 PM, Anders  wrote:
> Hmm... Not good. Google writes that setting minimum number of instances
> means keeping them in reserve so that cold starts will be unlikely unless
> there are exceptionally high load spikes. Sounds like a bug in GAE then if
> your application is set to minimum one instance and you still get many cold
> starts.
>
> Plus to Google: Seems like my email address is sometimes published because I
> usually get zero spam mail in my Gmail account except when I have recently
> posted something in a Google Group like this. So spammers seem to be able to
> somehow get my email address by scraping information from Google Groups or
> via some subscription mechanism. Very bad indeed if true (with the
> disclaimer that maybe it's not Google that is leaking email addresses).
>
>
> On Wednesday, February 29, 2012 7:24:45 PM UTC+1, Mark Rathwell wrote:
>>
>> > Ok, interesting. Have you tried setting minimum instances to one?
>>
>> I have an app I've been testing, with billing enabled and minimum
>>
>>
>> instances set to one.  I check the app 1 - 2 times per day, and the
>> overwhelming majority of those requests are cold starts.  I just set
>> the minimum instances to 2, so I'll see how it responds over the next
>> few days.
>>
>> On Wed, Feb 29, 2012 at 6:25 AM, Anders wrote:
>> > Ok, interesting. Have you tried setting minimum instances to one?
>> >
>> >
>> > On Monday, February 27, 2012 8:40:41 AM UTC+1, Tapir wrote:
>> >>
>> >> From my experience, an app without billing enabled will encounter many
>> >> many slow cold starts.
>> >> That is why although my app visits is small but I still made my app
>> >> billing enabled.
>> >> But today, there are suddenly many cold starts again on my app even if
>> >> it is billing enabled.
>> >>
>> >> On Feb 27, 12:30 am, Anders wrote:
>> >> > Thanks. The app no longer has billing enabled (needed to be able to
>> >> > adjust
>> >> > minimum instances), but that could be worth trying.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Sunday, February 26, 2012 2:26:00 PM UTC+1, Mike Lawrence wrote:
>> >> >
>> >> > > I noticed similar behavior.
>> >> > > I think the auto setting for minimum number
>> >> > > of instances changed from two to zero active
>> >> > > instances.
>> >> > > I changed from auto to one, and my app
>> >> > > is much more responsive. setting minimum
>> >> > > instances higher will co$t you more
>> >> >
>> >> > > On Feb 25, 9:36 am, Anders wrote:
>> >> > > > In the recent weeks the cold starts for Java apps have started to
>> >> > > > take a
>> >> > > > long time in my experience. More than three seconds to load a
>> >> > > > webpage is
>> >> > > > too long generally for a high quality end user experience. I
>> >> > > > assume
>> >> > > > it
>> >> > > > happens when the physical GAE servers become too crowded
>> >> > > > resulting
>> >> > > > in
>> >> > > > sluggish cold start loading of apps from the file system (and/or
>> >> > > > maybe
>> >> > > > because of delays in the distributed file system itself).
>> >
>> > --
>>
> --
> 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/-/GZ1p0GyAe6MJ.
>
> 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] Uploading Files to Blobstore from external app

2012-03-08 Thread Killian
Hi Lads,

This issue has been bugging me for a while now and just wasted the last 2 
days with no solution found. I'm getting desperate at this stage ! 

My aim was to use the Task Queue Pull service to run some NLP processing 
outside of app engine on an external VM. That's working fine however all 
the trouble started when I discovered that the output produced by the 
external VM could be fed back into the Task Queue. Following the example in 
the Google I/O video http://youtu.be/AM0ZPO7-lcE , I then decided to 
provide the response of the task queue as a Blob upload to the app engine.
So I have the working 
example http://code.google.com/appengine/docs/java/blobstore/overview.html 
implement and working perfectly. (ie: I can manually upload a file using 
the jsp form and store it).

The problem is that for obvious reasons I need to send this post request 
from the VM programmatically. And that's were things start getting messy. 
Since the video only provides an example in Python and not in java I've 
been struggling find a solution to this.

Looking around it seems like I need the httpcomponents-client-4.1.3 apache 
library to create post requests. 
So this is the workflow I have: 
I generate the upload url from the app engine side and place it in the task 
queue payload which is then retrieved by the VM correctly.

on the VM side this is what I do:

String uploadURL = 
"http:///_ah/upload/agtsaW5ndWFib3gxMHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGAEM"
;

 DefaultHttpClient httpclient = new DefaultHttpClient();

 HttpPost method = new HttpPost(uploadURL);

 MultipartEntity entity = new MultipartEntity();

 File f = new File("dummyFileToUpload.txt");

 FileBody fileBody = new FileBody(f);

 entity.addPart("myFile", fileBody);

 method.setEntity(entity);

HttpResponse response = httpclient.execute(method);

 System.out.println(response.getStatusLine());

PROBLEM: 

When I do this both in development mode or production mode, I receive a 
"http 404 not found" response. and it seems like the upload servlet isn't 
run at all (if I'm in deug mode for instance). However when I look in the 
blob store, the blob was indeed uploaded correctly which is good news of 
course however it means I can't get a proper response from the app engine 
side and more importantly can't run anything in the upload servlet.

I'm guessing my post request mustn't be created properly which would 
explain why the app engine side is reacting weird? Is there anything 
obviously wrong in my approach?

Would really appreciate any advice on this. 

Thanks in advance :-)





 

-- 
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/-/gMsydV0NvmQJ.
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: Unable to load several versions of AppEngine Project and Seeing HardDeadLineExceeded Exceptions

2012-03-08 Thread Luke
i also have similar error. anyone figured out why this happen?

-- 
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] Other Database other than BigTable

2012-03-08 Thread Matthew Jaggard
I know very little about it, but this is the place to start...

https://developers.google.com/cloud-sql/

On 8 March 2012 07:50, ravi kumar  wrote:

> Hi..i want to use other database(not Google's Bigtable)as DBaaS for my
> application which is using google infrastructure.Is is Possible and how??
>
> --
> Thanks & Regards
> Ravi Kumar Reddy K
> +91-8095749598
>
>  --
> 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.