[appengine-java] implementing GAE XMPP service as an external component to an existing XMPP server (e.g. ejabberd or OpenFire)

2009-10-28 Thread asianCoolz
may i know what integration technique that you folks use to implement external component to an existing XMPP server (e.g. ejabberd or OpenFire) . Is it through sending xmpp message to another u...@externaldomain directly or using mechanism like urlfetch? --~--~-~--~~~--

[appengine-java] JPA Problem with Multiple Owned One to One relationships to same type

2009-10-28 Thread lent
Hello, I'm using JPA with SDK 1.2.5 and I'm having a problem with multiple owned One To One relationships where the relationships are to the same type. The code is as below and Contributor class has three owned One to One relationships to ContentValue. What I'm finding is that when I set one of

[appengine-java] Re: Need help on how to enhance the data classes with netbeans

2009-10-28 Thread Jorge
I am using NetBeans to develop a GAE application. There is a beta plugin available here: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18493 and using it, I have no problems at all with the JDO classes enhancement. The files tree structure in NB is a bit different

[appengine-java] Re: An internal error occurred during deployment

2009-10-28 Thread Pion
Per http://code.google.com/appengine/docs/java/gettingstarted/uploading.html, I did use the command prompt by typing "..\appengine-java-sdk\bin \appcfg.cmd update war". It produces the same error - expected I guess. On Oct 28, 10:14 am, Pion wrote: > I have been developing my app in the hosted m

[appengine-java] Re: Error upon deploying to Google AppEngine through Eclipse plugin

2009-10-28 Thread bizkut
Sorry, I hadn't checked this in a while. Upon using the command line utility: C:\Users\Kyle>C:\Users\Kyle\charts\eclipse\plugins \com.google.appengine.eclipse. sdkbundle_1.2.6.v200910131704\appengine-java-sdk-1.2.6\bin\appcfg update C:\User s\Kyle\workspace\WaveTest1\war Reading application confi

[appengine-java] any plans for deferred.defer in Java?

2009-10-28 Thread David Chandler
Re: http://code.google.com/appengine/articles/deferred.html Will this be coming to AppEngine for Java? David Chandler http://turbomanage.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Eng

[appengine-java] Django/Jython doesn't work on Google App Engine

2009-10-28 Thread Olli Wang
Hi, I successfully created a WAR file which was able to run on Apache Tomcat with no problem. But when I uploaded it to the Google App Engine, it shows me a error message like this: Could not initialize class org.python.modules.thread.thread RequestURI=/ Caused by: java.lang.NoClassDefFoundError:

[appengine-java] JDO Unowned Relationship Issue

2009-10-28 Thread Jeffrey Goetsch
I have a one-to-many unowned relationship (Code shown at the end). When I try to make the association, it fails to actually store the relationship. I thought I found a workaround, which is commented out in the code below. How do I make this unowned relationship work? This might be related to th

[appengine-java] Re: JDO Collection Load Issue

2009-10-28 Thread Jeffrey Goetsch
Jason, Thanks for the reply and checking the code. It is the null issue that is causing this issue, but I had a second issue that I will start a new thread for. Thanks, Jeff On Fri, Oct 23, 2009 at 4:01 PM, Jason (Google) wrote: > Hi Jeff. I'm having trouble reproducing this. I kept everythin

[appengine-java] Re: Robot deployment failure

2009-10-28 Thread Jason (Google)
Do you see the same paring error when you use the "default" web.xml header that the Eclipse plugin generates? http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; xsi:schemaLocation="http://java.sun.c

[appengine-java] Re: Grails/Java poor performance

2009-10-28 Thread Jason (Google)
Hi JT. We have seen that Grails-based applications can take up to 30 seconds to spin up on App Engine. We have back-end enhancements coming in the next few releases that should improve this considerably, but Grails itself is partly responsible for the long initialization time, which our back-end en

[appengine-java] Re: Time zones implementation is broken in Java AppEngine

2009-10-28 Thread Alexander Kolesnikov
Thanks Jason. Issue 2330. Time zones worked for a few days but today most of the world is GMT again... Alex On Tue, Oct 27, 2009 at 6:55 PM, Jason (Google) wrote: > At the very least, the local and production environments should have > identical behavior, and I agree that App Engine should not

