[appengine-java] XSLT Version

2009-10-31 Thread moissinac
XSLT is supported, but which? Is XSLT supported? Directly? With help of an external library? --~--~-~--~~~---~--~~ 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 go

[appengine-java] Re: struts 2.1.8 met AccessControlException with app engine's local server

2009-10-31 Thread zhiw...@gmail.com
now i have to use 2.1.6 in my computer and replace the lib to 2.1.8 when i update to app engine server On Oct 31, 10:56 pm, "zhiw...@gmail.com" wrote: > when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the > same)  ,   when web app start, it throw the exception > > java.security.Acces

[appengine-java] Re: struts 2.1.8 met AccessControlException with app engine's local server

2009-10-31 Thread zhiw...@gmail.com
now i have to use 2.1.6 in my computer and replace the lib to 2.1.8 when i update to app engine server On Oct 31, 10:56 pm, "zhiw...@gmail.com" wrote: > when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the > same)  ,   when web app start, it throw the exception > > java.security.Acces

[appengine-java] Re: struts 2.1.8 met AccessControlException with app engine's local server

2009-10-31 Thread zhiw...@gmail.com
now i have to use 2.1.6 in my computer and replace the lib to 2.1.8 when i update to app engine server On Oct 31, 10:56 pm, "zhiw...@gmail.com" wrote: > when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the > same)  ,   when web app start, it throw the exception > > java.security.Acces

[appengine-java] Re: struts 2.1.8 met AccessControlException with app engine's local server

2009-10-31 Thread zhiw...@gmail.com
now i have to use 2.1.6 in my computer and replace the lib to 2.1.8 when i update to app engine server On Oct 31, 10:56 pm, "zhiw...@gmail.com" wrote: > when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the > same)  ,   when web app start, it throw the exception > > java.security.Acces

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-31 Thread Rusty Wright
Whoops, sorry; ignore my remark about UserStats not being persistable; I looked again at your code and saw that it has a key. I was confused and thinking that you're persisting the List, not an item in the List. But I think the problem with it becoming a root object still remains. Rusty Wri

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-31 Thread Rusty Wright
1) In the case of result.isEmpty(), I don't see where you're adding the new UserStats to the result list. 2) When you do pm.makePersistent( stats ) I think you're going to have a problem adding the new stats to the List, because that makePersistent is going make a new stats a root/parent objec

[appengine-java] Re: Does Google App Engine support Apache Mina?

2009-10-31 Thread ArtemGr
On 31 окт, 19:10, asianCoolz wrote: > anyone tried out apache mina with GAE?  any update There's no chance. MINA uses NIO and sockets directly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for

[appengine-java] Re: Dev server datastore deadlock

2009-10-31 Thread stumpy
I removed the thread dump doc because the servlet code denomstrates the problem. On Oct 29, 8:20 pm, "Jason (Google)" wrote: > Thanks for the snippet. The thread dump isn't appearing for me in the Google > Doc -- can you try posting it again and verifying that it's publicly > viewable? > > - Ja

[appengine-java] Re: managing root / parent objects

