[appengine-java] equivalent python model definition of one to many jdo

2010-03-23 Thread mar_novice
Does anyone have tried to implement an app in GAE having both java and python? I have an existing app and my front end is in java. Now I want to use the existing datastore to be interfaced by python. My problem is i don't know how to define the relationships and model that would be equivalent

[appengine-java] Re: GWT+JDO+GAE enhancement nightmare

2010-03-23 Thread datanucleus
The objects have been detached. Ok. So the objects *have* been read from the datastore, since to detach them you obviously have to retrieve them first ... then detach them. And the exception is presumably coming from GWT, but then I don't see your stack trace so have no way more than guessing.

[appengine-java] FTP like file upload

2010-03-23 Thread Denis Tsyplakov
Hi! It is pretty common usecase for public sites - admin uploads some static html+css+images via and it is served from some servlet in application in structured way. Of course in GAE it is imposible directly, but could be simulated. We could store hierarchical info in some entity structure

[appengine-java] Re: Tweak static file without re-deploying

2010-03-23 Thread Simon
It depends why you're making the tweaks - if you are just testing the CSS to make sure a certain tweak has the desired affect, then you could use something like Firebug to change the CSS on a particular page until it's correct. However, if you want that change to persist across multiple pages

[appengine-java] Discussion on will-it-play-in-app-engine

2010-03-23 Thread Denis Tsyplakov
Jasper? -- 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 unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com.

[appengine-java] integrating com.google.visualization.datasource

2010-03-23 Thread Rafik
Hello, I was developing a web application and I needed to add chart visualization with google visualization api and then the servlet that I was using was modified to inherit from DataSourceServlet instead of HttpServlet. I tried to deploy but now I have 404 http error when I am testing to pass

[appengine-java] Signed Applet + Precompilation

2010-03-23 Thread Jake
Hey all, I have a signed java applet (voice recorder) that I've been using on GAE/J for the past few months. I use maven-jar-signer to do the signing. Everything had been working great but I upgraded to SDK 1.3.1 and saw that precompilation was causing the following error: failed wicket.google

Re: [appengine-java] Signed Applet + Precompilation

2010-03-23 Thread Don Schwarz
Are you serving the applet out of WEB-INF/lib somehow? We should only be processing jars in that directory. If you're serving this files to clients you should be able to either place it outside of WEB-INF and let it be served as any other static file, or store it somewhere other than WEB-INF/lib

[appengine-java] Can we use multiple filters in JDO?

