Re: [appengine-java] Error

2012-01-06 Thread Matthew Jaggard
Try turning the widget 3 degrees to the left.



We're going to need more information than that. "Internal server error" is
most often caused by an exception being thrown in your code and not caught
- you should see details in the error log (on production) or on the console
(on the dev server).

On 6 January 2012 07:10, VIKASH  wrote:

> I am getting error as internal server error while executing
> program 
>
> --
> 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: How to Limit/Slow Down Task Queue Execution

2012-01-06 Thread andrew
The problem with a cron every 30 seconds is that it will fire, and
start up instances if you have none running - or extra instances if
you have one busy - even where there is no "work" to  be done.

Maybe you have this non-time-critical work to be done once a day (as
is my case also) and you don't care if it takes an hour or more, just
want to crunch away at it in the background until it's done and then
stop.

I haven't debugged my code to see how many workers are spawned...but
as I have the same goals as Casy I'll take a look and post back
results.

-- 
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: How to Limit/Slow Down Task Queue Execution

2012-01-06 Thread andrew
You might want to look into the algorithm for scheduling workers, as
mentioned here 
http://code.google.com/appengine/docs/java/config/queue.html#Queue_Definitions

 (push queues only)
Task queues use a "token bucket" algorithm for dequeueing tasks. The
bucket size limits how fast the queue is processed when many tasks are
in the queue and the rate is high. This allows you to have a high rate
so processing starts shortly after a task is enqueued, but still limit
resource usage when many tasks are enqueued in a short period of time.
If no  is specified for a queue, the default value is 5.
For more information on the algorithm, see the Wikipedia article on
token buckets.

which links to this Wikipedia article  http://en.wikipedia.org/wiki/Token_Bucket

Haven't studied it yet, but your 100 bucket size might be influencing
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] Re: Channel API reconnect after token timeout

2012-01-06 Thread Joseph McMullin
Hey,  
I am also experiencing this problem. 
Trying to reconnect from the client side after the token expiries with no luck.
I'm using the gwt-gae-channel library on client side.
I was just wondering if you have found a solution to this problem? 
Thanks
Joe

-- 
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: Channel API reconnect after token timeout

2012-01-06 Thread Daniel Florey
I've received a reasonable workaround from Google Enterprise Support:
You can use a timer on the client side to renew the token before it 
expires. This will work somehow...

-- 
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/-/NivXiDrqW7QJ.
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: ImagesServiceFactory Composite not honoring PNG transparency

2012-01-06 Thread mikaye
I'd like to add the following addendum to my post.

The images composite as expected if instead of trying to composite
them in GAE, I instead composite them in the browser using HTML5
canvas code.

I have assumed that since several of these images are in the 750K
range that I need to composite them on the server and reduce the
bandwidth of sending multiple images over http.

Can anyone comment on this assumption.

1) Is the speed of GAE compositing multiple 1M images and downloading
a single image compared to downloading those same multiple images to
the browser much faster?

2) Is the GAE cost of CPU for compositing comparable to GAE cost for
bandwidth?

On Jan 3, 3:01 pm, mikaye  wrote:
> The code for image compositing doesn't appear to honor a PNGs
> transparency. Has anyone been able to successfully composite a
> transparent png over another image in the latest version of the SDK
> (1.6.1). I have seen some posts 
> (http://groups.google.com/group/google-appengine/browse_thread/thread/...
> ) and a reference to a fixed defect on the python side of GAE and some
> posts about applying a watermark but it's unclear that this actually
> works now. There's 
> alsohttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> where the solution was to incorporate a GWT canvas.
>
> I have something along the lines of,
>
> Image image = null;
> List composites = new ArrayList();
>
> Iterator iterator = images.iterator();
> while (iterator.hasNext()) {
>         ImageObj io = (ImageObj)iterator.next();
>
>         //returns an Image
>         image = io.getImage(someWidth, someHeight);
>
>         composites.add(ImagesServiceFactory.makeComposite(image, io.x, io.y,
> 1.0f, Composite.Anchor.TOP_LEFT));
>
> }
>
> //Image newImage =
> ImagesServiceFactory.getImagesService().composite(composites, width,
> height, 0xL);
> image = ImagesServiceFactory.getImagesService().composite(composites,
> width, height, 0);
>
> Where some images are JPEGs and some are PNGs with transparency.

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

2012-01-06 Thread Ikai Lan (Google)
No, these should be part of the App Engine SDK. Are you using the Eclipse
plugin? When you create a new "Web Application Project" these are already
included.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Thu, Jan 5, 2012 at 2:13 AM, SAS  wrote:

> Hi All,
>
> Is we need any additional lib to  be included in the classpath to use
> the DataStoreFactory and KeyFactory in GAE?
>
>
> I am trying to use the both but it fires an exception like this
> java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/
> KeyFactory
>
>
> Regards,
> Suresh
>
>
>
> --
> 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: Channel API reconnect after token timeout

2012-01-06 Thread Joe McMullin


Hey,
I am also experiencing this problem. Trying to reconnect from the client 
side 
after the token expiries with no luck, I'm using the gwt-gae-channel 
library on 
client side.
I was just wondering if you have found a solution to this problem? 

Thanks 
Joe

-- 
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/-/qwj6druVlUsJ.
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] Learning JDO for AppEngine

2012-01-06 Thread John Goche

Hello,

I have found the following tutorial on the JDO which is used in
AppEngine

http://code.google.com/appengine/docs/java/datastore/jdo/

but would like a somewhat more in-depth step-by-step resource on JDO.
I was wondering, given it was published in 2003 when JDO 2.0 was not
yet out and given that AppEngine's JDO is 2.3, how relevant is the
foolowing
book to learning JDO?

http://www.amazon.com/Java-Data-Objects-David-Jordan/dp/0596002769/ref=sr_1_12?ie=UTF8&qid=1325862357&sr=8-12

Is it still worth reading or is it completely out of date?
I cannot find a more up-to-date comprehensive reference on JDO.

Thanks,

John Goche

-- 
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] Newbie Question: Error Connecting to Server

2012-01-06 Thread Eclipse Developer
Hello community,

I'm currently following the instructions in the "getting started"
section of http://code.google.com/appengine/docs/java/
gettingstarted/creating.html">creating a Java Project.

When I run the project, I get this Error Message: .

I'm online, obviously.
I have no desktop firewall running, and that shouldn't matter anyway
since it's a 127.0.0.1 address...
But I don't know if it maybe tries to connect to Google remotely and I
should open some port on my router firewall?

Appreciate your help!
Eclipse Developer

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