[appengine-java] Re: Why I encountered this error : "The class "java.lang.String" is not persistable."

2010-03-11 Thread Ian Marshall
DataNucleus: OK. Jolam: how did you fix your problem? -- 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 goog

Re: [appengine-java] log4j init fails

2010-03-11 Thread AJ Chen
I have the default log4j.properties in WEB-INF/classes dir. but the warning always comes up. the file is visible because I can change the log level to ERROR to get rid of the warning. -aj On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright wrote: > I think you can simply put the log4j.properties file

Re: [appengine-java] How to query objects with criterias defined in child entities

2010-03-11 Thread Jeff Schnitzer
On Wed, Mar 10, 2010 at 7:39 PM, John Patterson wrote: > On 11 Mar 2010, at 03:40, Jeff Schnitzer wrote: > > That is an empty claim with no example or evidence.  Every comparison we > have see so far is cleaner  and more readable in Twig. Nonsense.  The only example that was "cleaner and more rea

[appengine-java] Re: Why I encountered this error : "The class "java.lang.String" is not persistable."

2010-03-11 Thread Jolam
Actually i have encounter new problems...I will ask for help in a new post... On Mar 11, 4:01 pm, Ian Marshall wrote: > DataNucleus: OK. > > Jolam: how did you fix your problem? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To

[appengine-java]confusion about entities group and transaction.

2010-03-11 Thread Jolam
I have defined two classes named TotalInformation and UrlInformation: TotalInformation: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private int urlNumber; UrlInformation

[appengine-java] Re: confusion about entities group and transaction.

2010-03-11 Thread Jolam
What i'm gonna ask is how can i store two class with no reference to each other in a single transaction and how can i retrieve them , edit and store them in a single transaction. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To p

[appengine-java] Re: Where can i specify my log file name in Google Web App ?

2010-03-11 Thread mallubk
Thank you Ian Marshall, I want to log all diagnostic messages in a file by specify file name in Log4j.properties file as below: log4j.appender.myapp.file=C:/MyTestAppLogs.log but its not working... any idea ? Thanks, MallikarjunBK On Mar 11, 1:54 am, Ian Marshall wrote: > I use both files

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread John Patterson
On 11 Mar 2010, at 16:27, Jeff Schnitzer wrote: On Wed, Mar 10, 2010 at 7:39 PM, John Patterson wrote: On 11 Mar 2010, at 03:40, Jeff Schnitzer wrote: That is an empty claim with no example or evidence. Every comparison we have see so far is cleaner and more readable in Twig. Nonsense.

[appengine-java] Re: confusion about entities group and transaction.