2010-03-23 Thread Amaan
I have a class College declared with location and fName String fields. I am trying to retrieve values from that table using the following query. On execution it says that SQL construct is not supported by the JDO in googe app engine. Query query = pm.newQuery(javax.jdo.query.SQL, select * from

[appengine-java] Generating Excel Sheet in Google app engine.

2010-03-23 Thread Amaan
Hi, Can we generate excel sheets using the google app engine? I have seen some posts and support for Python but nothing on the Java side. Is it possible to generate an Excel report using the google app engine? Or shud we rely on the streams to generate a workbook. Thanks. -- You received this

[appengine-java] Re: GAE 1.3.1 java.io.IOException: Truncated quoted printable data when processing a Hotmail email

2010-03-23 Thread Lucian Baciu
That would be great if you could post your workaround! Thanks On Mar 23, 6:13 pm, moca jwein...@gmail.com wrote: I have a fix for this that i will share later this evening, but i also ran into this issue. It would be good to have this fixed. My fix basically entails parsing the native stream

[appengine-java] Possible bug in pm.makePersistentAll? Random-looking exceptions, can't make heads or tails of it...

2010-03-23 Thread tempy
I've been scratching my head over this one for a while... I have a parent object that participates in an owned one-to-many relationship with a child object. After the parent object is created, it is retrieved with its collection of children in the selected fetch group, and then detached. Then,

[appengine-java] Re: Possible bug in pm.makePersistentAll? Random-looking exceptions, can't make heads or tails of it...

2010-03-23 Thread tempy
MODEL OBJECTS: @PersistenceCapable(detachable = true) @FetchGroup(name = children, members = { @Persistent(name = _Children) }) public class Parent { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key _ID; @Persistent private String

[appengine-java] Rest Jersey and URIINFO OBJECT

2010-03-23 Thread Haroon Idrees
hello how can I get URIINFO object in Google app engine from jersey API.we use this class object by context inject annotation in JEE container but app engine it produces exception. *InitialContext* is a restricted class. Please see the Google *App Engine*developer's guide for more details

[appengine-java] Delete in a transaction

2010-03-23 Thread markm208
I am trying to remove an object from the datastore without and I want to know if my approach can be made to work with transactions. I have a collection of entities that all participate in owned relationships. However, one entity has an unowned collection of keys that refer to another entity.

[appengine-java] Re: GWT + Google SpreadhSheet + GAE: Downloading an excel file

2010-03-23 Thread Amaan
has anyone got this running? Even i want my application to generate a report in the form of an excel. Can this be done on the GAE platform? I dont see any threads in Java. However looks like python supports it. On Mar 11, 7:57 am, Just A Guy Trying to Get By mr.joseph.ha...@gmail.com wrote:

Re: [appengine-java] Simulating multi-tenancy with GWT/GAE

2010-03-23 Thread Ikai L (Google)
You'll need to deploy the GWT app once per domain, unless you use a proxy. The browser security model won't let you make XHR calls to a different domain. On Tue, Mar 23, 2010 at 5:54 AM, Kyle Baley kyle.ba...@gmail.com wrote: We're building a GWT app that I think will be a multi-tenant one,

[appengine-java] Re: Inconsistent results when fetching URL using cookies

2010-03-23 Thread fletcher
The snippet I posted works fine outside of GAE. Anybody know what is going on? On Mar 19, 12:18 pm, fletcher fle...@fletchowns.net wrote: Anyone? This is really frustrating! On Mar 17, 1:10 pm, fletcher fle...@fletchowns.net wrote: I'm using the following method to fetch a page that I need

[appengine-java] convertMegacyclesToCpuSeconds delivers wrong values

2010-03-23 Thread Torquester
I get values around 100, but according to the doc the value should be in seconds. But I guess it's rather 1 / 10 seconds or 1 / 100 seconds (where the latter one seems to be more reasonable). following code: long start = qs.getCpuTimeInMegaCycles(); //do something long running long

[appengine-java] Re: Simulating multi-tenancy with GWT/GAE

2010-03-23 Thread Kyle Baley
Not sure I follow. We plan on deploying it only once, on AppEngine. We'd like to use a single instance of the app but differentiate one customer's implementation from another's via the URL. It's similar to twitter where each user is differentiated like twitter.com/user1, twitter.com/user2, etc. I

[appengine-java] Re: Can we use multiple filters in JDO?

2010-03-23 Thread Torquester
I think you have to use two queries and merge the results afterwards in your code. As you said, datastore does not allow you to use inequality filters and logical or operators on more than one property. I guess from a performance perspective this doesn't make much difference. Appengine would have

[appengine-java] Re: Adding new property for an existing entity.

2010-03-23 Thread Torquester
Is TestEntity.position a primitive datatype? Primitive datatypes can't be null so that's probably your problem. On Mar 23, 2:49 pm, sree sraj...@gmail.com wrote: when a new property is added for an existing entity, new entity will be created along with the new property, whereas the old entity

Re: [appengine-java] Re: Simulating multi-tenancy with GWT/GAE

2010-03-23 Thread Ikai L (Google)
Ah, I see. I misunderstood your original question: I thought you wanted to deploy a single GWT frontend and have it talk to multiple App Engine backends. On Tue, Mar 23, 2010 at 5:32 PM, Kyle Baley kyle.ba...@gmail.com wrote: Not sure I follow. We plan on deploying it only once, on AppEngine.

Re: [appengine-java] Re: Simulating multi-tenancy with GWT/GAE

2010-03-23 Thread Ikai L (Google)
I'm not exactly sure what you mean when you say GWT applications go to a single URL. Have you asked on the Google Web Toolkit groups (https://groups.google.com/group/google-web-toolkit?pli=1)? This is a generic servlet question, so any answer you are given should also apply to App Engine. On Tue,

[appengine-java] Re: Tweak static file without re-deploying

2010-03-23 Thread David Chandler
If you're using GWT, you can at least skip the GWT compile on deploy by using appcfg update instead of the deploy button in Eclipse. /dmc http://turbomanage.wordpress.com On Mar 22, 4:38 pm, Steve Pritchard steve...@gmail.com wrote: Hi all, Is there any way to tweak or add a static file (such

[appengine-java] Re: Adding new property for an existing entity.

2010-03-23 Thread Torquester
Is TestEntity.position a primitive datatype? Primitive datatypes can't be null so that's probably the problem. Use Integer instead of int, Double instead of double etc. And be aware that the property will be null for all your existing entities. Cheers, Chris On Mar 23, 2:49 pm, sree

[appengine-java] Re: how to build same entity group

2010-03-23 Thread dreamy
Hello Ikai L thanks for your reply. You just have to persist the Person first, or create a Person, attach Telephone entities, then call pm.makePersistent() on the Person. but this is problem. Telephone must not belong to Person. Telephone module manaer telephone create/update/delete/query

Re: [appengine-java] GWT and Twig

2010-03-23 Thread John Patterson
Hi Damob, They work perfectly together because your data models are *pure* POJOs with no dependencies on the datastore at all. In contrast, in JDO, JPA, Objectify and SimpleDS your data models usually use low-level Keys and possibly other types. This means that you either need to make

Re: [appengine-java] GWT and Twig

2010-03-23 Thread Christian Goudreau
Yes, a lot actually. I was asking myself that question since I introduced in my POJO's some TWIG annotation and didn't know if those information are compatible with GWT-RPC Mecanism. I'll give a deeper look into twig tomorow. Thanks Christian On Tue, Mar 23, 2010 at 10:03 PM, John Patterson

[appengine-java] Problem with login when testing locally

2010-03-23 Thread JD
I'm getting this exception trying to use GAE to login in my local environment. java.lang.NullPointerException at com.google.appengine.api.users.dev.LoginCookieUtils.encodeEmailAsUserId(LoginCookieUtils.java: 89) at

Re: [appengine-java] GWT and Twig

2010-03-23 Thread John Patterson
Yeah the annotations are fine. The GWT compiler does not include them in the compiled JS code. On 24 Mar 2010, at 09:09, Christian Goudreau wrote: Yes, a lot actually. I was asking myself that question since I introduced in my POJO's some TWIG annotation and didn't know if those

[appengine-java] Re: GAE 1.3.1 java.io.IOException: Truncated quoted printable data when processing a Hotmail email

2010-03-23 Thread moca
Feel free to post back if you make any improvements. Code follows: import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Properties; import java.util.logging.Logger; import javax.mail.MessagingException; import javax.mail.Session; import

[appengine-java] Re: Removing items from a List using JDO

2010-03-23 Thread alosii
Ok! I'll try that and report back ASAP! Thanks! On Mar 23, 6:47 am, Simon qila...@gmail.com wrote: Your relationship looks to be unidirectional (unless you didn't post all of the XYZMusicList class). Looking at the document link you posted it would seem to suggest that you need to either use