[appengine-java] Re: How to store/retrieve inheritance and composition in Datastore

2010-01-15 Thread Federico Keen
HI JD, thanks for the reply, but is there a way to to this without Twig? I mean, it's pretty basic what I'm trying to do, and probably google has provided a way to do it without needing an external library. Maybe I'm wrong, but I wouldn't like to depend on someones library! Thanks Fede On Jan 15,

Re: [appengine-java] Re: read static file from servlet

2010-01-15 Thread Tchijov Andrei
read this http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassLoader.html#getResourceAsStream(java.lang.String) On Jan 15, 2010, at 19:19 , Andrei wrote: > To clarify > I have static file in war dir > When request comes via servlet i want to read that static file > > On Jan 15, 7:11 pm, Andr

[appengine-java] Re: read static file from servlet

2010-01-15 Thread Andrei
To clarify I have static file in war dir When request comes via servlet i want to read that static file On Jan 15, 7:11 pm, Andrei wrote: > I want to read a static file that i put in war when uploading from > servlet. > How do i do this? > Thanks -- You received this message because you are subs

[appengine-java] read static file from servlet

2010-01-15 Thread Andrei
I want to read a static file that i put in war when uploading from servlet. How do i do this? Thanks -- 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-j...@googlegroups.com. To uns

Re: [appengine-java] Re: Over quota problem and problems getting the app quickly back to work