2009-10-31 Thread Rusty Wright
Yes, that's the point. My thinking is that (correct me if I'm wrong) if I store the object's key, when I fetch the outer containing object that has its key, I'll need to use the key to fetch the object. By cloning it, I don't need to do that, I just fetch the outer object and the inner object

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-31 Thread barak
Here it is: PersistenceManager pm = PMF.get().getPersistenceManager(); List result = (List) pm.newQuery( "select from " + UserStats.class.getName() + " where id == '" + session.getId() + "'" ).execute(); if( result.isEmpty() ) stats = new UserStats( session.getId(), System.currentTimeMillis

[appengine-java] Re: DeadlineExceededException while executing a server method.

2009-10-31 Thread Sanjith Chungath
in another word, is there a way to execute a server action through a normal server call or by tasks which can run more than 30 seconds? -Sanjith On Sat, Oct 31, 2009 at 12:40 AM, Sanjith Chungath wrote: > Hi all, > While executing a server method which talks to another system and > get d

[appengine-java] Re: any plans for deferred.defer in Java?

2009-10-31 Thread Vince Bonfanti
This looked like an interesting problem, and I already had most of the pieces in place, so here's my first attempt, which is implemented in a single class (also attached, along with some test files): http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlanta/appengine/taskqueue/De

[appengine-java] Re: managing root / parent objects

2009-10-31 Thread John Patterson
Why are you cloning instead of setting the original object? JDO will store the clone as a separate entity in the datastore. 2009/11/1 Rusty Wright > > I'm trying to figure out the best way to manage root objects that are used > with different objects. For a semi concrete example, suppose you h

[appengine-java] Maximum data size of image sent to service is not 1Mb, but 512Kb?

2009-10-31 Thread Esteban Ignacio Masoero
Hi there: I am using the ImagesService as this page ( http://code.google.com/intl/en/appengine/docs/java/images/overview.html ) says, using exactly the code posted there, and found out that with images between 512Kb (aprox.) and 1Mb, a strange error occurs. Moreover, the exception thrown does not

[appengine-java] managing root / parent objects

2009-10-31 Thread Rusty Wright
I'm trying to figure out the best way to manage root objects that are used with different objects. For a semi concrete example, suppose you have a web page with a drop down list of Favorite Foods, and a User object may have a reference to a FavoriteFood, and other objects will have references

[appengine-java] Re: datanucleus.DetachAllOnCommit?

2009-10-31 Thread Rusty Wright
Ok, thanks. No need to get defensive; I wasn't blaming detachAllOnCommit or DataNucleus, which is why I posted the question here rather than the DataNucleus forums. I'll add an issue to the googleappengine Issue Tracker about this. datanucleus wrote: > So ask the question (of Google) why is

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-31 Thread Pion
One more thing ... The Admin Console -> Datastore -> Statistics says, "Statistics are updated at least once per day." on the top right corner the page. It explains the differences between real-time query about the size and the Admin Console Statistics. On Oct 30, 6:58 pm, Pion wrote: > Interest

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-31 Thread Pion
One more thing ... The Admin Console -> Datastore -> Statistics says, "Statistics are updated at least once per day." on the top right corner the page. It explains the differences between real-time query about the size and the Admin Console Statistics. On Oct 30, 6:58 pm, Pion wrote: > Interest

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
And public void myMethod2() { Query query = entityManager.createQuery("select o from Myclass o where o.title = :p1 and o.myProperty <> :p2"); // bind params query.getResultList(); // exception thrown unexpectedly also } On Nov 1, 3:32 am, Dave Cheong wrote:

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
The relevant code snippets are: In MyServiceImpl - @Repository @Transactional public MyServiceImpl ... { protected EntityManager entityManager; public void myMethod() { Query query = entityManager.createQuery("select o from Myclass o where o.title = :p1 and o.myProperty != :p2"

[appengine-java] AccessControlException on DatastoreService.put() method

2009-10-31 Thread Pion
I got the AccessControlException on the following code snippet: public void add(List iriList, List nameList, List imageList) { // deleted for brevity try { datastore.put(eList); // The log below

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
What I'm saying is I'm using EMF and writing JPQL and "<>" is not working, which it should since it is the valid operator for inequality. Are you saying it works for you? dave On Nov 1, 12:27 am, datanucleus wrote: > > 1). I can't seem to get "!=" working either. > > I have no such problems wit

[appengine-java] Re: Does Google App Engine support Apache Mina?

2009-10-31 Thread asianCoolz
anyone tried out apache mina with GAE? any update --~--~-~--~~~---~--~~ 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 uns

[appengine-java] struts 2.1.8 met AccessControlException with app engine's local server

2009-10-31 Thread zhiw...@gmail.com
when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the same) , when web app start, it throw the exception java.security.AccessControlException: access denied (java.io.FilePermission jar:file:\F:\mysrc\Guestbook\build\web\WEB-INF \lib\struts2-core-2.1.8.1.jar read) at java.secu

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread datanucleus
> 1). I can't seem to get "!=" working either. I have no such problems with JDOQL, but then you're using it in GAE/J with an old version of DataNucleus. > 2) If I have mapped my objects using JPA annotations, will the query > engine default to JDOQL vs JPQL? The type of metadata specification

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
Just to clarify, I'm using Spring to load up my persistence layer, and my persistence.xml is org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider which means it is DataNucleus that is providing my EntityManagerFacto

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
Thanks for the prompt reply. Couple of quick questions to follow up: 1) I can't seem to get "!=" working either. Getting a - org.datanucleus.store.query.QueryCompilerSyntaxException: Portion of expression could not be parsed: != :p_1 for query SELECT o FROM MyClass o WHERE o.title = :p_0 AND o

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread datanucleus
> If you want to use JPQL, or SQL Except that GAE/J won't support SQL, but does support JPQL --~--~-~--~~~---~--~~ 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 go

[appengine-java] Re: Inequality operator is !=, but can we add <>

2009-10-31 Thread datanucleus
> Is there any remote possibility of adding "<>" as the inequality > operator too? The behaviour can be exactly the same. JDOQL is defined by a spec, to follow Java syntax, hence "!=". Consequently NO DataNucleus will not be supporting invalid JDOQL syntax. If you want to use JPQL, or SQL **with

[appengine-java] Inequality operator is !=, but can we add <>

2009-10-31 Thread Dave Cheong
Hi all, In JPA and SQL, the inequality operator is "<>", but I believe in JDO it is "!=". AppEngine supports "!=" but does not support "<>". Is there any remote possibility of adding "<>" as the inequality operator too? The behaviour can be exactly the same. thanks, dave --~--~-~--~

[appengine-java] Re: datanucleus.DetachAllOnCommit?

2009-10-31 Thread datanucleus
So ask the question (of Google) why is "StreamingQueryResult".size trying to find the next result when the PM (and ObjectManager) has already been closed (by Spring). When a "query result" (of which StreamingQueryResult is one example) is handed to the user it should have registered a callback to

[appengine-java] Re: JDO/JPA Snippets That Work - Executing Keys-Only Queries

2009-10-31 Thread Rusty Wright
Maybe he forgot to precede it with the usual "if (em.getTransaction().isActive())"? David Fuelling wrote: > Hi Max, > > I asked this question in the comments of your blog post, but I'll post > it here as well for the "group" folks: > > Why is the transaction rolled-back at the end of the each

[appengine-java] datanucleus.DetachAllOnCommit?

2009-10-31 Thread Rusty Wright
I'm setting datanucleus.DetachAllOnCommit in my jdoconfig.xml file. Why am I getting "Object Manager has been closed" when I do a query that finds all entities of a specific class? Is it because I'm not using a transaction? Previously, before I added datanucleus.DetachAllOnCommit, my dao was