[appengine-java] Development server requires custom indexes for inequality filters on keys

2010-03-29 Thread James
I was trying to do an inequality query on the Keys of an entity on the development server and received the following error: SEVERE: QUERY ERROR: com.google.appengine.api.datastore.DatastoreNeedIndexException: Query com.google.appengine.api.datastore.dev.LocalCompositeIndexManager

[appengine-java] Eventually consistent reads and JDO

2010-03-29 Thread Isdal
Hi all, Thanks for all new new features in 1.3.2! I was just wondering if it is possible to use the ReadPolicy.Consistency.EVENTUAL feature and still use the JDO interface. I am currently getting a PersistenceManager with: JDOHelper.getPersistenceManagerFactory(transactions- optional); Is

[appengine-java] Mysql migration to app engine

2010-03-29 Thread Rodri
Hello, I have a eclipse plugin that save logs in a mysql db. I want to save the logs in my app engine, How can i migrate the db to app engine? Thanks and Regards Rodrigo -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] Workflow Engine

2010-03-29 Thread David Sowerby
Has anyone successfully implemented a Java workflow engine on GAE? (or perhaps considering it). I'm thinking of something like Bonita (http://www.bonitasoft.com/) or Enhydra Shark (http://www.enhydra.org/workflow/shark/index.html) and would welcome feedback from anyone who has tried it -- You

[appengine-java] Lost record updates after server restart

2010-03-29 Thread mozey
Hello everyone, I have a simple issue, and i'm sure its fix is simple as well. I have written a simple app's scaffolding front end. And i notice that when i add new records, they get persisted, but when i update records. The effect will last until i restart my server. Where could i start looking

[appengine-java] Slow JAXB context initialization

2010-03-29 Thread maco
Hi ! I have a problem with JAXB context initialization. After some of my model optimization the local development server takes to start up (JAXBContext initialization included) about 7 seconds (as unit test it takes 1 second only. My CPU 3.06 GHz Core 2 Duo - GAE 1.3.1). However, on App Engine it

[appengine-java] Looking to brush-up on my Java

2010-03-29 Thread aeshanw
Its been a very long time since I used J2EE. been doing web dev in LAMP for the past couple of years. Im looking to get back in the game. Can anyone reccommend a good book on Java development for the AppEngine? I'm looking to get a good background on the Platform, which should help me better

[appengine-java] JPA: Query contains stale data (bug or future)?

2010-03-29 Thread danblack
Hello. I'm using JPA support for managing the App Engine datastore. And I've got some problems. I've got an entity Container than contains entities Item(s). Here is my actions. I starts transaction then updates entity then flush updates to database. Than I gets all entities Item(s) for a

[appengine-java] Grails, Spring, and Thread Issue