[appengine-java] Re: The weirdest problem ever!

2009-10-28 Thread Jason (Google)
Hi Marc. Please try not to double post in the future. Are you certain you're setting the correct application ID in appengine-web.xml? Is a placeholder for something else? If so, are you sure your system clock is set correctly? - Jason On Mon, Oct 26, 2009 at 1:50 PM, MarcGl wrote: > > Very

[appengine-java] Re: Get jdoGetManagedFieldCount() exception when trying to init a persistent class

2009-10-28 Thread Jason (Google)
Up until recently, using abstract classes and persistent subclasses usually failed to work, but the latest preview release for the JDO/JPA layer includes support for inheritance. More information here: http://groups.google.com/group/google-appengine-java/browse_thread/thread/c4208f960d05d11a - Ja

[appengine-java] Re: java.lang.NoClassDefFoundError: com/google/appengine/api/xmpp/JID

2009-10-28 Thread lallafa
> Are you still seeing this error? Yes, I still see this error. > If so, which version of the SDK are you using? This is the SDK version: Release: 1.2.6 Timestamp: Wed Oct 07 19:34:04 CEST 2009 API versions: [1.0] java.vm.vendor: Sun Microsystems Inc. java.vm.version: 14.1-b02 java.version: 1

[appengine-java] Re: using contains(Key) in JDO query

2009-10-28 Thread Jason (Google)
This approach may present other problems; for one thing, App Engine's index generation is not dynamic, so you will have to manually build index entries (or let the development server generate them for you during testing) for each combination of potential query inputs. Once the indexes are built, yo

[appengine-java] Re: Task queue concurrency

2009-10-28 Thread James Cooper
aha! I missed that. I wonder if "task invocations/second" means "dequeues/second". If it means dequeues/second then in theory you could write a request handler that burns through a queue of work items in the datastore, re- queueing itself and exiting after 25 seconds and achieve 250 CPU seconds

[appengine-java] Re: task queue limit >30 sec?

2009-10-28 Thread Toby Reyelts
The limits on tasks queues recently changed. For example, the new total limit is 100K tasks/day for free apps and 1M default for billing enabled. On Wed, Oct 28, 2009 at 2:38 PM, Jason (Google) wrote: > All task queue

[appengine-java] JDO multi-dimensional array support

2009-10-28 Thread king
Hi there, does GAE JDO support something like: @Persistent private int [][][] 3d_grid; --~--~-~--~~~---~--~~ 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

[appengine-java] Re: Task queue concurrency

2009-10-28 Thread Scott Hernandez
The docs here seem to indicate that dequeuing happens at 5/sec (default and 10 max). http://code.google.com/appengine/docs/java/taskqueue/overview.html On Oct 27, 8:41 am, James Cooper wrote: > Hi there, > > Last night I experimented with task queues to see what level of > concurrency I could a

[appengine-java] Re: ServerError (500) after bulk upload

2009-10-28 Thread Mark Stephens
It's doing it again now because I maxxed out the cpu trying to load more data. Is it possible to get more resources so I can load the rest of my data? It's a list of upc symbols and their description, it's 1.2 million rows. Thanks, Mark On Wed, Oct 28, 2009 at 1:57 PM, Jason (Google) wrote:

[appengine-java] Re: task queue limit >30 sec?

2009-10-28 Thread Jason (Google)
All task queue quotas and limits are listed at http://code.google.com/appengine/docs/java/taskqueue/overview.html#Quotas_and_Limits. Note that you can currently insert up to 10,000 tasks per day, although billed applications may have a higher upper limit. - Jason On Tue, Oct 27, 2009 at 12:21 PM,

[appengine-java] Re: ServerError (500) after bulk upload

2009-10-28 Thread Mark Stephens
suprcoupon It's back now. I figured it would happen when my limits got reset. Thanks, Mark On Wed, Oct 28, 2009 at 1:57 PM, Jason (Google) wrote: > What is your application ID? > > - Jason > > On Tue, Oct 27, 2009 at 8:56 AM, fence wrote: > >> >> I used the python bulk uploader ( appcfg.py

[appengine-java] Re: Poor performance while deserializing a resource file (JTS spatial index)