2010-03-11 Thread Ian Marshall
I think that the only way to do this is to have both of your instances in the same entity group. So, even though each instance will have no (direct) reference to each other, they will need to share an entity ancestor (which will ensure that your instances are in the same entity group (the same ent

[appengine-java] Re: Where can i specify my log file name in Google Web App ?

2010-03-11 Thread Ian Marshall
In fact, I have two "log4j.properties" files: one for my build environment and one for running GAE/J (either the development server on my computer or in the production (cloud) environment). In my earlier post I mentioned my running properties file only. BUILD ENVIRONEMNT EXTRACT -

[appengine-java] Precompilation fails

2010-03-11 Thread guillaume
Hi, I manage the Google App Engine module for the Play! java web framework (http://www.playframework.org). While generated applications run correctly on the local and production runtimes, the precompilation process always fail. It seems that any war generated by play cannot be precompiled (So for

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Ganesh
Hi, Thanks for your response...I dont have my code with me right now..I will post it in a day or two. Meanwhile, do you have any example of handling two dimensional arrays into two separate lists of ArrayList? -Thanks Ganesh On Mar 10, 5:17 pm, Robert Lancer wrote: > Just use two separate lists

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread datanucleus
> I tried changing the string array object to java.util.arraylist (gave > serizable = 'true' option). This time I was able to write the data > successfully. But when I tried to retrieve it, I am facing null > pointer exception. Perhaps if you actually posted the NPE+stack trace, and code used to r

[appengine-java] Cloud2db - JDBC driver for Google Android platform

2010-03-11 Thread Sandeep
Hi Everyone, Cloud2db is pleased to announce the availability of Cloud2db JDBC driver for Google Android platform. With this driver you will be able to access your Cloud2db instance from the Android applications using standard JDBC concepts. Please download the Cloud2db Server and JDBC driver from

[appengine-java] Re: elegant way of implementing sequence generator

2010-03-11 Thread legendlink
Hi blake, could you give me simple example on how to use the @version, or any reference material? thanks! On Mar 9, 11:35 pm, Blake wrote: > You could also go with the sharded counter strategy.  The more shards > you have, the less the chance that you'll have a collision, and you'd > use @Versi

[appengine-java] 30 second error after commit transaction

2010-03-11 Thread legendlink
Could someone confirm if my thinking is correct regarding the status of datastore if the 30 seconds timeout occurs in the timeline below? start of servlet ... some process ... transaction start ... <--- a) 30 second timeout! some process ... <--- b) 30 second timeout! commit transaction ... <---

Re: [appengine-java] log4j init fails

2010-03-11 Thread Rajeev Dayal
If you have your log4j.properties file at the root of your source tree, it should automatically be copied over to war/WEB-INF/classes whenever Eclipse performs a build of your project; you should not have to copy it over manually. I'm not sure why you're getting the error with regard to Datanucleu

[appengine-java] Re: App instance recycling and response times - is there solution?

2010-03-11 Thread James
I setup some pings of my add a few minutes ago, and I'm still seeing recycling :( My ping setup can't go lower than 60s intervals, so I have two running concurrently. Here's a sample of 20 log entries over 10 minutes, with . Three recyclings occur, and they happen less than 10s after a previous

Re: [appengine-java] Re: How exactly do the App Engine Logs work?

2010-03-11 Thread Don Schwarz
On Wed, Mar 10, 2010 at 8:05 PM, Spines wrote: > Sorry, I don't think I really understood the task queue approach. To > ensure no loss of data, would the task have to update in the datastore > every time? And the benefit over just doing it directly in the > servlet handler would be the faster re

[appengine-java] Re: elegant way of implementing sequence generator

2010-03-11 Thread datanucleus
> could you give me simple example on how to use the @version, The DataNucleus docs define that, and much more http://www.datanucleus.org/products/accessplatform/jdo/orm/versioning.html -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" gro

[appengine-java] Re: confusion about entities group and transaction.

2010-03-11 Thread Jolam
It's the kind-hearted man Ian Marshall again. :) I have solved the problem mentioned above by setting the key of a class to be stored a key with common ancestor like u said. But there's one thing i think we should noticed that if we retrieve a entity by a key with no parents ,say we create it by Ke

Re: [appengine-java] log4j init fails

2010-03-11 Thread AJ Chen
yes, log4j.properties is copied by the build. the app uses it. the warning message is weird. thanks. On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal wrote: > If you have your log4j.properties file at the root of your source tree, it > should automatically be copied over to war/WEB-INF/classes wh

Re: [appengine-java] Re: App instance recycling and response times - is there solution?

2010-03-11 Thread Don Schwarz
Can you respond privately with your app id? On Thu, Mar 11, 2010 at 10:10 AM, James wrote: > I setup some pings of my add a few minutes ago, and I'm still seeing > recycling :( > > My ping setup can't go lower than 60s intervals, so I have two running > concurrently. Here's a sample of 20 log e

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Robert Lancer
Setting: List arrayDim1 = new ArrayList(); List arrayDim2 = new ArrayList(); entity.setUnindexedProperty("ArrayDim1", arrayDim1 ); entity.setUnindexedProperty("ArrayDim2", arrayDim2 ); Unless your looking to run queries against the lists use the setUnindexedProperty. Getting: List arrayDim1 =

[appengine-java] Re: Objectify - Twig - approaches to persistence

2010-03-11 Thread Bob
I've recently converted from JDO to Twig. I've been able to remove an optimization hack that queried the datastore every 15 minutes to cache data from a 1+ minute operation. I can now have end users execute essentially that same logic in real time. Have not tried Objectify so I can't comment on

[appengine-java] Unable to replace JPACallbackHandler

2010-03-11 Thread Thom Nichols
I'm attempting to build a simple Java app, but as soon as I call pm.makePersistent( entity ) I get this error. I've only seen a couple other instances of this problem (here's one: http://groups.google.com/group/google-appengine-java/browse_thread/thread/ec3beda8fbd9c154 ). I don't believe this is

[appengine-java] Equality operator with range uery not working properly

2010-03-11 Thread Abhi
Hi All, I am facing problem with a query when i am adding filter with equality operator (== set) and providing range, it gives all the records. Please help me. Thanks, Abhi -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To pos

[appengine-java] GAE + PDFJet

2010-03-11 Thread mobilekid
Hi there, I've created a servlet, which simply reads requests using Apache Commons FileUpload, and then if an image has been uploaded, it converts it into a .pdf file using the PDFJet OS library. My question is how do I feed back the client with the generated PDF? Thanks! -- You received this mes

[appengine-java] How do I write data in my Google App Engine Datastore to com.google.appengine.api.datastore.Text

2010-03-11 Thread Lloyd
I have persistent object, with a string property that often is over 500 charachters. Google App Engine says I need to save it as a com.google.appengine.api.datastore.Text. How do I either convert a String type to a com.google.appengine.api.datastore.Text type so I can use a setMethod() on the prop

[appengine-java] Newwwwbie

2010-03-11 Thread Thanks in Advance
I started at: http://code.google.com/appengine/docs/java/gettingstarted/usingusers.html but am laughably stuck at "To allow the user to sign out, provide a link to the sign-out screen, generated by the method createLogoutURL()." despite looking through the documentation at: http://code.google.c

[appengine-java] Pls Help: want to send 2000+ emails in one go

2010-03-11 Thread Harshal
Hi All, I have my own domain www.xyz.com , I have taken an google appengine account of 7$ per week. As per this account I can send emails to more than 2000 people, I have created a group on my domain using Google Apps which has 3000 people, when I send mail to this group id it says , the group ex

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

2010-03-11 Thread Just A Guy Trying to Get By
Problem: I have an application built using GWT + GAE, it stores data which I would like to be able to report on in the form of an excel table. Attempted solution: I thought that I could create a servlet which would dump the data into an google spreadsheet and then export the spreadsheet back to th

[appengine-java] Re: Equality operator with range uery not working properly

2010-03-11 Thread datanucleus
> when i am adding filter with equality operator (== set) and providing > range, it gives all the records. You don't quote the query, nor the query mechanism (local API, JDO, JPA, who knows what) so am doubting you will get a reply without such infos -- You received this message because you are

Re: [appengine-java] Re: Objectify - Twig - approaches to persistence

2010-03-11 Thread Sandeep Sathaye
All these approaches are great but they lack structure, standards and interoperability required to build large scale enterprise systems. The better persistance approach is to build a database engine on top of Google Datastore (Bigtable) which could be managed via a standard data model and accessed

Re: [appengine-java] Newwwwbie

2010-03-11 Thread Ikai L (Google)
Quick thing to try: run the server as "Debug" and not "Run". This allows for hot class reloading. On Thu, Mar 11, 2010 at 12:27 AM, Thanks in Advance wrote: > I started at:   > http://code.google.com/appengine/docs/java/gettingstarted/usingusers.html > but am laughably stuck at > > "To allow the

[appengine-java] JPA enhancement problem (DataNucleus)

2010-03-11 Thread Sekhar
I'm using the Eclipse Google plugin, and every once in a while after a build I get the dreaded "this class is not enhanced!" errors for all my entities (even when I don't edit any of them). Any idea why this is? If I touch the files, they get built/enhanced again fine, but this is getting to be a r

[appengine-java] Re: "appcfg.sh update" suddenly doesn't work

2010-03-11 Thread Josh H
I'm having the exact same problem. I added some new jars and they're not being uploaded. And when I go to run the app I get a class not found exception which is located in one of the new jars. It just comes up with uploading 0 files. I checked the temp folder and all the new jars are in there but t

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread Jeff Schnitzer
On Thu, Mar 11, 2010 at 4:59 AM, John Patterson wrote: > > Well then, where are your examples?  I responded to the "edge cases" you > asked about with a simple example.  Now its your turn to show me how > Objectify would code the example I asked about. I can see you are proud of your OR implement

Re: [appengine-java] Precompilation fails

2010-03-11 Thread Don Schwarz
I've identified a bug in the precompilation process (well, another symptom of a problem we were already working on fixing). As a workaround, if you can stop providing play-gae.jar in both WEB-INF/lib and WEB-INF/modules/gae/lib this issue should go away. Those two files just need to not have iden

Re: [appengine-java] Doing some analysis in picture (represented by an array of byte ), encoding in JPG.

2010-03-11 Thread Ikai L (Google)
Here's some code I wrote a while ago. Note that I pulled this from docs I was working on about saving attached Images in the datastore and not a test case, so it may not work out of the box without some tweaking. Give it a try (and if it's broken, fixes appreciated!): http://pastie.org/865494 pub

