[appengine-java] Re: DisplayTag JSP

2009-11-16 Thread Simon
If you have any objects in that resultset which are lazily loaded, then closing the entity manager before you've looped through the resultset will produce an exception and the route to the data store to retrieve the data has been closed. You have two options: 1) Aggressively fetch the data which

[appengine-java] Re: Connecting to Development Server via Local Network

2009-11-16 Thread Peter Hulsen
Ikai, Thank you, I missed that when reading the docs... Peter On Nov 10, 11:35 pm, "Ikai L (Google)" wrote: > Peter, > > By default the development server only binds to 127.0.0.1 and will only > answer requests directed to that address. You can change the default > behavior so it binds to 0.0.0

[appengine-java] Won't get values of an array inside POJO

2009-11-16 Thread Zenon
Hi all, I don't know why for any kind of array (List or Object[]) inside my Pojo app engine fails to get correct values and get always null. I already check out at local dataviewer, and as a matter fact values seems to be saved succesfull. Anyone can help me? Thanks in advance -- You received t

[appengine-java] Email .csv attachment in UTF-8 charset

2009-11-16 Thread rjportier
Hi all, I am trying to send an email with an attachment having Content-Type "text/comma-separated-values; charset=UTF-8". The attachment is sent, but it comes out in encoding base64(US-ASCII). I do something like this: import javax.mail.Multipart; import javax.mail.internet.MimeBodyPart; import

[appengine-java] Re: Won't get values of an array inside POJO

2009-11-16 Thread datanucleus
Perhaps you don't have it in the fetch plan? as per the DataNucleus docs, or many many posts on this forum -- 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.

[appengine-java] XMPP and JID

2009-11-16 Thread sahil mahajan
Hello I am using XMPP API. It looks that JID of a google account user does not remain constant. If a user is using gmail, then his JID is mai...@gmail.com/gmail.SOME_NO and when he is using gtalk JID is mai...@gmail.com/talk.SOME_DIFF_NO. I need to have something (for example mail id) which remai

[appengine-java] case sensitivity