2009-10-28 Thread Jason (Google)
Hi Stuart. The latency after deployment and after several minutes of inactivity is the time needed to initialize a new JVM and spin up a new instance of your application. App Engine automatically spins down your applications based on traffic -- if no requests are arriving, then App Engine will spin

[appengine-java] Re: ServerError (500) after bulk upload

2009-10-28 Thread Jason (Google)
What is your application ID? - Jason On Tue, Oct 27, 2009 at 8:56 AM, fence wrote: > > I used the python bulk uploader ( appcfg.py upload_data ) to upload > data last night. Eventually I ran out of CPU trying to load 66 megs, > 1.2 million rows. Now when I try and click on anything under > Da

[appengine-java] Re: trouble with SDK 1.2.6

2009-10-28 Thread Vince Bonfanti
No, that didn't help. Again, just to make sure I'm being clear: - The only reason appengine-api-stubs.jar and appengine-local-runtime.jar are in my project classpath is to be able to compile my junit tests. They're not needed for debugging my project. However... - When creating a debug configu

[appengine-java] An internal error occurred during deployment

2009-10-28 Thread Pion
I have been developing my app in the hosted mode for the past few months. It works fine on the hosted mode. Today, I got an internal error below when I tried to deploy it for the first time using Eclipse. My environments: GAE Java 1.2.6, GWT 1.7.1, Eclipse(Galileo), Windows Vista (32-bit). Any

[appengine-java] Re: java.lang.OutOfMemoryError when reading inbound mail on production

2009-10-28 Thread m seleron
Hi It examined it a little. I think that there is a part where [MimeMultipart#getCount] is used in places other than this source. How compatible. -- System.setProperty("mail.mime.multipart.ignoremissingendboundar

[appengine-java] Re: 500 error due to reaching "simulataneous active request limit" - but they all appear to be within limits

2009-10-28 Thread James Cooper
I'm seeing this same error as well. It appears to happen during a cold start. 10sec timeout: 10-27 08:54PM 13.522 / 500 10193ms 0cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) 10-27 08:54PM 23.715 Request was aborted after waiting too l

[appengine-java] Re: Uncaught exception from servlet java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class.

2009-10-28 Thread Toby Reyelts
Are you running the latest 1.2.6 SDK? It should be implementing the same whitelisting as the production servers. On Tue, Oct 27, 2009 at 7:00 AM, Srinivas Inf wrote: > > I am getting this error message on the server and its working fine in > my local Eclipse platform.Please help me on this issue.

[appengine-java] TaskQueue API don't work in Unit Tests

2009-10-28 Thread Patrizio Munzi
Hi all, I'm getting the following exception using Task Queues in Unit Tests: -- com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'taskqueue' or call 'Add()' was not found. at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.ja

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread Don Schwarz
On Tue, Oct 27, 2009 at 6:17 PM, kousen wrote: > > I'm using the Java API. In my app, I store (only) the ISBN's of a > series of books. When I load the books, my service goes to Amazon and > retrieves the rest of the information about the book from their web > service. Then I display all the b

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread kousen
Unfortunately, part of the whole point of my system is that all I store is the ISBN (and my own recommendation). I get everything else from Amazon daily, which includes the price info, etc. Maybe I have to save all of that in persistent storage and just refresh it every day, but I was hoping to

[appengine-java] images over http

2009-10-28 Thread nicanor.babula
Hello everyone, I have somewhere on the net a servlet that serves jpeg images. In order to verify that it works I made a html page with: http://myurl/servlet?id=123"; /> and the image is displayed well. Now, I am trying to create an GAE image object from the data arriving from that servlet. How

[appengine-java] Simulating MapReduce with task queues

2009-10-28 Thread James Cooper
Hi there, I asked a similar question a couple of days ago, but I'll try different wording and see if it generates any interest. Has anyone successfully simulated MapReduce using task queues? If so, how much parallelism have you achieved in the GAE production environment? Are there tricks to co

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread Nick
So this boils down to JCache (google memory) vs Persistent storage (google disks), right? Does this pattern work instead? 1. Query Amazon for what you need 2. Store results using a persistent storage http://code.google.com/appengine/docs/java/datastore/ Example: http://code.google.com/appengi

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-28 Thread Toby
Hello Jason, I am also using spring and I experience the same issue. Initializing Spring FrameworkServlet takes about 15 seconds. Going back to plain old servlets sounds like a bad idea to me. Isn't there any other way to speed this up? Maybe using memcache? Cheers, Tobias On Oct 23, 5:53 pm

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread Nick
Sounds like you want a persistent storage. http://code.google.com/appengine/docs/java/datastore/ On Oct 28, 10:37 am, kousen wrote: > I'll definitely turn on logging and try to see what's going on. > > Thanks, > > Ken > > On Oct 28, 4:18 am, leszek wrote: > > > > > It looks ok, the only proble

[appengine-java] GAE with external openfire jabber server?

2009-10-28 Thread asianCoolz
how to use java GAE with external jabber server like openfire? any guide? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@

[appengine-java] Re: Weird Life Cycle of Servlet in GAE

2009-10-28 Thread Jim McCabe
To clarify some of the responses - static variables are only shared among instances of your servlet on that one server. In GAE, your code might run on different servers at different times - Google tries to load-balance your site among its server farm. So your website might be running on multiple

[appengine-java] Re: Uncaught exception from servlet java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class.

2009-10-28 Thread Dominik Steiner
it might not be in the jre white list http://code.google.com/intl/de/appengine/docs/java/jrewhitelist.html HTH Dominik On Oct 27, 5:00 am, Srinivas Inf wrote: > I am getting this error message on the server and its working fine in > my local Eclipse platform.Please help me on this issue. --~-

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread kousen
I'll definitely turn on logging and try to see what's going on. Thanks, Ken On Oct 28, 4:18 am, leszek wrote: > It looks ok, the only problem I can see that something can happen > between storing book in cache and getting book from cache. > Scenario like: > 1) fetch book from Amazon and store

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread kousen
That's a very interesting point. If my cache isn't shared, what good is it? How do I ensure that my cached values really are shared among all instances? Ken On Oct 28, 4:34 am, yccheok wrote: > My guess is that, the "static" variable in GAE context is not actually > "static" as what we experi