Re: [appengine-java] Simple query

2010-03-11 Thread Ikai L (Google)
This shouldn't take that long to run. Can you post any other code or benchmarking code? On Sun, Mar 7, 2010 at 6:33 PM, Karel Alvarez wrote: > Hi guy, > I hate to bother everybody again. > I have a ver simple class, some fields, and an String primary key. One > of the fields "lastTimeIndexed" is

Re: [appengine-java] Unable to upload app: Error posting to URL:

2010-03-11 Thread Ikai L (Google)
Yes, you will have to specify your proxy settings. On Tue, Mar 9, 2010 at 8:32 AM, WillSpecht wrote: > I am getting the following error when trying to upload my app to app > engine.  What does the 302 Redirected mean?  I am behind a proxy could > this be part of the problem? > > Error > Tue Mar 0

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread John Patterson
On 12 Mar 2010, at 02:49, Jeff Schnitzer wrote: On Thu, Mar 11, 2010 at 4:59 AM, John Patterson wrote: Well then, where are your examples? I responded to the "edge cases" you asked about with a simple example. Now its your turn to show me how Objectify would code the example I asked ab

Re: [appengine-java] Re: Objectify - Twig - approaches to persistence

2010-03-11 Thread John Patterson
Really nice to hear that Bob! I am also in the lazy developers camp :) On 12 Mar 2010, at 01:02, Bob wrote: I've recently converted from JDO to Twig. I've been able to remove an optimization hack that queried the datastore every 15 minutes to cache data from a 1+ minute operation. I can now