2010-03-29 Thread hutch
Hi all - I am aware of the thread policies in GAE, but I am not sure what changed, when I recently deployed a grails app (which i've done in the past w\out issues), and now all of a sudden it appears that Spring (as a part of grails) is attempting register a bean which requires threading, and then

[appengine-java] Problem with AppStats

2010-03-29 Thread George Tang
Hey Everyone, I just downloaded the new SDK and i was excited to use app stats. After following the instructions to set it up, I tried testing it on my localdev server and I got a nullpointerexception WARNING: /appstats/stats java.lang.NullPointerException at

[appengine-java] bouncycastle add provider failure

2010-03-29 Thread ZaeX
Hi, I have tried to add the bouncycastle JCE provider in the code, it works in Eclipse jetty server, but failed on GAE. I wonder if it's because my coding mistake or 'Security.addProvider' is forbidden by GAE. the stack trace is here: 03-27 01:31AM 01.275 javax.servlet.ServletContext log:

[appengine-java] allowMultipleRelationsOfSameType = true

2010-03-29 Thread scott
I have upgraded to AE SDK 1.3.2, and am still having problems retrieving a class that contains multiple properties of the same type, i.e. class A { class B x; class B y; } With the allowMultipleRelationsOfSameType= true, the persistence is OK, but the retrieve returns duplicate value for

[appengine-java] Unable to read file in Classpath

2010-03-29 Thread Eurig Jones
My app has a configuration file which I place in the classpath and read using commons-configuration's XMLConfiguration class... XmlConfiguration config = new XmlConfiguration(config.xml); Before I started porting my app to app engine, this worked fine. But now I get this an exception (below). If

[appengine-java] Best way to manage your live JDO database?

2010-03-29 Thread George Tang
Hey all, Just out of curiousity, how do you guys manage your live dbs? for your development servers you obviously have the _ah/admin section, but what do you use live? Best, George -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group.

[appengine-java] Re: log4j init fails

2010-03-29 Thread Eurig Jones
I'm getting the same problem. my log4j.properties is in the root of my source folder and it's giving me this issue. On Mar 12, 10:25 pm, Rajeev Dayal rda...@google.com wrote: Can you post a copy of your log4j.properties file? On Thu, Mar 11, 2010 at 12:45 PM, AJ Chen ajc...@web2express.org

[appengine-java] Re: Blobstore UploadBlobServlet.java NPE

2010-03-29 Thread Miguel
I have the same problem. It does not matter the url to the servlet i use to work with de keys of the blobs, i always have the same NPC. Any help about what we are doing wrong ? Thanks On 11 feb, 21:21, Stevko andy.ste...@gmail.com wrote: I'm trying to post files into theblobstoreon my dev

[appengine-java] JPA query contains stale data.

2010-03-29 Thread danblack
Hello. I'm using JPA for the App Engine datastore. And I've got some problems. I've got an entity Container than contains entities Item(s). Here is my actions. I start transaction then update entity then flush updates to database. Then I get all entities of class Item(s) for a container which

[appengine-java] Re: Timeout using GData API

2010-03-29 Thread Kenyth
The same issue here. Has someone found a solution so far? On Mar 26, 3:55 am, Shinichiroh Takezaki [Virtual Technology] stakez...@gmail.com wrote: Hi I made a patch that the GData API library to execute asynchronously.

[appengine-java] Objectify - Twig - SimpleDS articles

2010-03-29 Thread Andreas Borglin
Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I found out about 5 other frameworks as well (Twig, SimpleDS, siena, slim3, cloud2db). I was only interested in simple

Re: [appengine-java] Problem with AppStats

2010-03-29 Thread m seleron
Hi, I tried. After successfully running the following was added to the web.xml. servlet servlet-nameappstats/servlet-name servlet-classcom.google.appengine.tools.appstats.AppstatsServlet/servlet-class /servlet servlet-mapping servlet-nameappstats/servlet-name

Re: [appengine-java] Re: Blobstore UploadBlobServlet.java NPE

2010-03-29 Thread bimbo jones
h, We have the following code in the upload servlet: public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { BlobInfo info = new BlobInfoFactory().loadBlobInfo(blobstoreService.getUploadedBlobs(req).get(uploader)); // uploader is the

Re: [appengine-java] bouncycastle add provider failure

2010-03-29 Thread Alan Kennedy
[ZaeX] I have tried to add the bouncycastle JCE provider in the code, it works in Eclipse jetty server, but failed on GAE. I wonder if it's because my coding mistake or 'Security.addProvider' is forbidden by GAE. It is currently not possible to add security providers to appengine. Add

[appengine-java] Re: Timeout using GData API

2010-03-29 Thread Kenyth
FYI, I appended messages to this issue ( http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to describe my case. Surprisingly, this issue claims to be fixed on Sep 03, 2009?! On Mar 29, 2:21 pm, Kenyth ken...@gmail.com wrote: The same issue here. Has someone found a solution so

Re: [appengine-java] Re: Timeout using GData API

2010-03-29 Thread Andrei Cosmin Fifiiţă
I noticed that too... I'll try async fetch... Hope it works... 2010/3/29 Kenyth ken...@gmail.com FYI, I appended messages to this issue ( http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to describe my case. Surprisingly, this issue claims to be fixed on Sep 03, 2009?! On

[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-29 Thread objectuser
Hey, Thomas, Thanks very much for working on this! I think a lot of people want Spring transactions to work in GAE. What does your fix do? Or why does it work? It looks like you're just creating a proxy that passes the invocation along. For example, my jdo-context.xml is below. Is your new

[appengine-java] How to get IP address of Appengine running my java servlet page

2010-03-29 Thread powell...@gmail.com
I am trying to get a sense of where (location) the Appengine is running my servlet to show how the cloud runs my servlet in different locations. I have tried to use request.getLocalAddr() but get back null. I tried getServletContext().getServerInfo() but did not get back an IP address. Any ideas?

[appengine-java] Re: AuthSub InvalidToken problem

2010-03-29 Thread nicanor.babula
Come on! Anyone, anything? Thanks. On Mar 26, 12:54 pm, nicanor.babula nicanor.bab...@gmail.com wrote: Hi all, I am facing a strange problem in with my app in GAE and I can't seem to figure it up by myself, so I hope you'll help me.. Here we are: I do : [code] String authSubUrl =

Re: [appengine-java] Re: log4j init fails

2010-03-29 Thread Rajeev Dayal
Can you provide the contents of the file? On Sat, Mar 27, 2010 at 11:44 AM, Eurig Jones eurigjo...@gmail.com wrote: I'm getting the same problem. my log4j.properties is in the root of my source folder and it's giving me this issue. On Mar 12, 10:25 pm, Rajeev Dayal rda...@google.com wrote:

Re: [appengine-java] Update to GAE/J 1.3.2 - Project in Eclipse broken

2010-03-29 Thread Jason Parekh
Hi, Could you try a few things: - What happens when you right-click your project, and select Run As Web Application? Does the Console come to focus? What does it say? - Could you create a new Web Application project (using GAE 1.3.2) and try Run As Web Application on it? Does this work? - I

Re: [appengine-java] Re: Update to GAE/J 1.3.2 - Project in Eclipse broken

2010-03-29 Thread Jason Parekh
Hi Moritz, Could you try the following: - In your project properties, could you see what the App Engine SDK is set to (right-click project Properties Google App Engine). Does it show an error on this page? If you click the Configure SDKs button, what is the path for the SDK? - In your

[appengine-java] JDO java cascade unidirectional mapping problem

2010-03-29 Thread Тарас Великий
What steps will reproduce the problem? @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Patient { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key patientID; @Persistent private String patientName;

[appengine-java] Re: How to get IP address of Appengine running my java servlet page

2010-03-29 Thread Didier Durand
Hi, check out class java.lang.System: you can get various system properties. didier On Mar 29, 4:30 pm, powell...@gmail.com powell...@gmail.com wrote: I am trying to get a sense of where (location) the Appengine is running my servlet to show how the cloud runs my servlet in different

[appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Blake
+1 On Mar 29, 4:03 am, Andreas Borglin andreas.borg...@gmail.com wrote: Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I  found out about 5 other frameworks as well

[appengine-java] error when trying to run gae/j app - Usage: dev-appserver [options] war directory

2010-03-29 Thread zackmac
getting this message when trying to run my gae/j app in Eclipse: Usage: dev-appserver [options] war directory Options: --help, -h Show this help message and exit. --server=SERVERThe server to use to determine the latest -s SERVER SDK version.

Re: [appengine-java] Re: How to get IP address of Appengine running my java servlet page

2010-03-29 Thread Jeff Schnitzer
It seems quite unlikely that GAE appservers are going to have public IP addresses. Even if you can get the IP address of the host (and I suspect this is impossible), it's going to be a private address. The best you will probably be able to do is get the NATed apparent address of the URLFetch

Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Ikai L (Google)
Hah, Blake, guess you caught us! We might be doing more stuff with that in addition to what went out with 1.3.2. On Fri, Mar 26, 2010 at 6:50 PM, Blake blakecaldw...@gmail.com wrote: Ikai - that's awesome - great to see you guys listening to us. Is that doc already outdated? Didn't you just

Re: [appengine-java] Error message after updating AppEngine in my project

2010-03-29 Thread Ikai L (Google)
Not sure why this should be happening as the deploy script should be ignoring this, but is it possible for you to do an svn export to another directory prior to a deploy? On Sat, Mar 27, 2010 at 5:10 AM, Fux ufi...@gmail.com wrote: com.google.appengine.tools.info.LocalVersionFactory getVersion

Re: [appengine-java] I was reading the objectify wiki and the have the best short explanation of the datastore i ever read. Here the link

2010-03-29 Thread Ikai L (Google)
I like that in one of the first sentences, Jeff says The datastore is not an RDBMS! It is like a giant HashMap! You can really see that developers tend to get stuck on the relational model. Sometimes I will say table or column accidentally myself in these groups. On Sat, Mar 27, 2010 at 7:11 AM,

Re: [appengine-java] Looking to brush-up on my Java

2010-03-29 Thread Ikai L (Google)
Having *not* done JEE in a while may actually be a boon, as you would have had to unlearn a few concepts coming from a relational persistence, stateful servlets world to one that is not. If you work your way through the tutorial and App Engine documentation, your prior Java experience should be

Re: [appengine-java] Charging Application Users for Data Storage

2010-03-29 Thread Ikai L (Google)
There's no native API for this. You'll have to track this in your application. On Sun, Mar 28, 2010 at 8:41 AM, Gareth Davies womble.abr...@gmail.comwrote: I am currently working on my first Java application for Google App Engine. It would allow users to record discrete amounts of data

[appengine-java] SSLSocket / SSLSocketFactory

2010-03-29 Thread derkent
I would like to send/provoke an apple iphone push from the Java App Engine. This is done via ssl. I have found a library that does exactly that, but it uses the class SSLSocket SSLSocketFactory which are not supported. Are there any alternatives, or any other ways to do this with the app

Re: [appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Guillermo Schwarz
One question: Why didn't you consider jiql? On Mon, Mar 29, 2010 at 1:04 PM, Blake blakecaldw...@gmail.com wrote: +1 On Mar 29, 4:03 am, Andreas Borglin andreas.borg...@gmail.com wrote: Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks.

Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Guillermo Schwarz
JohnJ, The way I see it, you just need to pay for one warmed instance. I've measured that one instance is enough to handle 30 requests per second. Trying to execute more requests than that immediatly triggers the loading of a new instance and so far some of the requests fail. Therefore, If you

[appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Andreas Borglin
Hi Guillermo. Well, it's hard to consider things that I didn't know existed :-). I was only aware of the six frameworks that I mentioned in the post. I'll take a look at it. On 29 mar, 20:52, Guillermo Schwarz guillermo.schw...@gmail.com wrote: One question: Why didn't you consider jiql?

[appengine-java] Re: error when trying to run gae/j app - Usage: dev-appserver [options] war directory

2010-03-29 Thread zackmac
This is what's in the .launch file for this app: ?xml version=1.0 encoding=UTF-8 standalone=no? launchConfiguration type=com.google.gdt.eclipse.suite.webapp stringAttribute key=com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME

[appengine-java] Re: error when trying to run gae/j app - Usage: dev-appserver [options] war directory

2010-03-29 Thread zackmac
Solution worked great - thanks! On Mar 29, 3:00 pm, Jason Parekh jasonpar...@gmail.com wrote: Hey Zack, Looks like the launch configuration got into a bad state. Before you proceed with the solution below, could you send us a copy of the .launch file for this launch configuration?  That

[appengine-java] Java Tasks

2010-03-29 Thread kscott
I have a simple Java task that simply checks to see if it needs to send an email email sent flag =N. It is taking in excess of 6604 milliseconds to execute. Are tasks executed with a much lower priority? When I moved my start time to15 minutes later I was a least able to get rid of the most of

Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Baz
Warmed instances make absolutely no sense on the GAE! It's supposed to be an invisible, infinite, platform without the notion of ram, cpu's, drives or instances - it goes completely against the heart and soul of the project. That just makes us an Amazon. It's boggled my mind from day 1 why

[appengine-java] Re: Contacts/Address Book App?

2010-03-29 Thread iwas9409
Here is the plan. I have a team of 100 people. 3 of those people would be administrators. (we are setup and using Google Apps and those 3 are setup in that system) I would like to collect the names, email address, cell phone numbers of the 100. In addition, for each meeting we have every

[appengine-java] Re: Error message after updating AppEngine in my project

2010-03-29 Thread julianc
Similar problem here. Upgraded to 1.3.2 error, switched back to 1.3.1 ... everything fine again. Mar 29, 2010 11:24:44 PM com.google.appengine.tools.info.LocalVersionFactory getVersion INFO: Could not find API version from ../project/war/WEB-INF/lib/.svn java.util.zip.ZipException: error in

Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Shawn Brown
It's boggled my mind from day 1 why instances aren't loaded in the background. I always assumed it would be addressed What is difficult to understand? 1 server has X resources warmed instanced require Y resources X - YN = resources left over for the server to fulfill requests. By reducing

[appengine-java] Re: AuthSub InvalidToken problem

2010-03-29 Thread seleronm
Hi, I was not able to have them reproduce behavior though I tried a little. (It was possible to execute it normally). Can post do you the source code further? I want to confirm behavior. Or, the environment might be a cause. thank. Come on! Anyone, anything? Thanks. On Mar 26, 12:54 pm,

[appengine-java] Re: GAEJ Access to Google Calendar, How to Authenticate ?

2010-03-29 Thread seleronm
Hi, I am glad to be useful for you. Moreover, in the near future I am looking forward to [Built-in support for OAuth OpenID]. thanks. Thank'sSeleronm, the AuthSubUtil was my missing part to fix my problem. Regards  Stephan On 26 Mrz., 08:53,seleronmseler...@gmail.com wrote: Hi,

[appengine-java] createLoginURL - userservice takes me to custom google apps domain login page

2010-03-29 Thread niraj
My code on the server is if(userPrincipal != null){ String name = userPrincipal.getName(); site.setNickName(name); site.setLoginLogOutURL(userService.createLogoutURL(thisURL)); site.setLoggedIn(true); }else{