[appengine-java] Google HOSTED Account Auth Help! w/ Code

2009-10-28 Thread Bourke Floyd IV
Code in reference to: http://groups.google.com/group/google-appengine-java/browse_thread/thread/47306a917b8e1628 I'm not getting back the ACSID Cookie. The comments in the Servlet Code below explain everything. I hope this helps someone else getting started because I had a ton of sifting to get t

[appengine-java] Re: Failed to compile jsp files when tagdir is included

2009-10-28 Thread Rajeev Dayal
As an FYI , there is no issue in the tracker for this exact problem. I'll write up a bug for this and post the link back on this thread (unless someone would be kind enough to do it for me ;). On Thu, May 7, 2009 at 11:40 AM, barabaka wrote: > > Great thanks for this topic! Copying tools.jar int

[appengine-java] Re: I'm getting a already connected exception when I setRequestMethod("GET") on my HttpURLConnection

2009-10-28 Thread Bourke Floyd IV
I think I figured it out. While I was debugging I would break before the disconnect was called in my finally block, then resend a new request (thus the connection was already connected). Being able to Set the RequestMethod is important to me, despite the fact that get is the default. On Oct 26,

[appengine-java] Re: JDO and Sets and Quotas

2009-10-28 Thread Raphael André Bauer
On Wed, Oct 28, 2009 at 2:01 PM, leszek wrote: > > But you can accomplish it in more simple way. It is many-to-many > relationships. > Simple have entity USER and ITEM and USER-ITEM entity keeping both > keys. If there exists USER-ITEM entity having both keys than user read > this item, if not th

[appengine-java] Re: JDO and Sets and Quotas

2009-10-28 Thread leszek
But you can accomplish it in more simple way. It is many-to-many relationships. Simple have entity USER and ITEM and USER-ITEM entity keeping both keys. If there exists USER-ITEM entity having both keys than user read this item, if not than opposite. This way you can avoid this limitation. --~--~-

[appengine-java] Re: JDO/JPA Snippets That Work - Updating a bidirectional, owned, one-to-many relationship with a new child