2010-01-15 Thread Raphael André Bauer
On Fri, Jan 15, 2010 at 7:34 PM, WSouza wrote: > Hello, > > From my tests, it usually takes from 20 minutes to 1 hour until the > new billing settings start working. But I never hit my quota limit, > the closer I got was 90ish% of the limit while waiting for the new > settings (i almost had a hear

Re: [appengine-java] Over quota problem and problems getting the app quickly back to work

2010-01-15 Thread Raphael André Bauer
On Fri, Jan 15, 2010 at 8:00 PM, Ikai L (Google) wrote: > What's your app ID? If the billing settings haven't kicked in yet I can > manually reset your quotas for the time being so you can continue testing. Ok. first of all thanks for the fast reply Ikai - it's really cool to see Google being res

[appengine-java] App Engine cold starts and overly aggressive cycling

2010-01-15 Thread Ikai Lan
Hey everybody, We've been seeing more and more reports of applications being cycled out overly aggressively, resulting in some folks implementing (discouraged) workarounds to keep their application from being cycled out. The primary symptom of this problem is that your application will see lots of

[appengine-java] Using Restlet to access datastore.

2010-01-15 Thread Mohammad Abdurraafay
Hey, I'm quite new to Google App Engine. But yeah, I'm trying to use Restlet Framework to build RESTful Web Services. My question is, What are all possible ways to access datastore? I know about JDO and JPA. But I was wondering if I can use Restlet specific API to access datastore. Please, if anyo

[appengine-java] Re: Problem uploading App: 403 Forbidden You do not have permission to modify

2010-01-15 Thread zoli
Hi, I have also faced this issue. First you have to create the application on the appengine.google.com Then you can deploy the first version of the application. It worked for me. On Dec 12 2009, 1:55 pm, Tej wrote: > I am new to App Engine > I am trying to upload my application to App Engine Us

[appengine-java] Re: Java DNS cache

2010-01-15 Thread Max
Ok. Thanks! On Jan 14, 9:19 pm, "Ikai L (Google)" wrote: > Oh man, I've been bitten by Java's DNS cache before as well. This should > have been addressed in Java 6, which is what we run in production. Here's a > quick blog post on the > subject:http://www.mattryall.net/blog/2005/03/javas-awf

Re: [appengine-java] Using geocoding service throws G_GEO_TOO_MANY_QUERIES

2010-01-15 Thread Ikai L (Google)
Willem, Which key are you using? You can email me directly and I'll work with the Geo team to help get to the bottom of this. Throttling is limited to IP addresses as well as key. App Engine IP addresses should have a much higher global threshold. On Thu, Jan 14, 2010 at 1:38 PM, Willem wrote:

[appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-15 Thread Lucian Baciu
I have a root Account entity: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Account implements Serializable{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent(mappedBy = "account") @Order(extensions =

Re: [appengine-java] Help with One to Many owned relationship and Datastore

2010-01-15 Thread Ikai L (Google)
If you use the loop to continue to addChild() on the Key, your Key will look something like this: Page1->IMG_A->IMG_B->IMG_C What you want are Keys that look like this: Page1->IMG_A Page2->IMG_B If you continue to set children on the same builder object, you will likely be setting Images to be

[appengine-java] junit test fails, then works with no code change.

2010-01-15 Thread Sector7B
Hi, I have some unit tests to test my dao. Just starting out. So I have simple tests that do crud operations. findbyid, delete, update, etc. In testCreate i create an object and retrieve. In testFindAll i create 2 objects and retrieve all there are 3, 1 from the previous test. In test update

Re: [appengine-java] Re: Handling incoming emails, broken due incorrect attachment size.

2010-01-15 Thread Ikai L (Google)
Are you still having an issue? If so, can you provide an XML file similar to the one you are receiving? I'll try to reproduce it. On Fri, Jan 8, 2010 at 7:17 PM, de Witte wrote: > Can anyone verify this, problem still exists and is a show stopper. > > Response from google? > > -- > You received

Re: [appengine-java] Re: Unable to run on local server after an upgrade to 1.2.8

2010-01-15 Thread Ikai L (Google)
I'm just grasping at straws here, but what happens when you do a "clean"? Do you have a JDK installed and not a JRE? On Fri, Jan 8, 2010 at 7:54 AM, Ice13ill wrote: > is there a problem if i have the java 1.6.0_14 installed? do i need a > new one ? > > On Jan 8, 1:37 pm, Ice13ill wrote: > > i

Re: [appengine-java] Over quota problem and problems getting the app quickly back to work

2010-01-15 Thread Ikai L (Google)
What's your app ID? If the billing settings haven't kicked in yet I can manually reset your quotas for the time being so you can continue testing. On Fri, Jan 15, 2010 at 9:29 AM, Raphael André Bauer < raphael.andre.ba...@gmail.com> wrote: > Hey Google Team, > > > we are currently load-testing ou

Re: [appengine-java] Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-15 Thread Ikai L (Google)
Brett Slakin on the App Engine team gave a great talk about a problem similar to what you are describing at last year's Google I/O and how to solve it. You may want to check this video out: http://code.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html

[appengine-java] Re: Many "Request was aborted after waiting too long to attempt to service your request" errors

2010-01-15 Thread WSouza
Fabrizio, I always get these errors right after I deploy a new version of my app, I don't know if that is the case on yours. On Jan 15, 9:09 am, John Patterson wrote: > Can you see long loading requests in your logs?  That is requests   > taking over 10 seconds that would be logged immediately

[appengine-java] Re: Over quota problem and problems getting the app quickly back to work

2010-01-15 Thread WSouza
Hello, >From my tests, it usually takes from 20 minutes to 1 hour until the new billing settings start working. But I never hit my quota limit, the closer I got was 90ish% of the limit while waiting for the new settings (i almost had a heart attack, lol) On Jan 15, 12:29 pm, Raphael André Bauer

Re: [appengine-java] Cannot have a java.lang.Long primary key and be a child object

2010-01-15 Thread Max Ross (Google)
Hi Carl, You can use a string-encoded key on the child object to avoid a dependency on proprietary google classes. More info here: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys (search for Key as Encoded String) Hope this helps, Max On Fri, Jan 1

[appengine-java] jaxb-impl version?

2010-01-15 Thread yc
Hello, Does the App Engine fully support jaxb-impl-2.1.10 and above? I am having a problem with the Jersey JSON "natural" builder with the App Engine Eclipse SDK (v1.3). According to this link: http://blogs.sun.com/japod/entry/configuring_json_for_restful_web Jersey needs jaxb-impl-2.1.10 and

[appengine-java] Cannot have a java.lang.Long primary key and be a child object

2010-01-15 Thread Carl Ballantyne
Hi All, I have two classes, a Parent and a Child. (See below for code) The Parent class contains a reference to a Child instance. However when I try and save a Parent instance I get the following error: Cannot have a java.lang.Long primary key and be a child object. The error is clear enough and

[appengine-java] Over quota problem and problems getting the app quickly back to work

2010-01-15 Thread Raphael André Bauer
Hey Google Team, we are currently load-testing our billing-enabled application. We ran into the CPU quota and our app got deactivated (for now about 30 Minutes Error 503: "This Google App Engine application is temporarily over its serving quota. Please try again later."). So far that's okay. But

[appengine-java] Re: Report Engine on GAE

2010-01-15 Thread bradr
The project is being moved to TinyReport: http://code.google.com/p/tinyreport/ The project consists of two libraries 1) tinyreport-core - this is the core reporting runtime that takes a report xml file, runs queries and renders a report 2) tinyreport-birt - this library will take birt .rptdesign

[appengine-java] Re: How to store/retrieve inheritance and composition in Datastore

2010-01-15 Thread jd
You mean you want to use OO in Java? Then you need Twig http://code.google.com/p/twig-persist/ It supports polymorphic relations and inheritance just like your example with no configuration For example you could have: class D { Collection cs; } which could contain A's or B's. To speed up q

[appengine-java] Re: Order clause and missing entities

2010-01-15 Thread Kyrre
It seems this is what I'm running up against: http://code.google.com/p/googleappengine/issues/detail?id=2481 -- 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-j...@googlegroups.co

Re: [appengine-java] Re: Build a desktop application to upload

2010-01-15 Thread Ista Pouss
Thank you. I know how to build a swing / jnlp application. But I should want make a swing front end to appcfg.sh Is it possible to have code/jar of appcfg ? Thanks. 2010/1/15 carljmosca : > This does not answer your question directly but if your goal is to > build a Swing app and you're willing

Re: [appengine-java] Re: Many "Request was aborted after waiting too long to attempt to service your request" errors

2010-01-15 Thread John Patterson
Can you see long loading requests in your logs? That is requests taking over 10 seconds that would be logged immediately after the aborted request. On 15 Jan 2010, at 21:02, Fabrizio wrote: John, my app is very very simple. It does not use external frameworks or libraries. fabrizio I

[appengine-java] Re: Many "Request was aborted after waiting too long to attempt to service your request" errors

2010-01-15 Thread Fabrizio
John, my app is very very simple. It does not use external frameworks or libraries. fabrizio   > I think currently the only solution is to make you app   > start up faster.   -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-15 Thread Prashant Gupta
I tried adding a filter, after that my app stopped working, displaying nothing. Someone please help me out to set up a filter to get session id and keep other things working. Thanks. 2010/1/14 Prashant Gupta > ok, thanks a lot. > > > > 2010/1/14 Stephan Hartmann > >> Threads do not end whe

[appengine-java] Re: A running app does not detect newly created files.

2010-01-15 Thread George Moschovitis
> Thanks for the extra information re: your use of Narwhal. I don't have too > much experience with it, but can you implement the Blobstore docs demo > without Narwhal to see if it works for you as it does for me? This is the > doc I used to implement my version: > > http://code.google.com/appengin

[appengine-java] Re: Order clause and missing entities

2010-01-15 Thread Kyrre
Hi Vaclav, Thanks for your input. But no, all 62 entities have a non-null value for the date property. Cheers, Kyrre On Jan 15, 12:42 pm, vbart wrote: > Probably only 38 entities have the property "date" set (even to null). > I've got a similar problem in past - I tried to order by property

[appengine-java] Re: A running app does not detect newly created files.

2010-01-15 Thread George Moschovitis
> Since app engine does not allow file writing, it probably does not expect > any new file during run time. That's why you see the new file only after > restarting the server. To "write new file" in app engine, I would think it > as "put new file content into datastore". That's what I thought...

[appengine-java] Re: Build a desktop application to upload

2010-01-15 Thread carljmosca
This does not answer your question directly but if your goal is to build a Swing app and you're willing to use Java Web Start, this might be a place to start: http://martinzoldano.blogspot.com/2009/05/jnlp-experiment.html -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: Any examples for low level datastore? or suggest another way?

2010-01-15 Thread jd
Hi Philip, I would think using plain Java objects to represent a table and its columns would be a better approach than using the low-level API directly. For example, you probably want to keep some fixed info about a table like its name, creation date, sort fields etc - and then a collection of Co

[appengine-java] Re: Any examples for low level datastore? or suggest another way?

2010-01-15 Thread vbart
Hello, we wrote automatic DAO generator for GAE/J, currently it supports both JDO and low-level API implementations. http://audao.spoledge.com Probably the DAO generator is not for you, because you need dynamic approach. But you can download generated Java sources which use low-level API on the "

[appengine-java] Re: Order clause and missing entities

2010-01-15 Thread vbart
Probably only 38 entities have the property "date" set (even to null). I've got a similar problem in past - I tried to order by property which did not exist at all - I got 0 (zero) entities. Best regards Vaclav On Jan 14, 10:22 pm, Kyrre wrote: > Hi, > > In both the DataViewer and in my app us

[appengine-java] Re: Spring MVC with annotations

2010-01-15 Thread SammyRulez
I'm using spring 3.0M4 and I noticed that @controller annotation works well if annotated classes are in WEB-INF/classes, but spring fail to scan classes in jar files deplyed in WEB-INF/lib class loader issue on gae? On 12 Dic 2009, 20:41, Rusty Wright wrote: > I should say thatSpring3.0.0.RC3 n

Re: [appengine-java] Re: Many "Request was aborted after waiting too long to attempt to service your request" errors

2010-01-15 Thread John Patterson
There seems to be no way to stop loading requests occurring even with cron jobs. I think currently the only solution is to make you app start up faster. This could mean getting rid of frameworks like Guice which take time to initialise. Google chaps: is there any way to page the memory to

[appengine-java] Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-15 Thread Lucian Baciu
I have a root User entity and a child Note entity. Each User can have many Note entities. The Note entity has four indices. I've noticed that as the number of Note entities for a User increases so does the request time/latency and CPU used on Note insert operations. When the number on Note entitie

[appengine-java] Re: Many "Request was aborted after waiting too long to attempt to service your request" errors

2010-01-15 Thread Fabrizio
I continue to get the errors. I really don't understand. My app is very low traffic. But I have a cron. It fires every minute and does a very little and fast job (normally "/myurl 200 59ms 80cpu_ms 21api_cpu_ms 0kb"). But sometime I get "/myurl 500 10002ms 0cpu_ms 0kb". Today rate is 10%, so I ge