[appengine-java] problem in updating to 1.2.5 in eclipse

2009-09-04 Thread Vik
hie getting error An error occurred while collecting items to be installed No repository found containing: com.google.appengine.eclipse.sdkbundle/osgi.bundle/1.2.5.v200909021031 No repository found containing:

[appengine-java] how to handle multipart data in struts 2 ?

2009-09-04 Thread sree
I am unable to get the multipart data (file etc.) from jsp/request (post). appengine sdk has been updated to 1.2.5. whereas the same can be achieved through servlets as described in How do I handle multipart form data? or How do I handle file uploads to my app? in faq section.

[appengine-java] Re: JasperReports on GAE

2009-09-04 Thread Grzegorz Borkowski
Do you know if JasperReports developers are aware of this problem? Is there any bug reported to them? I haven't found any on myself. Logically, JasperReports (nor iText) shouldn't depend on AWT classes, so this dependency is a bit strange, and perhaps can be fixed by them. On Sep 4, 12:16 am,

[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread leszek
You can run queries on keys: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Queries_on_Keys The first part of child key (ContactInfo.class) contains parent (Employee) key. Employee e; query = pm.newQuery(ContactInfo.class); query.setFilter(key ==

[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread leszek
query.setFilter(key keyParam and key keyParam1); --~--~-~--~~~---~--~~ 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@googlegroups.com To

[appengine-java] JDO BUG !?

2009-09-04 Thread Cornel
Hello! I have some objects in the database that have a String property called version. Some of them have version = '0.2', the others have '0.0' I have an application written in java. When i query for an object with version 0.2 with the low level api it works (it finds 62 obejcts)

[appengine-java] How to make a query using low level API using the 'key' property?

2009-09-04 Thread Cornel
Hello, How can i make a Query using the lowlevel API, similar to this: select * from Entity where key certain_key ? In JDO i would do something like this: select * from Entity where encodedKey a_key_string where encodedKey is my objects' primary key: @PrimaryKey

[appengine-java] Re: How to make a query using low level API using the 'key' property?

2009-09-04 Thread Corneliu Paul Lupulet
I noticed that i can make a query like this: DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(DbContact); query.addFilter(__key__, FilterOperator.GREATER_THAN, KeyFactory.stringToKey(a_key_string)); And it works. It fetches the correct results. Then i

[appengine-java] Cache-Controle Expiration on static files

2009-09-04 Thread Patou
hello, I test the new sdk, and I see that we now add a expiration attribut in the include tag in appengine-web.xml to set the expiration cache time. But it's not seems to work . My appengine-web.xml : static-files include path=/ressource/css/*.css expiration=10d/ include

[appengine-java] Re: problem in updating to 1.2.5 in eclipse

2009-09-04 Thread Miguel Méndez
Was this a temporary problem? Are you sure that you are using the right update site for your version of eclipse? On Fri, Sep 4, 2009 at 3:13 AM, Vik vik@gmail.com wrote: hie getting error An error occurred while collecting items to be installed No repository found containing:

[appengine-java] Problem with encoding on production environment

2009-09-04 Thread sandlex
Hello. I'm trying to do following: 1. I have a GWT-application with a form uploading text files in utf8 character encoding 2. Uploaded file content I save in the entity Blob field in datastore 3. I have a JavaFX client application getting this file content and displaying it Everything works

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Cliff Hill
Still unable to do datastore gets. Well, for about 3 hours yesterday, it worked, and then it stopped. And it is still stopped as of this morning. Any chance that I'll be able to use my datastore code sometime in the near future? My app really kinda relies on the datastore to, well, work. On Thu,

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread sandlex
I played with my application today and there was no any problems with datastore. On Fri, Sep 4, 2009 at 6:21 PM, Cliff Hillch...@darkhelm.org wrote: Still unable to do datastore gets. Well, for about 3 hours yesterday, it worked, and then it stopped. And it is still stopped as of this morning.

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
Well, my primary servlet that loads data from the datastore still breaks, and spits out a 500 Server Error when I run it manually: http://showsort.appspot.com/showsort/list If it works, it shouldn't show anything at all, because it is a GWT- RPC driven servlet. http://showsort.appspot.com

[appengine-java] Re: XMPP send Chinese message garbled?

2009-09-04 Thread Michael Davidson
Hi Terry - There is a slight problem in the implementation of parseMessage(). It currently doesn't pay attention to the encoding of the elements in the POST, assuming they are UTF-16. In fact, the POST comes in encoded in UTF-8. If you modify the code in parseMessage to assume UTF-8, your

[appengine-java] Re: Datastore problems!

2009-09-04 Thread Toby Reyelts
We're unaware of any datastore problems. One thing you might try is upgrading to the latest version of the SDK (don't forget to copy all of the updated datastore libraries into your WEB-INF/lib). If that doesn't work for you, please post a full stacktrace and your application id. On Fri, Sep 4,

[appengine-java] Re: Maven

2009-09-04 Thread Nikolay Gorylenko
please include 1.2.5 jars to http://www.mvnsearch.org/maven2/com/google/appengine/ --~--~-~--~~~---~--~~ 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

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
Application ID is showsort. I can't provide stacktraces for the error, because I'm getting no stacktraces. It isn't even showing up in the logs as a problem. I'm seeing a 500 error, where there used to not be a 500 error. I've not modified the code for my list servlet in several days, but this

[appengine-java] Re: JasperReports on GAE

2009-09-04 Thread bgood
Sure would be nice if appengine would decide to support awt - it would solve this problem and many others. (Vote for it here http://code.google.com/p/googleappengine/issues/detail?id=1423). However, my impression is that they have no intention to do so any time soon - it must cause some

[appengine-java] this group is being copied on a blog

2009-09-04 Thread bgood
I don't know what the owners of the group think about this, but it seems wrong to me. All of the messages posted to this list are appearing on this guys blog unmodified. See http://cng1985.blogspot.com/2009/09/appengine-java-re-jasperreports-on-gae_04.html

[appengine-java] Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread Dominik Steiner
Hi, I have data objects stored in the datastore that have a propery of type com.google.appengine.api.datastore.Text. In 1.2.2 this was working without problems and querying the data objects would also retrieve the property with type com.google.appengine.api.datastore.Text, but moving to 1.2.5

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Arod
My app id is mindhackme. My app has not run for approx a week now and it died without me even updating it. I searched online about possible causes and one post I read determined that the persistenceManager bean that the Grails GAE plugin used was not a singleton and that was creating problems.

[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread rick
Did you change your code ? Text and Blod are not part of the default fetch group. Look at http://www.datanucleus.org/products/accessplatform/jdo/fetchgroup.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google

[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread Dominik Steiner
Hi rick, thank you very much for the fast answer, this was very helpful. I didn't change my code, as i could switch locally in eclipse from GA 1.2.2 to 1.2.5 without doing any code changes and in 1.2.2 it would retrieve the properties of type text or blob, in 1.2.5 it wouldn't. Thanks to

[appengine-java] Re: Confirmation of Google Multi-Tenant app policy

2009-09-04 Thread Jason (Google)
Currently, registering multiple IDs for the same application is a violation of the App Engine terms of service. However, we do have an exception policy in place for developers with a multi-tenant strategy, and we handle these on a case-by-case basis. To begin, please file a new multi-instance

[appengine-java] Re: Inconsistence between how app-engine sorts string encoded-keys and java method String.compareTo()

2009-09-04 Thread Jason (Google)
Yes, encoded String keys are designed to be opaque. But it is possible to compare two Key objects directly: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Key.html#compareTo%28com.google.appengine.api.datastore.Key%29 - Jason On Tue, Sep 1, 2009 at 11:38

[appengine-java] Re: xmpp support

2009-09-04 Thread Jason (Google)
XMPP support was added in the 1.2.5 release announced yesterday: http://code.google.com/appengine/docs/java/xmpp/ - Jason On Wed, Sep 2, 2009 at 1:47 AM, asianCoolz second.co...@gmail.com wrote: May i know when GAE mentioned will support XMPP for next version of GAE, does that mean, it will

[appengine-java] Re: OpenID Consumer

2009-09-04 Thread Jason (Google)
I haven't used any myself, but this page has a list of relevant Java libraries: http://wiki.openid.net/Libraries Also, the OpenSocial client library for Java, which is compatible with App Engine, uses the open source OAuth library available at http://code.google.com/p/oauth for request signing

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
I just re-uploaded my app, with logging enabled for my servlet again, so I can see the progress it has when/if it runs. However I'm seeing that someone has been testing other things as well... I'm also seeing a 500 Server Error on the main app now. On Sep 4, 8:42 am, Xlorep DarkHelm

[appengine-java] Re: Problem while using Gilead for Hibernate and Gwt

2009-09-04 Thread Jason (Google)
I'll need to see a snippet of your server-side code that's failing to get a better understanding of the error's cause. But if you're trying to use Hibernate/MySQL directly, this could be the issue since Hibernate is not supported:

[appengine-java] Re: self join in google app engine

2009-09-04 Thread Jason (Google)
Hi Midhat. In the thread that leszek links to, I discuss this bug in a little more detail -- it seems you can't persist objects having an owned one-to-many relationship with objects of the same kind. Owned one-to-one relationships seem to work, however. As a workaround, you can use an unowned

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Toby Reyelts
I can't see that any RPCs are ever made from your client application to the server. How are you testing http://showsort.appspot.com/showsort/list ? You can't follow that directly from a browser (i.e. put it in your address bar), because GWT RPC does not support HTTP GET requests - it will give you

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Toby Reyelts
It looks like your application is being terminated due to exceeding request deadlines. If you look in your application logs, you can see warnings such as: Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
Ok, I added in logging directly to the servlet facade I have which wraps my Jython servlet to make it work on Google Apps Engine, and I'm not even getting that to show up in the logs. Here's what my last request produced (when I show requests only): # 1. 09-04 11:08AM 17.783

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
Oh, I also have seen these occasionally for the past 2 days, suddenly: # 1. 09-04 10:37AM 58.844 /showsort/list 500 10129ms 0cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.6 Safari/532.0,gzip(gfe) See details

[appengine-java] JCache best practices

2009-09-04 Thread Erem
Hey guys, Would appreciate your help in answering a few specific questions about using the JCache API on my AppEngine project. (1) Are any of the following three operations so expensive (like JDOHelper.getPersistenceManagerFactory()) that I should try to only do them once in the application and

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Toby Reyelts
Unfortunately, when you exceed the request deadline, you can lose your logs for that request. I would suggest paring your RPC down to the very bare minimum, so that you're not exceeding the deadline, then adding in logic and logging timings as you go. You should then be able to narrow things down

[appengine-java] After upgrade to Java SDK 1.2.5 Key property saved but retrieved as null

2009-09-04 Thread Yegor
Hi, I am experiencing a problem after upgrading to Java SDK 1.2.5. In a simple CMS application a page is stored as a CMSPage entity, which points to its text saved as a DetachedText entity using a Key property (i.e. an unowned relationship) as follows: @PersistenceCapable(identityType =

[appengine-java] Java memcache increment with initial value

2009-09-04 Thread Vince Bonfanti
I notice that the Python memcache API supports an increment with initial value operation: http://code.google.com/appengine/docs/python/memcache/clientclass.html#Client_incr Are there any plans to support this on Java? In the Python implementation, is this simply done as three memcache

[appengine-java] new stack traces after upgrading to SDK 1.2.5

2009-09-04 Thread Vince Bonfanti
After upgrading to SDK 1.2.5, I've noticed a set of stack traces that show up in both the development environment and on the production server. These only appear if the logging level is set to INFO, and they show up as INFO logs on the production server. I'm pretty sure these are new in SDK 1.2.5

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
I set up a doGet method on my list servlet, which should just display the list of algorithm names that is retrieved from the datastore. There are 13 items in the list, not much. http://showsort.appspot.com/showsort/list This way, you don't need to use the rest of the app to see this. I'm

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
Request deadline? I've not been exceeding any request deadline. I'm getting this a lot now: # 1. 09-04 12:01PM 00.892 /showsort/list-- 500 10455ms 0cpu_ms 0kb Mozilla/5.0 (en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13,gzip(gfe) See details

[appengine-java] Re: new stack traces after upgrading to SDK 1.2.5

2009-09-04 Thread Yegor
Vince, If you are interested the reason for the exception is that App Engine does not support threads. Reference finalizer usually runs as a separate thread. In this case the finalizer (correctly) failed to initialize. However, it looks like finalizer is not a critical component in this context.

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

2009-09-04 Thread Geraldo Lopes
Please create a JasperReports entry. Sadly it's not compatible --~--~-~--~~~---~--~~ 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

[appengine-java] Re: After upgrade to Java SDK 1.2.5 Key property saved but retrieved as null

2009-09-04 Thread Yegor
Just so you know, I think I have solved the problem by setting defaultFetchGroup=true on the Key property: @Persistent(defaultFetchGroup=true) private Key text; Might have something to do with the recently closed issue #58 Queries don't respect fetch groups:

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Xlorep DarkHelm
When uploading a new version, with a few more levels of debugging enabled: Compiling module org.darkhelm.showsort.ShowSort Compiling 6 permutations Permutation compile succeeded Linking into F:\Documents\Eclipse\workspace\ShowSort\war Link succeeded Compilation succeeded --

[appengine-java] Re: new stack traces after upgrading to SDK 1.2.5

2009-09-04 Thread Vince Bonfanti
That's fine. :) I just wanted to make sure someone was aware of this, since it appeared to be something new introduced with the latest SDK. On Fri, Sep 4, 2009 at 4:14 PM, Toby Reyeltsto...@google.com wrote: It's a message that you can safely ignore. There is a reason it's logged at INFO. :)

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

2009-09-04 Thread Toby Reyelts
Jimbo, Would you mind seeing if this issue goes away with the latest 1.2.5? On Tue, Aug 25, 2009 at 4:03 AM, Jimbo ji...@google-app-engine.com wrote: Hi, I managed to get spring security working by amending the source as suggested at: http://www.dotnetguru2.org/bmarchesson/index.php?p=1100

[appengine-java] Re: GAE down? Response Error 500

2009-09-04 Thread Toby Reyelts
Your app: /showsort/list 500 41106ms /showsort/list 500 29590ms /showsort/list 500 40991ms /showsort/list 500 40340ms /showsort/list 500 30155ms /showsort/list 500 35481ms /showsort/list 500 40109ms /showsort/list 500 42148ms /showsort/list

[appengine-java] QueueFactory.getQueue( String )

2009-09-04 Thread Vince Bonfanti
My first question on task queues... I'd like to design my application to use a named (configured) queue if it exists, but to drop back to using the default queue if the named queue isn't configured. I'd like to do something like this: Queue q = QueueFactory.getQueue( myQueue ); if ( q

[appengine-java] Re: Confirmation of Google Multi-Tenant app policy

2009-09-04 Thread doc
Thank you Jason for your reply I will file On 9月5日, 午前2:53, Jason (Google) apija...@google.com wrote: Currently, registering multiple IDs for the same application is a violation of the App Engine terms of service. However, we do have an exception policy in place for developers with a

[appengine-java] Re: how to query to implement auto suggest query...

2009-09-04 Thread Jason (Google)
There are numerous tutorials out in the wild for this. I don't know of any App Engine-specific examples, but they shouldn't be too hard to find. Since App Engine doesn't currently support full-text search, you'll only be able to match entities on their opening characters.

[appengine-java] Re: how to query to implement auto suggest query...

2009-09-04 Thread Jason (Google)
By they shouldn't be too hard to find, I meant that any examples you find shouldn't be too hard to tailor for App Engine, even if they are RDBMS-based. - Jason On Fri, Sep 4, 2009 at 4:06 PM, Jason (Google) apija...@google.com wrote: There are numerous tutorials out in the wild for this. I

[appengine-java] Re: HttpSession handling question

2009-09-04 Thread Jason (Google)
Hi Marton. Yes, you need to explicitly call setAttribute() when you modify any object in the session. Otherwise, the object won't be updated in App Engine's cache/datastore, which are the mechanisms it uses to back sessions - Jason On Thu, Sep 3, 2009 at 2:11 AM, Marton Papp mapr...@gmail.com

[appengine-java] Re: Is there limitation of size of webapp uploaded to GAE?

2009-09-04 Thread Jason (Google)
By default, all files under war are treated as both static and resource files. You can modify your appengine-web.xml file to explicitly indicate which files are static and which are resource: http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files - Jason

[appengine-java] Write text on an image..?

2009-09-04 Thread jago
Hi, I want the user to fill some text in a textfield and then allow him to hit a 'create' button. The text will written as a title on the top of an image. The image will then be shown in the browser. What I didn't figure out was how to write the text on the image file. Can somebody help me with

[appengine-java] Re: querying using ANCESTOR IS

2009-09-04 Thread Jason (Google)
I'm glad you got it working using the low-level API. If you ever want to return to JDO, see the last post in this thread, which describes how to perform ancestor queries: http://groups.google.com/group/google-appengine-java/browse_thread/thread/97ba3209ec6a65de - Jason On Thu, Sep 3, 2009 at

[appengine-java] Re: GAE takes 28 sec to read just 200 records

2009-09-04 Thread Jason (Google)
Based on one of your recent posts, it seems like multiple PersistenceManagerFactory instances are being created by different classloaders. Since this is an expensive operation, this could explain why you're experiencing such slow performance. Did you follow Toby's suggestion in the last post?

[appengine-java] Re: Bulk writes to datastore

2009-09-04 Thread Jason (Google)
Batch puts are supported, yes, and as of yesterday's release, calling makePersistentAll (JDO) and the equivalent JPA call will take advantage of this support (previously, you had to use the low-level API). Two quick notes: 1) All of the entities that you're persisting should be in separate

[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread Jason (Google)
Owned relationships uses entity groups behind-the-scenes: http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths An entity group is basically a hierarchy of entities, with one entity as the root and all other entities below this root.

[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread rick
Hi Dominik, I am glad that you found a solution. There is an alternative. You could annotate your class with something like @FetchGroup(name=detach_image, member...@persistent (name=image_data)}) and then you could use tx.begin(); pm.getFetchPlan().addGroup(detach_image); Query q =

[appengine-java] Re: Model to Optimize Queries

2009-09-04 Thread Sam Walker
Thanks! I am thinking of doing something like this: class Article { HashSetKey reviewers; HashSetString tags; int status; // pending, approved, declined - derived from reviewers' statuses HashMapKey, Review mapping; // Reviewer key to Review mapping to prevent storing making another 1:n

[appengine-java] Re: new stack traces after upgrading to SDK 1.2.5

2009-09-04 Thread rick
Vince, I'm still using SDK 1.2.2 and I am getting a very similar info message. --~--~-~--~~~---~--~~ 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

[appengine-java] Crop gives images that are not exact size

2009-09-04 Thread Tsing
The crop function in image services takes in floats/doubles between 0 and 1.0 as positions. This is not accurate enough, because depending on where the positions are, the return image may not be in the exact size I want. Also, it throws exception if the crop size is 1 pixel by 1 pixel. Why

[appengine-java] JSF 1.2 - Session-scoped managed Bean not Behaving as Expected

2009-09-04 Thread Traveler1980
Hi All, I recently upgraded an app that I'm working on from MyFaces 1.1.6 to JSF (Mojarra) 1.2_13 with Facelets. I used the jars (el and jsf) from this example -- http://code.google.com/p/jsfongap/ Everything is working fine when running my app locally; however, when I deploy, session-scoped

[appengine-java] URL Rewrite

2009-09-04 Thread maksud
Hi, I am new to Google App Engine. I need some *URL Rewrite* techniques which are used in apache httpd *mod_rewrite*. What is the options for jetty server? Do you guys recommend some tutorial or documents. Thanks Maksud --~--~-~--~~~---~--~~ You received this

[appengine-java] Seeing different (incorrect?) JDO behavior after upgrading to 1.2.5

2009-09-04 Thread David
I’ve been working with a fairly simple data model that has an Organization object which contains some String members as well as a member variable of type PrivilegedUser. And PrivilegedUser extends a User, and contains only a Key and some String members. @PersistenceCapable(identityType =

[appengine-java] Re: URL Rewrite

2009-09-04 Thread Pandu Pradhana
Hi, You can use this http://tuckey.org/urlrewrite/ --Pandu On Sat, Sep 5, 2009 at 11:51 AM, maksud maksud.b...@gmail.com wrote: Hi, I am new to Google App Engine. I need some *URL Rewrite* techniques which are used in apache httpd *mod_rewrite*. What is the options for jetty server? Do you