[appengine-java] Re: Comet and push mechanism

2009-08-26 Thread CoolDude
will the support be available for the next releaase of app engine? --~--~-~--~~~---~--~~ 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@google

[appengine-java] Re: Unable to persist an object in GAE

2009-08-26 Thread datanucleus
and Google provides a local data viewer which tells you if the object is persisted. --~--~-~--~~~---~--~~ 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-appen

[appengine-java] Re: Retrieving child records using entity group parent's primary key.

2009-08-26 Thread rohit jain
Hello This is my test case : Long catId = Long.parseLong("23"); ICategory catObj = catDao.get(catId); ICompany comp = new Company("Test compamy", catObj); comp = compDao.save(comp); This is interface for category type : public interface ICategory { public Ke

[appengine-java] Re: There is a problem about arraylist and integer.parse().

2009-08-26 Thread CJ
Thank you very much. I'm so appreciated your help. On Aug 27, 11:50 am, Jos Snellings wrote: > Hi, > > The problem is that the ".toString()" method won't work as you expected. > The proper way to build a string with your acquired input is: > > String fromCmdLine = new String(buffer). > That make

[appengine-java] Re: Accept-Encoding doesn't seem to get passed to the application

2009-08-26 Thread Philippe Marschall
On Aug 26, 11:54 pm, "Jason (Google)" wrote: > App Engine's gzip compression is described > athttp://code.google.com/appengine/docs/java/runtime.html#Responses. > Please file any feature requests in the public tracker: Does that make a difference? Up until now everything I reported or starred

[appengine-java] @SessionAttributes on App Engine

2009-08-26 Thread Travis J Warren
Pretty new to the app engine and have an issue using @SessionAttributes annotation using Spring 3 on app engine. Hope someone can help. All is well on local development (using Eclipse plug-in), when deployed on app engine I get the stack trace pasted below. I have configured <%@ page session="t

[appengine-java] Re: Datanucleus fails when commiting non-existing transaction

2009-08-26 Thread eddyd
I can not reproduce the problem in simple code. By the way the full- size code also works, when uploaded. Anyway it consistently fails on the development server - in one and the same way. If the above log does not say enough, I will have to investigate more. On Aug 27, 6:49 am, "Jason (Google)"

[appengine-java] Re: There is a problem about arraylist and integer.parse().

2009-08-26 Thread Jos Snellings
Hi, The problem is that the ".toString()" method won't work as you expected. The proper way to build a string with your acquired input is: String fromCmdLine = new String(buffer). That makes sure your typed in ints will be coming in correctly. Best, Jos On Thu, Aug 27, 2009 at 5:21 AM, CJ wro

[appengine-java] Re: Not able to upload application after adding com.google.gdata.DisableCookieHandler in appengine-web.xml file

2009-08-26 Thread Lee Beckman
Hey Partha, I just encountered this problem myself, thanks to the same misleading instructions at the link you gave. my appengine-web.xml file had this in it: which caused the error. I changed it to the following and

[appengine-java] Re: Not able to upload application after adding com.google.gdata.DisableCookieHandler in appengine-web.xml file

2009-08-26 Thread Partha Bhattacharya
Yes, I am able to upload without this line. I am using Eclipse plugin. -Partha On Thu, Aug 27, 2009 at 1:21 AM, Jason (Google) wrote: > Are you able to upload your application without this particular line? Are > you using the Eclipse plugin or appcfg.cmd/ant to start the upload? > - Jason > > O

[appengine-java] There is a problem about arraylist and integer.parse().

2009-08-26 Thread CJ
I'm a college student. So this problem may be a little silly. Thanks to help me. Why it always throw the NumberFormatException? - ArrayList inputNum = new ArrayList(); try {

[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...

2009-08-26 Thread Larry Cable
that's funny because it seems to "work"; well when I say work, em.persist() of such an entity does not throw ... I'll see what happens when I try to query an object with such a key ... errr ... also parenthetically, if it doesn't support @EmbeddedId then it's not really a conformant implementatio

[appengine-java] Re: Problems accessing guestbook after deployment

2009-08-26 Thread Filipe AlvesFerreira
Simon,It looks like I'm into http://letsgosimon.appspot.com/ Is'nt it ? Regards/filipealvesferre...@sandbox.com 2009/8/7 Simon Shaw > > I went through the vanilla Java guestbook tutorial (no GWT) and got to > the point whereby it > was working on localhost and the deployment to app engine appeare

[appengine-java] Re: Developing JPA app - data not persisting

2009-08-26 Thread Jason (Google)
Can you see if your entities are persisted using the local data viewer? Assuming your application is running on port 8080, just go to http://localhost:8080/_ah/admin. That can help you narrow down whether the issue is with the query. Barring that, you can change your log settings to see if there ar

[appengine-java] Re: adding a existing entity a a child of another entity...

2009-08-26 Thread Jason (Google)
If you choose to model the attribute as an entity, you would use an unowned relationship since owned entities can only have a single parent. If attributes are simple strings, you can just use a multi-valued (List) property of strings. Some cars will have the same string attributes, but this shouldn

[appengine-java] Re: Bulk update throws exception

2009-08-26 Thread Jason (Google)
Why do you indicate that the documentation is useless? The links I included above state this quite clearly: two entities will be in separate entity groups by default, even if they're the same kind. Entity groups DO NOT collect entities of the same kind. If you need transaction support, you'll need

[appengine-java] Re: Problems accessing guestbook after deployment

2009-08-26 Thread Jason (Google)
This might be related to a bug in our documentation which works in the Jetty server but not production. Try replacing the welcome-file-list in your web.xml file with the following: guestbook.jsp In other words, just remove the '/' in front of guestbook.jsp and see if that starts working for yo

[appengine-java] Re: Accept-Encoding doesn't seem to get passed to the application

2009-08-26 Thread Jason (Google)
App Engine's gzip compression is described at http://code.google.com/appengine/docs/java/runtime.html#Responses. Please file any feature requests in the public tracker: http://code.google.com/p/googleappengine/issues/list. - Jason On Tue, Aug 25, 2009 at 12:51 PM, Philippe Marschall < philippe.m

[appengine-java] Re: query performance

2009-08-26 Thread Jason (Google)
If you know what these names and countries are in advance, you can do a write-time check and mark each entity when it's persisted, so you only have to query on a single boolean field, for example. Even if the list of names and countries can change over time, you can write a script to re-process all

[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...

2009-08-26 Thread Jason (Google)
You have four choices for key type which are described at http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys. An embedded Id won't work with App Engine since it can't be naturally represented as a Key object. - Jason On Tue, Aug 25, 2009 at 2:09 PM, Larry

[appengine-java] Re: ajax in cross domain problem....

2009-08-26 Thread Jason (Google)
Hi jay. Can you use Firebug or another tool to record the HTTP request issued by jQuery? POST requests are definitely supported by App Engine, and I haven't seen any other requests transformed in the way that you've described. - Jason On Tue, Aug 25, 2009 at 4:58 AM, jay wrote: > > Hi, Friends,

[appengine-java] Re: Differences AppEngine Datastore and Azure Storage

2009-08-26 Thread Jason (Google)
Hi Valentino. We can't move posts, but you can feel free to re-post in the general group. I don't believe there is a document on code.google.com with the comparison and contrast that you're looking for, but there is plenty of documentation on App Engine's datastore, and we're happy to clarify any q

[appengine-java] Re: Datanucleus fails when commiting non-existing transaction

2009-08-26 Thread Jason (Google)
If I'm reading your logs correctly, you should be able to add both entities since you're supposedly not operating inside of a transaction. Can you post your full test code? - Jason On Tue, Aug 25, 2009 at 3:50 AM, eddyd wrote: > > This happens on the development server, using JPA. In the reques

[appengine-java] Re: Retrieving child records using entity group parent's primary key.

2009-08-26 Thread Jason (Google)
Try adding the catId field to the default fetch group: ... @Persistent(defaultFetchGroup = "true") private Category catId; Then, when you fetch a Company object, you should be able to call company.getCatId() or whatever method you've set up to get a reference to the corresponding Category object.

[appengine-java] Re: Problem on use of HttpSession

2009-08-26 Thread divricean
Hi Jean-Hubert, See if this solves your problem: http://groups.google.com/group/google-appengine-java/browse_thread/thread/c31875b8ba1f4f93 On Aug 11, 10:50 am, "FLAMEN, Jean-Hubert" wrote: > I have a problem on the use of sessions on GAE (google app engine). > > Locally, on my post, the appl

[appengine-java] Re: Issue to retrieve the data

2009-08-26 Thread Jason (Google)
See http://groups.google.com/group/google-appengine-java/browse_thread/thread/30855139bb40075aand please try not to post duplicate threads in the future. - Jason On Tue, Aug 25, 2009 at 5:32 AM, java wrote: > > there is company class model. > public class Company implements ICompany { >

[appengine-java] Re: Compile and execute at runtime

2009-08-26 Thread Toby Reyelts
Can you provide the full stacktrace for the exception? On Wed, Aug 26, 2009 at 2:58 PM, Albert Attard wrote: > Hey Toby: > Did as you instructed and worked. Thanks a lot Toby. Let me know should you > need anything. I'm glad to help. > > > Another question about Janino: I'm getting the following

[appengine-java] Re: Tutorial Java em Português

2009-08-26 Thread Jason (Google)
Most of the App Engine documentation should be available in Portuguese. Here is the Getting Started Guide: http://code.google.com/intl/pt-BR/appengine/docs/java/gettingstarted/ - Jason 2009/8/25 Almir F. Rivas Jr > Pessoal, > > Alguém pode me ajudar indicando um tutorial onde mostre como trabal

[appengine-java] Re: java.rmi.server.UID Error

2009-08-26 Thread Jason (Google)
Thanks! I just added it here: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine - Jason On Tue, Aug 25, 2009 at 5:14 AM, Icarus wrote: > > Hi Jason, > > Sorry about the delay... I didn't get a mail regarding response to > this thread. > > The fix I made was :

[appengine-java] Re: Warning message about junit plugin from datanucleus in my logs when running Junit tests

2009-08-26 Thread Amendmen7
I'm having the same issues. I have tried turning off all known loggers in the setUp methods of my LocalDatastoreTestCase superclass, but it has no effect re: this logspam! Has anyone found an answer? On Aug 5, 8:41 am, Stephan wrote: > I'm having the same problem here. Using a fresh eclipse ins

[appengine-java] What are your opinion ?

2009-08-26 Thread Geraldo Lopes
Hi, The article below review gae's persistence. What are your opinion ? http://www.ibm.com/developerworks/java/library/j-gaej3.html?ca=dgr-btw15GAE-Persistencedth-J&S_TACT=105AGY46&S_CMP=GRbtw15 Thanks in advance, Geraldo --~--~-~--~~~---~--~~ You received this

[appengine-java] Re: datanucleus - key -- set the name component instead

2009-08-26 Thread Jason (Google)
Hi Shawn. In this case, yes, you'll have to re-fetch the entity to update it. Even though you have the ID of the entity in your custom bean, all of the metadata that is associated with the detached entity is lost. If you re-fetch the entity (detach it if you immediately close the PersistenceManager

[appengine-java] Re: Datastore Warning: Persistent class has no table in the database

2009-08-26 Thread Wander
I still haven't solved the problem above, a new one turned up however. Datanucleus keeps looping on forever as soon as I edit and save a class. Could this be related, and how can I solve it? Thanks On Aug 26, 5:09 am, Wander wrote: > Hi all > > I'm trying to use the datastore in app engine (for

[appengine-java] Re: Google Internet Authority Issuer and appspot.com

2009-08-26 Thread Jason (Google)
Please file a request in the public tracker: http://code.google.com/p/googleappengine/issues/list Thank you, - Jason On Mon, Aug 24, 2009 at 8:28 AM, Jeff wrote: > > With the Google App Engine, one must use https://.appspot.com > for SSL. With Google, the issuer is the "Google Internet Authorit

[appengine-java] Re: Not able to upload application after adding com.google.gdata.DisableCookieHandler in appengine-web.xml file

2009-08-26 Thread Jason (Google)
Are you able to upload your application without this particular line? Are you using the Eclipse plugin or appcfg.cmd/ant to start the upload? - Jason On Mon, Aug 24, 2009 at 11:30 PM, Partha wrote: > > I am using contact api in my application. According to google > documents I have to add the fol

[appengine-java] Re: javax.servlet.Filter question

2009-08-26 Thread Don Schwarz
Yes. That's a bug in our documentation. I'll make sure that gets fixed. Thanks! On Wed, Aug 26, 2009 at 2:56 PM, Dipu wrote: > > Hi, > > According to the following document > > http://code.google.com/appengine/docs/java/config/webxml.html#Filters > > the method signature for "doFilter" is > >

[appengine-java] javax.servlet.Filter question

2009-08-26 Thread Dipu
Hi, According to the following document http://code.google.com/appengine/docs/java/config/webxml.html#Filters the method signature for "doFilter" is public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain filt

[appengine-java] Re: Compile and execute at runtime

2009-08-26 Thread Albert Attard
Hey Toby: Did as you instructed and worked. Thanks a lot Toby. Let me know should you need anything. I'm glad to help. Another question about Janino: I'm getting the following exception on the live app-engine when the dynamic code (the code that is compiled by janino) has a compilation error: An

[appengine-java] Re: Unable to persist an object in GAE

2009-08-26 Thread swprog
I should be more explicit. I make a call to the following code and get the logs below: public boolean authenticateUser(String userId, String encPassword) throws ServiceException { xLogger.fine("Entering authenticateUser"); PersistenceManager

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread Vince Bonfanti
Yes, that's what I meant (I should have given a fuller answer the first time). Any error checking and "rollback" to undo "modify entity A" in case of failure of "modify Entity B" would have to be coded manually within the lock/unlock block. Vince On Wed, Aug 26, 2009 at 1:09 PM, objectuser wrote

[appengine-java] Re: Unable to persist an object in GAE

2009-08-26 Thread swprog
After persisting the object, I try to get the object and it fails. try { xLogger.fine("Authenticating user 1"); AccountsServiceImpl as = Services.get().getService( AccountsServiceImpl.class);

[appengine-java] Unable to persist an object in GAE

2009-08-26 Thread swprog
Hi, I am writing a simple app in GAE to persist some objects in the GAE datastore. I am using JDO. However, the object is not able to persist. I am currently running the program in the eclipse plugin. Please see below for the code snippet and the logs: public String addAccount(UserAccount accoun

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread objectuser
I see what you're saying ... you're addressing the integrity issues around concurrent modifications. As is, "what if someone makes an inconsistent modification to A while I'm trying to update B" ... I was thinking of it in terms of, what if "modify entity A" works and "modify entity B" fails. G

[appengine-java] Re: Unable to persist an object in GAE

2009-08-26 Thread datanucleus
> However, the object is not able to persist. Define "not able to persist". You quote no exception. You quote no datastore info. The log says that the object persists. The object moves into the correct lifecycle state for a persisted object. There is no error. --~--~-~--~~

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread Vince Bonfanti
I've implemented a set of distributed locks for GAE that I posted a message about previously (especially note the current limitations of reliability of shared/read locks): http://groups.google.com/group/google-appengine-java/browse_thread/thread/6abc2092fc3870be/d495d9d82abbf912?lnk=gst&q=lock

[appengine-java] Re: Compile and execute at runtime

2009-08-26 Thread Toby Reyelts
Hey Albert, Even though I haven't actually seen the changes that you made, I believe they were unnecessary. (Go out on a limb with me here). I tracked the fault down to an error in our runtime that can be worked around by just recompiling the code. You should be able to confirm this on your end by

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread Vince Bonfanti
I thought it did, but I may not have fully understood the question. Using distributed locks would allow him to implement atomicity (synchronization) of transactions in his application code without modifying his data model, something like this: exclusiveLock.lock(); try { // modify

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread objectuser
Hey, Vince, That's really cool. Does that address the need of the OP though? I may just not be understanding it fully ... Thanks! On Aug 26, 11:15 am, Vince Bonfanti wrote: > I've implemented a set of distributed locks for GAE that I posted a > message about previously (especially note the c

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread objectuser
Yeah, you're going to have a hard time. In GAE you have to make significant compromises between model, efficiency and integrity. I don't fully have my mind around how to compesate for the integrity issues. However, someone has developed an algorithm for a datastore- specific 2PC. The code was

[appengine-java] Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread randal
Hello. I'm trying to create a service method that encapsulates a particular business logic. I want to make this feature transactional such that its job is accomplished atomically(?). The problem is the service logic involves accessing different entities that do not belong to the same entity group

[appengine-java] Re: Low-Level Datastore API Library that abstracts large Entity (greater than 1MB) concerns.

2009-08-26 Thread Tristan
Ahh, the first positive result of feedback. I forgot about ~20MB transaction write limit, so that will have to be addressed. Thank you, I'll address it soon, I'll enter it as an issue. The details are in the source, but the general concept is as straightforward as receiving the entity and splitti

[appengine-java] Re: Relationships

2009-08-26 Thread Yong Niu(Michael, USA--Houston)
you have to make the user-article relationship bidirectly befroe you persist the article, like: article.getusers().add(user); On Wed, Aug 26, 2009 at 5:42 AM, midomarocain wrote: > > i use three class User , Type ,and Article : > > @PersistenceCapable(identityType = IdentityType.APPL

[appengine-java] Re: Low-Level Datastore API Library that abstracts large Entity (greater than 1MB) concerns.

2009-08-26 Thread Stakka
How do you get past the datastore's 1 MB entity size limit, ~20MB transaction write limit and the 30 sec request time limit of writing this amount of data? On Aug 26, 9:41 am, Tristan wrote: > Ok, it is far from complete, but I have implemented the put(Entity) > and the get(Key) methods around w

[appengine-java] Re: Relationships

2009-08-26 Thread objectuser
I really recommend you read the documentation: http://code.google.com/appengine/docs/java/datastore/overview.html You are trying to do things the datastore does not allow. It's so different that a relational datastore, I think you'll find you're constantly roadblocked if you don't become famili

[appengine-java] web2py book talks about GAE

2009-08-26 Thread mdipierro
A new edition of the web2py book is out (341 pages) http://www.lulu.com/content/e-book/web2py/4968879 The new web2py works out of the box on GAE, in particular: - comes with its own app.yaml and index.yaml files - recognizes GAE, thus stores sessions and uploaded files on datastore - store

[appengine-java] Re: Relationships

2009-08-26 Thread midomarocain
i use three class User , Type ,and Article : @PersistenceCapable(identityType = IdentityType.APPLICATION) public class User { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String login;

[appengine-java] Re: Restricting access to a page, http basic authentication or whatever is available

2009-08-26 Thread Johannes
Thank you very much for such a fast answer. This seems perfect for my use. On 26 Aug., 11:50, Jos Snellings wrote: > Hi Johannes, > > You can use Google's own authentication mechanism for that. From > within any context, whether servlet or jsp: > >  UserService userService = UserServiceFactory.g

[appengine-java] Re: Restricting access to a page, http basic authentication or whatever is available

2009-08-26 Thread Jos Snellings
Hi Johannes, You can use Google's own authentication mechanism for that. From within any context, whether servlet or jsp: UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); If the User is unknown you can send the user to a login page. This

[appengine-java] Restricting access to a page, http basic authentication or whatever is available

2009-08-26 Thread Johannes
Hello Everyone. Im having some problems finding a way to restricting access to pages by a username password. What i really wanted was somthing like tomcats descriptor setup, but anything will do. How would one go about this in appengine? Thanks in advance //johannes --~--~-~--~~

[appengine-java] optimistic locking failing with "gae.parent-pk" and "gae.pk-id" fields

2009-08-26 Thread Marton Papp
Hi! In my project for GAE I am trying to use JDO with detached objects and optimistic locking. I make the modifications to the detached instance and then I update the database by calling PersistenceManager.makePersistent(detachedObject). Then I read some values from the persistent instance to be

[appengine-java] Re: Compile and execute at runtime

2009-08-26 Thread Albert Attard
Hey Toby: Janino api include classes that are not supported by the app-engine. All I did is commented out the code that the app-engine didn't like in janino and repackaged it. I did the following: - Downloaded the source for janino: http://www.janino.net/download/janino-2.5.15.zip - I've

[appengine-java] Re: Serializable or not

2009-08-26 Thread Albert Attard
Serialisable objects can be flattened/converted into streams and from streams inflated into objects. This is required for objects that need to travel between the server and client. Hope it helps, Albert Attard Charles de Gaulle -

[appengine-java] Low-Level Datastore API Library that abstracts large Entity (greater than 1MB) concerns.

2009-08-26 Thread Tristan
Ok, it is far from complete, but I have implemented the put(Entity) and the get(Key) methods around which the whole library will be based. The source of those two methods shows how it is possible to store large entities without having to worry about their sizes. If you can upload it, you should be

[appengine-java] Re: 401 Unauthorized Must authenticate first. I can't upload my project

2009-08-26 Thread bb1987 bb1987
My problem solved too,when I set system's date/time correcty. Thanks Cyrano. On Aug 25, 10:19 pm, Cyrano wrote: > I finally solved the problem. For some reason, the date/time setting > on my windows was incorectly set to a future point in time. Setting > the correct date/time solved the issue. >