2009-10-28 Thread stanlick
One more thing Max - Can you show the code that created the arguments passed into your method? public void addChapterToBook(PersistenceManager pm, Key bookKey, Chapter chapter) { Peace, Scott On Oct 27, 12:25 pm, "Max Ross (Google)" wrote: > At what point are you checking to see if the parent

[appengine-java] Re: DeadlineExceededException not correctly thrown during a transaction

2009-10-28 Thread Prashant
code snippet : ... ... query = pm.newQuery(Link.class); try{ count = query.deletePersistentAll(); // getting HardDeadlineExceededError here }catch (Exception ex) {} query.closeAll(); ... ... --~--~-~--~~-

[appengine-java] Re: DeadlineExceededException not correctly thrown during a transaction

2009-10-28 Thread Prashant
facing similar problem. i tried catching the exception but it didn't work, so the tried catching *Exception* and that didn't work either. any idea what's going on??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Go

[appengine-java] JDO and Sets and Quotas

2009-10-28 Thread Raphael André Bauer
Hi, I got a question regarding how to implement a specific problem (and make it scale without reaching any hard quotas implied by GAE). my problem: Think of a Google Reader like application - there must be a mechanism that stores items read by a user. I would implement it as: - object USER w

[appengine-java] Re: Weird Life Cycle of Servlet in GAE

2009-10-28 Thread leszek
It is a clustered environment. So it is expected that the next request is run on a different machine, JVM and all statics are reinitialized. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java"

[appengine-java] Re: Retrieving the number of entities into the DS

2009-10-28 Thread Patrizio Munzi
Hi Jason, Thanks for your answer. However I forgot to specify that I'd like to know the number of entities of a specific kind which have a specific value in one of its field (for example number of Student which attend a specific course). It looks like Statistics don't fit this aim, not that th

[appengine-java] Re: Weird Life Cycle of Servlet in GAE

2009-10-28 Thread yccheok
http://yancheng-cheok.appspot.com/helloappengine Production environment. On Oct 28, 5:45 pm, leszek wrote: > Is it production or local (development) environment ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Go

[appengine-java] Re: Weird Life Cycle of Servlet in GAE

2009-10-28 Thread leszek
Is it production or local (development) environment ? --~--~-~--~~~---~--~~ 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

[appengine-java] Re: Dev server datastore deadlock

2009-10-28 Thread stumpy
The thread dump is a bit cryptic so I reduced the problem down to a small servlet that fails. Use the servlet below in the development environment and set up aync requests to it and a deadline will occur e.g. using 2 or more looped curls from the terminal. public void doGet(HttpServletRequest re

[appengine-java] Re: Need help on how to enhance the data classes with netbeans

2009-10-28 Thread leszek
I'm using NetBeans but only for GWT application. I don't know if there is anybody who uses NetBeans for Google App Engine application. May be ask the question here: https://gwt4nb.dev.java.net/ if are there any plans to extend existing plugin and support also Google App Engine. --~--~-~

[appengine-java] Re: Concurrency In Transaction

2009-10-28 Thread leszek
http://code.google.com/intl/pl/appengine/docs/java/datastore/transactions.html Look at the next code snippet === for (int i = 0; i < NUM_RETRIES; i++) { pm.currentTransaction().begin(); ClubMembers members = pm.getObjectById(ClubMembers.class, "k12345");

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread yccheok
My guess is that, the "static" variable in GAE context is not actually "static" as what we experience previously. See some of the simple test scenario I encountered too. http://groups.google.com/group/google-appengine-java/browse_thread/thread/c478f64082f3e212 Let me know if you are having same

[appengine-java] Re: JDO/JPA Snippets That Work - Optimistic Locking With @Version

2009-10-28 Thread Patrizio Munzi
Hi Max, thanks for the answer. By the way, I tried to post on the blog but I didn't find a way to do it. Could be strange but I've never commented on blogspot and had problem to do it. I'd be graceful if you could instruct me. BR,     Patrizio Max Ross (Google) wrote: On Thu, Oct 22, 2

[appengine-java] Weird Life Cycle of Servlet in GAE

2009-10-28 Thread yccheok
I have the following code. package org.example; import java.io.IOException; import javax.servlet.http.*; public class HelloAppEngineServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-28 Thread leszek
It looks ok, the only problem I can see that something can happen between storing book in cache and getting book from cache. Scenario like: 1) fetch book from Amazon and store in cache. 2) book expires in Amazon (or any other event happens) 3) next request - get data from cache - you return statu