2009-11-16 Thread Kris
Is there any way to perform a JDO query on google app engine using a case insensitive string comparison? e.g. For example, Query query = pm.newQuery(User.class, "userName.toLowerCase() == user && password == pass"); query.declareParameters("String user, String pass"

[appengine-java] Re: updating object doesn't work anymore

2009-11-16 Thread randal
Anyone? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com.

[appengine-java] Re: Delete task queue

2009-11-16 Thread Peter Ondruska
OK, seems like a bug to me. Does it make sense to file an issue for this as it is experimental feature or shall I wait until it is more mature? Peter On Nov 13, 9:20 am, Peter Ondruska wrote: > Ikai, the application id is kaibo-www > > On 11 lis, 22:31, Peter Ondruska wrote: > > > > > Ikai, I ha

[appengine-java] Re: Email .csv attachment in UTF-8 charset

2009-11-16 Thread m seleron
Hi, As an another way. How about this technique ? 1. import import javax.mail.util.ByteArrayDataSource; import javax.activation.DataHandler; import javax.activation.DataSource; 2.modify //attachment.setContent(attachmentData, "text/comma-separated-values; charset=UTF-8"); ByteArrayDataSource by

Re: [appengine-java] case sensitivity

2009-11-16 Thread Rusty Wright
The recommended approach is to store the userName in all lower case, as an additional field/column, and then do the toLowerCase on the incoming parameter user name when you do the query and use that field/column that was stored in lower case. Kris wrote: > Is there any way to perform a JDO que

[appengine-java] Embedded objects come back null in unit tests

2009-11-16 Thread Nick Bonatsakis
Hi All, I have followed the instructions on how to create the appropriate classes for JUnit testing and have a fairly simple object hierarchy. I have one class that includes a few embedded objects, they are all correctly annotated with JDO annotations (i have compared them directly to the example

[appengine-java] EntityGroup getting all children of a parent

2009-11-16 Thread Bitscorpion
Hello, I tried to do a little test and wrote two classes: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Tenant { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String name; public Te

[appengine-java] How to design data model

2009-11-16 Thread fhucho
Hi, I am developing the following app: user logs in and see list of items, e.g. list of cars. Each item has a few parameters, for car item it can be speed, color and manufacturer. User can add, edit and delete items. Most importantly, user can change the item type - so for example he can modify the

[appengine-java] JDO not saved (commit) when using spring @ModelAttribute

2009-11-16 Thread Ibrahim Hamza
Dear All I use JDO with spring and when i add @ModelAttribute("countries") All things go fine except the data not saved without any exception When query from another datastore @Controller public class PortController { private static final String FORM_MODEL_KEY = "ports"; private static final

[appengine-java] how to find list of subscribed users for XMPP service?

2009-11-16 Thread Pratik
Can I get all contacts those subscribed to my application? -- 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

[appengine-java] Datastore: is numeric ID unique for all entities of one type?

2009-11-16 Thread elvin
Good day. As far as documentation states, "The key value includes the key of the entity group parent (if any) and either the app-assigned string ID or the system-generated numeric ID. To create the object with an app- assigned string ID, you create the Key value with the ID and set the field to th

[appengine-java] Re: batik

2009-11-16 Thread Dan Dubois
I would like to know the answer to this too as I can't seem to make it work. Best wishes, Dan On Nov 7, 8:53 pm, black_13 wrote: > Can the batik library for svg be used with the GAE java? > regards, > black_13 -- You received this message because you are subscribed to the Google Groups "Googl

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread Ikai L (Google)
I couldn't reproduce your exact error, but I was able to put together a working example of an inbound email handler to relay messages. I'm going to expand the documentation about processing inbound emails. Here's some working code: http://pastie.org/701517 Does this example help any? Code is also

[appengine-java] Re: case sensitivity

2009-11-16 Thread Kris
I'm more concerned about the proper way to do this generically. I can't realistically store duplicates of every string based field that I may want to search for. On Nov 16, 11:36 am, Rusty Wright wrote: > The recommended approach is to store the userName in all lower case, as an > additional fi

Re: [appengine-java] Re: Singleton / Single Thread / Table Lock

2009-11-16 Thread Ikai L (Google)
I agree that developing for concurrency is incredibly difficult, though I'm of the opinion that Map/Reduce is powerful because of its accessibility. It's certainly not trivial to try to reduce a computation of a large dataset to Map/Reduce, but my hope is that as the feature becomes available, we'l

Re: [appengine-java] Re: Delete task queue

2009-11-16 Thread Ikai L (Google)
Peter, File a bug if you can. Even though it's experimental, it's been released to the public and we can use all the help we can get when prioritizing issues. Thanks! On Mon, Nov 16, 2009 at 7:52 AM, Peter Ondruska wrote: > OK, seems like a bug to me. Does it make sense to file an issue for > th

[appengine-java] Re: EntityGroup getting all children of a parent

2009-11-16 Thread datanucleus
>   Query query = pm.newQuery(Account.class); > org.datanucleus.exceptions.ClassNotResolvedException: Key >         at org.datanucleus.util.Imports.resolveClassDeclaration(Imports.java: As the message says ... "Key" is not resolved to be a class. It certainly isn't a field, but you do have a field

[appengine-java] Re: EntityGroup getting all children of a parent

2009-11-16 Thread Bitscorpion
sorry, was just a typo. of course it is query.setFilter("key == keyParam"); but the error is the same On Nov 16, 10:15 pm, datanucleus wrote: > >   Query query = pm.newQuery(Account.class); > > org.datanucleus.exceptions.ClassNotResolvedException: Key > >         at > > org.datanucleus.util.Im

Re: [appengine-java] 500 Internal Server Error, when update appl

2009-11-16 Thread Ikai L (Google)
Have you been able to update this application? On Wed, Nov 11, 2009 at 11:53 PM, Jackroz wrote: > Hi Team, > > Last two day i can't update appl, what is wrong? > > Please see detail log: > > Unable to update: > java.io.IOException: Error posting to URL: > > http://appengine.google.com/api/appve

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread mably
Hi Ikai, thanx for you help. I've copy pasted your code on my webapp (webwinewatch), I've no error but the mail isn't correctly relayed, all attachements are removed. I've just modified the sender, from and recipient lines : message.setSender(new InternetAddress("@gmail.com", "Relay account"));

[appengine-java] jdo autorefer table

2009-11-16 Thread ale
Hello, I have an entity and I want to menage some contacts, so I think to include a list of contact in the entity, the list of contats are a list of PrimiryKey of other User. It is all ok eccept whene I try to delete a contact. I don't receive error, but the contact will not delete. this is the us

Re: [appengine-java] JDO : setting filter ! MyList.contains(\"tag") OR MyList.doesnotcontains(\"tag")

2009-11-16 Thread Ikai L (Google)
Yes. You will be able do queries on List properties using standard equality and inequality filters. You can read more about how to do queries here: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html On Fri, Nov 13, 2009 at 3:15 AM, Prashant wrote: > Hi, > > is there any

Re: [appengine-java] Problems with large request/response headers

2009-11-16 Thread Ikai L (Google)
Matt, This looks like it may be a JeTTy issue: http://jira.codehaus.org/browse/JETTY-336 That being said, I'm curious as to what data you are storing in the cookie. Less than 1.5% of sites pass cookies larger than 1501 bytes, and there are performance implications for passing large amounts of coo

Re: [appengine-java] Querying sub objects with JDOQL in GAE/J

2009-11-16 Thread Ikai L (Google)
Can you post the queries you have attempted as well as the errors? On Tue, Nov 10, 2009 at 10:40 PM, enthusiast wrote: > > I have a very basic question about JDOQL with GAE/J. Hope someone can > shine light on this: > > I have modeled two persistent objects Employee and ContactInfo such > that E

Re: [appengine-java] child object's get orphaned

2009-11-16 Thread Ikai L (Google)
It's possible to orphan a child object, but only if you delete the parent entity. The reason is that the parent path information is stored in the key of the child object: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html On Sun, Nov 15, 2009 at 9:28 PM, ascetik wrote: >

[appengine-java] Re: jdo autorefer table

2009-11-16 Thread ale
Solved. I remove the (serialized = "true") from the list and add pm.detacheCopy when I return data from the entity user. Now it's work fine. On Nov 16, 11:14 pm, ale wrote: > Hello, > I have an entity and I want to menage some contacts, so I think to > include a list of contact in the entity,

Re: [appengine-java] Re: case sensitivity

2009-11-16 Thread Rusty Wright
http://groups.google.com/group/google-appengine-java/search?group=google-appengine-java&q=lowercase+query&qt_g=Search+this+group Kris wrote: > I'm more concerned about the proper way to do this generically. I > can't realistically store duplicates of every string based field that > I may want to

Re: [appengine-java] JDO not saved (commit) when using spring @ModelAttribute

2009-11-16 Thread Rusty Wright
http://static.springsource.org/spring/docs/3.0.0.RC1/javadoc-api/org/springframework/orm/jdo/support/OpenPersistenceManagerInViewFilter.html That's the 3.0.0.rc1 version of the docs but it's probably the same for 2.5.6. Ibrahim Hamza wrote: > Dear All > I use JDO with spring > and when i add @M

Re: [appengine-java] JDO not saved (commit) when using spring @ModelAttribute

2009-11-16 Thread Rusty Wright
Forgot to add; here's how I used it in my web.xml: OpenPersistenceManagerInViewFilter org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter OpenPersistenceManagerInViewFilter

[appengine-java] Ancestor queries in JPQL? / Getting "Key of parameter value does not have a parent"

2009-11-16 Thread Todd Vierling
Test app to reproduce: http://ancestortest.latest.duh-test.appspot.com/ Source code: http://ancestortest.latest.duh-test.appspot.com/src/ancestortest/AncestorTestServlet.java http://ancestortest.latest.duh-test.appspot.com/src/ancestortest/UserAccount.java http://ancestortest.latest.duh-test.app

Re: [appengine-java] 500 Internal Server Error, when update appl

2009-11-16 Thread Jackob
The problem is not fixed , i can't upload update. The happened only with my account? On Mon, Nov 16, 2009 at 11:59 PM, Ikai L (Google) wrote: > Have you been able to update this application? > > On Wed, Nov 11, 2009 at 11:53 PM, Jackroz wrote: > >> Hi Team, >> >> Last two day i can't update

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread mably
In fact standards attachments works. But it's not what I'm trying do do. I'm need to relay HTML messages with inline images and this is still not working. Is it a kind of limitation of GAE or is it supposed to work ? Thanx for your help. François On 16 nov, 23:09, mably wrote: > Hi Ikai, tha