[appengine-java] Re: confusion about entities group and transaction.

2010-03-11 Thread Ian Marshall
You're welcome! Yes, I believe that, as you have done, the key has to hold the full entity path, from the entity group root, through children, to the entity. If the entity is its own root (not in your case) then only one element is needed. I believe that the key also has info about the app, so th

Re: [appengine-java] Simple query

2010-03-11 Thread Karel Alvarez
what kind of benchmarking you need? I could send you the local_db.bin file? and the code, and you can debug it line by line, it is pretty ovbious when that one line takes minutes to run... thanks! Karel On Thu, Mar 11, 2010 at 3:16 PM, Ikai L (Google) wrote: > This shouldn't take that long to ru

Re: [appengine-java] Re: confusion about entities group and transaction.

2010-03-11 Thread Scott Hernandez
As I understand it, you never need (or can) prefix you appid to the key. If you could it would open up the option to get data from other appids, and that is not possible. That is also a huge security hole, if it existed :( You are correct that you need to include the full ancestry to define the ke

Re: [appengine-java] Simple query

2010-03-11 Thread Ikai L (Google)
Oh, this is slow locally? Yes, that makes sense. Our local datastore stub isn't meant to run fast. We're thinking of replacing the flatfile stub with SQLite, which would mitigate the pain slightly. How does it run in production? On Thu, Mar 11, 2010 at 1:25 PM, Karel Alvarez wrote: > what kind of

[appengine-java] Is there a quota on api_cpu_ms?

2010-03-11 Thread Spines
Is cpu_ms is the only thing that is limited? Is api_cpu_ms in the logs is just for our information? With this: 7802cpu_ms 6500api_cpu_ms The only quota used up is 7802ms of CPU time right? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java

Re: [appengine-java] Simple query

2010-03-11 Thread Karel Alvarez
wow!, seriously? is this in the docs?? I don't recall ever reading about the dev server being significantly slower than production, for only one user, one request? No, I don't have the code in production, I would not put a code in production that I know for sure (now I know better) is not going to

Re: [appengine-java] Simple query

2010-03-11 Thread Ikai L (Google)
The dev appserver is a simulator, not a true emulator. It'll run much slower locally than in production because in production Google uses BigTable, scalable email service, scalable XMPP, scalable task executor, etc. On a side note, this is the lesser of two evils, anyway. Anyone that has done iPho

[appengine-java] How to delete all entities of a kind with the datastore viewer

2010-03-11 Thread Spines
I'm only able to delete 20 entities at a time, I have over 500 entities of a certain kind. Is there a way I can delete them all from the admin console? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send e

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread Jeff Schnitzer
I'll try to ignore the blatent trolls. But you want things easier to do in Objectify than Twig, so here's a few: - How, in Twig, do you rename a field? Objectify lets you import data from a variety of historical formats; as you load and save data it will naturally be transformed in format:

[appengine-java] Re: datanucleus enhancer keeps running

2010-03-11 Thread lp
i tried using gae sdk 1.3.1 but still got enhancer looping. it seems to happen when i include spring 3.x libs i dunno giving up and going for ant task. -lp On Mar 3, 1:43 am, Rajeev Dayal wrote: > Seehttp://code.google.com/p/googleappengine/issues/detail?id=2115. This may > be the issue tha

[appengine-java] Re: How do I write data in my Google App Engine Datastore to com.google.appengine.api.datastore.Text

2010-03-11 Thread Tristan
Lloyd, String reallyLong = "It was the best of times, it was the worst of times. (...) .."; Text myText = new Text(reallyLong); I don't understand your reference to "setMethod()". Cheers! On Mar 10, 10:53 pm, Lloyd wrote: > I have persistent object, with a string property that often is ov

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Ganesh
This is the class which I wanted to write into datastore: import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import java.util.List; import java.util.Arrays; import java.util.

Re: [appengine-java] Re: datanucleus enhancer keeps running

2010-03-11 Thread Miguel Méndez
Did you try the GPE 1.3 preview release? It should have addressed this looping problem. On Thu, Mar 11, 2010 at 5:48 PM, lp wrote: > i tried using gae sdk 1.3.1 but still got enhancer looping. > > it seems to happen when i include spring 3.x libs i dunno giving > up and going for ant task.

[appengine-java] Re: How exactly do the App Engine Logs work?

2010-03-11 Thread Spines
Thanks for your help Don. Just one more question (hopefully :)). I think just the request logs will be good enough for my purposes, and I won't actually have to use the diagnostic logs. How much past data is stored for the request logs? On Mar 11, 8:16 am, Don Schwarz wrote: > On Wed, Mar 10,

[appengine-java] Cryptography on App Engine

2010-03-11 Thread Spines
Anyone know of a reliable Java library for cryptography that works on the app engine? I want to encrypt with AES. -- 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...@googlegro

[appengine-java] Re: Reporting on GAE in Java

2010-03-11 Thread David
Update: This website (http://www.jscriptive.org/2009/08/jasperreports-and- google-appengine.html) appears to confirm that it's a real issue rather than simply something I've done wrong or overlooked. This website (http://code.google.com/p/g2-report-engine/wiki/ AppEngineSupport) seems to be a bas

[appengine-java] Re: Cryptography on App Engine

2010-03-11 Thread Spines
I think bouncy castle is a good library to use, does anyone know if it works on the 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-j...@googlegroups.com. To unsubsc

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread John Patterson
On 12 Mar 2010, at 05:45, Jeff Schnitzer wrote: How, in Twig, do you rename a field? I'm glad you brought this up. I've found simple renames are better handled at the low level - no need to rehydrate them into instances just to rename a property. But for typesafe changes large or small

Re: [appengine-java] what if I hit memory limit ?

2010-03-11 Thread John Patterson
I've also put the source for my layered cache here: http://code.google.com/p/stick-cache/ You basically have one interface and 3 implementations: memcache, datastore, in-memory (LRU ReadWrite locks) One quite handy thing it does is handle blocking for expensive items. You can pass a Cal

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread Scott Hernandez
Okay, time to chime in. There are some pretty different philosophies driving these frameworks. On Fri, Mar 12, 2010 at 4:56 AM, John Patterson wrote: > > On 12 Mar 2010, at 05:45, Jeff Schnitzer wrote: > > How, in Twig, do you rename a field? > > I'm glad you brought this up.  I've found simple r

Re: [appengine-java] How to delete all entities of a kind with the datastore viewer

2010-03-11 Thread 杨浩
in the admin console:clike the next 20 entity,then change the brower's location.href set *size=200* and *offset=0*, enter^ ^ The offset's max is *1000* Good luck! 2010/3/12 Spines > I'm only able to delete 20 entities at a time, I have over 500 > entities of a certain kind. Is there a way I ca

Re: [appengine-java] Objectify - Twig - approaches to persistence

2010-03-11 Thread John Patterson
On 12 Mar 2010, at 13:01, Scott Hernandez wrote: We have a different idea about live systems and managing upgrades/deployments. To answer the question below, you can always upgrade the data in place because you will always need a way to load that data into the current object representation. It j

[appengine-java] appcfg.sh not uploading new jars

2010-03-11 Thread Josh H
Hi, I've uploaded my app numerous times without any problems. But now when I add a new jars to the WEB-INF/lib dir and then run appcfg.sh it says "40% Uploading 0 files.". I know for a fact these jars have never been uploaded as part of this app before. And when I run the app I get a ClassNotFound