Re: [appengine-java] What's wrong with my JPA Entity

2010-04-20 Thread Sudhir Ramanandi
Yes, Dao Saves is properly. I just found that the Key will be generated on EntityManager.flush() I modified the code, and now it works fine. public void testPkGeneration() { Profile p1 = new Profile(); p1.setAge(20); p1.setDob(new Date()); EntityManager em =

[appengine-java] Eclipse plugin requires fixed location for src directory

2010-04-20 Thread Sudhir Ramanandi
I just created a new GPE issue "Eclipse plugin requires fixed location for src directory" http://code.google.com/p/googleappengine/issues/detail?id=3111 Is it just me, or others also have the same issue? Can any one try to reproduce it. Thanks SN -- You received this message because you are su

[appengine-java] Re: a work around for request aborted?

2010-04-20 Thread Charles Eubanks
So then today the log entries for this request started showing the included message. (this is the first one from 1:52 PDT) Is this log message a new feature? And does it have any ramifications for my app (other than letting me know that these expensive requests probably shouldn't worry me)? I con

[appengine-java] Re: including data file in JAR

2010-04-20 Thread Philip Tucker
That worked, thanks. On Apr 18, 11:55 pm, Vaclav Bartacek wrote: > Better way is to use  getClass().getResourceAsStream for accessing > files packed in jars > or for acccessing files located directly in the war you can use the > following (in a servlet): >     ServletContext ctx = getServletConte

[appengine-java] Re: open source pdf engine for GAE

2010-04-20 Thread jeno
robot only allow json data format. second method ok, store it on datastore and access from there cheers jeno On Apr 21, 1:02 pm, jeno wrote: > Hi Patrice , > > Thanks for your help. > > How can i initialize variable of ServletResponse resp  on > onFormButtonClicked of robot. > > Thanks > Jeno

[appengine-java] Re: org.datanucleus.store.appengine.query.DatastoreQuery$2

2010-04-20 Thread CodeMan
Hi, Your thanks for your suggestion but I don't think it applies to my problem. I am not copying the list. This is the class that genarates the error. @ManagedBean() @SessionScoped public class MyTemplates implements java.io.Serializable{ Template template; String text; L

[appengine-java] Re: open source pdf engine for GAE

2010-04-20 Thread jeno
Hi Patrice , Thanks for your help. How can i initialize variable of ServletResponse resp on onFormButtonClicked of robot. Thanks Jeno On Apr 20, 6:22 pm, Patou wrote: > Hello > > In App Engine, You can't write a file to the file system. Otherwise > the save method can't be used in GAE. > Use

Re: [appengine-java] Google App Engine for Java app couldn’t find javac ?

2010-04-20 Thread Chau Huynh
Please try verification step in "Getting Java" session from the tutorial http://code.google.com/appengine/docs/java/gettingstarted/installing.html java -version javac -version If error, it's likely you need to add {JAVA_HOME}\bin to "Path" variable. Typically you might need to remove "bin" out of

[appengine-java] a work around for request aborted?

2010-04-20 Thread charles eubanks
My app is essentially a specialized reminder tool. it has a cron job that wakes up every 15 minutes to see if anybody needs to be nagged (sent an email reminder). The cron job does a query against one entity looking for anything with a UTC time equal or before "now". The query looks like: "sele

[appengine-java] Re: java.lang.RuntimeException: Version not ready.

2010-04-20 Thread hector
yeah, its backup in Java for me On Apr 20, 3:38 pm, bjy wrote: > Looks like it is back up > > On Apr 20, 3:24 pm, bjy wrote: > > > > > Having same issue in python.. still > > > On Apr 20, 3:01 pm, Robert Cooper wrote: > > > > I am trying to update "shortyz-xword" and am getting timeouts

[appengine-java] Re: java.lang.RuntimeException: Version not ready.

2010-04-20 Thread bjy
Looks like it is back up On Apr 20, 3:24 pm, bjy wrote: > Having same issue in python.. still > > On Apr 20, 3:01 pm, Robert Cooper wrote: > > > I am trying to update "shortyz-xword" and am getting timeouts. I can't > > extract any useful info from the admin log. Is there something going

[appengine-java] Re: java.lang.RuntimeException: Version not ready.

2010-04-20 Thread bjy
Having same issue in python.. still On Apr 20, 3:01 pm, Robert Cooper wrote: > I am trying to update "shortyz-xword" and am getting timeouts. I can't > extract any useful info from the admin log. Is there something going > on today? > > -- > You received this message because you are subscribe

[appengine-java] Re: java.lang.RuntimeException: Version not ready.

2010-04-20 Thread bjy
Same issue in python.Here we go again : ( On Apr 20, 3:01 pm, Robert Cooper wrote: > I am trying to update "shortyz-xword" and am getting timeouts. I can't > extract any useful info from the admin log. Is there something going > on today? > > -- > You received this message because you are sub

[appengine-java] Google App Engine for Java app coul dn’t find javac ?

2010-04-20 Thread fni
I'm learning to use Google App Engine, I installed it in Netbeans, the project works, but when I clicked on "Deploy To Google App Engine", I got the following error : Beginning server interaction for ... 0% Creating staging directory 5% Scanning for jsp files. 8% Compiling jsp files. 11% Compiling

[appengine-java] gae+twig+gwt Hello World project

2010-04-20 Thread marius.andreiana
Hi all, First, many thanks John for this library. I'm just getting started with twig. To get an idea of my level, it took me 0.5h to figure out that to use twig, you need to add the jars to WEB-INF/libs and use import com.vercer.engine.persist.annotation.*; (I was looking for something like com.

[appengine-java] Re: java.lang.RuntimeException: Version not ready.

2010-04-20 Thread hector
+1 - I'm having issues deploying as well... I'm guessing some service is down. On Apr 20, 3:01 pm, Robert Cooper wrote: > I am trying to update "shortyz-xword" and am getting timeouts. I can't > extract any useful info from the admin log. Is there something going > on today? > > -- > You received

Re: [appengine-java] Jetty servlet invoker

2010-04-20 Thread Ikai L (Google)
I can't even get this to work correctly locally - I get a NullPointerException that seems to be related to ServletFilters. Specifically - the development BlobStore servlet filter (stack trace is below). What version are you using? Can you open a feature request to support Invoker here at our issue

Re: [appengine-java] Deployment Descriptor >> Filters: typo in example

2010-04-20 Thread Ikai L (Google)
Hi, You're correct, this sample code doesn't work. I've fixed the doc and sent it for review. It should go live shortly afterwards. Here's what the code should look like: // Pastie link for nicer formatting: http://pastie.org/926936 import java.io.IOException; import java.util.logging.Logger; i

[appengine-java] java.lang.RuntimeException: Version not ready.

2010-04-20 Thread Robert Cooper
I am trying to update "shortyz-xword" and am getting timeouts. I can't extract any useful info from the admin log. Is there something going on today? -- 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

Re: [appengine-java] User.nickName

2010-04-20 Thread Ikai L (Google)
Here are the Javadocs regarding this: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/User.html#getNickname() "The nickname will be a unique, human readabl

[appengine-java] Chat Time transcript for April 7, 2010

2010-04-20 Thread Jason (Google)
The high-level summary and complete transcript of the April 7th edition of the IRC office hours is pasted below. Please join us on the first and third Wednesday of every month in the #appengine channel on irc.freenode.net. On the first Wednesday, we meet in the channel from 7:00-8:00 p.m. PST (even

[appengine-java] Re: org.datanucleus.store.appengine.query.DatastoreQuery$2

2010-04-20 Thread mini998
Found the answer, Have to copy all the contents in the query result to a new list eg, projectsTemp = (List) query.execute(); List projects = new ArrayList(); projects.addAll(projectsTemp); planet.setProjects(projects); hope this helps On Apr 20, 4:29 pm, mini998 wrote: > Hi, I have the sa

Re: [appengine-java] Persistence, parents and keys

2010-04-20 Thread Ikai L (Google)
That's correct. First - you should read our documentation about entity groups. The reason you can't update parents is because the actual key of the object embeds parent information. For instance, a category key may look like this: Category(Mammal) Subcategories may have keys that decode to the fo

[appengine-java] PdfBox text extraction & GAE

2010-04-20 Thread Fabrizio
If anyone is interested... PdfBox text extration & GAE How to do text extraction from pdf files using PdfBox on Google App Engine http://fhtino.blogspot.com/2010/04/pdfbox-text-extration-gae.html fabrizio -- You received this message because you are subscribed to the Google Groups "Google

Re: [appengine-java] What's wrong with my JPA Entity

2010-04-20 Thread Ikai L (Google)
Are you sure that the entity is being saved? Can you post your ProfileDAO? On Mon, Apr 19, 2010 at 9:52 AM, Sudhir Ramanandi wrote: > I have just started with GAE+JPA. However I find it difficult to grasp the > primary key things. > I have created a very simple entity and a test to verify that t

Re: [appengine-java] com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException The response could not be deserialized

2010-04-20 Thread Ikai L (Google)
I don't believe you can reuse the same classes for both GWT and JDO/JPA. I'm not sure that you would want to, as you may be exposing some details about your persistence that a rich client doesn't really need to know. On Sun, Apr 18, 2010 at 6:19 PM, luka wrote: > Hi All, > > I am trying to evalu

Re: [appengine-java] Updating JPA Entities on AppEngine

2010-04-20 Thread Ikai L (Google)
There's no concept of a global schema for datastore entities, so entities are responsible for managing defining their own fields. For this reason, you cannot add fields if your requirement is that they are non-empty without iterating through each entity and updating it. An alternative solution coul

Re: [appengine-java] Re: Blob Store service createUploadUrl() and a Dispatcher Servlet

2010-04-20 Thread Don Schwarz
I'm confused. What success path is being called? In the example web.xml file you attached to the bug, you don't have a servlet mapped to /uploadComplete so invoking of your DispatcherServlet after the upload occurs is exactly what I would expect. Is the problem that once inside your DispatcherSe

Re: [appengine-java] simple JPA query too slow

2010-04-20 Thread Ikai L (Google)
Indexes aren't indexes in the relational sense - indexes mean that they'll allow your application to find the data in the non-relational datastore. Query performance locally uses a datastore stub, and the performance of a read can be dependent on the number of totally entities locally. What is the

Re: [appengine-java] Re: How to exclude the optional jars for deployment?

2010-04-20 Thread Rajeev Dayal
Hey Jake, Thanks for writing this up. Replies inline: On Thu, Apr 15, 2010 at 1:22 PM, Jake wrote: > Hello, > > Thanks for the help. This is quite a long, detailed post, but > hopefully it will help generate some documentation. > > I started by making an exact copy of an existing Maven/GAE pro

[appengine-java] Re: Reg. Data store update query

2010-04-20 Thread datanucleus
> How to update some existing data in datastore post an example or any > link. Retrieve an object and update it perhaps ? -- 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...@g

[appengine-java] Re: org.datanucleus.store.appengine.query.DatastoreQuery$2

2010-04-20 Thread mini998
Hi, Did you figure out the problem ? I have the exact same error when i deploy my app it runs fine locally though. PersistenceManager pm = PMF.get().getPersistenceManager(); List projects = null; Query query; if(key==null){

[appengine-java] Re: org.datanucleus.store.appengine.query.DatastoreQuery$2

2010-04-20 Thread mini998
Hi, I have the same problem I think its due to the result set being not serialized do not know how to serialize the result set before putting it to session any ideas thanks in advance On Apr 19, 9:52 pm, CodeMan wrote: > Hi, > > I am getting the error below in a JSF app when I try to fetch

[appengine-java] Reg. Data store update query

2010-04-20 Thread Sumeet Kumar
I'm working with google app engine data store and not sure how to use update query here. I tried deleting and inserting the updated data but it is throwing an exception that primary key value being changed and no where in the docs is there any mention of query for updation of the data. If there is

[appengine-java] Create Google App Engine ID Programmatically

2010-04-20 Thread formtester
Hi, I'm trying to log in to Google App Engine with my Google Account, and I was wondering if it's possible to do this programmatically. I want to retrieve all the App ID that I have in Google App Engine (https://appengine.google.com/) through my application (written in Java). What kind of authenti

[appengine-java] Re: JDP, get objects by id

2010-04-20 Thread Timofey Koolin
It's my mistake - in my class primary key names key instead of id; On 20 апр, 19:35, Timofey Koolin wrote: > I tried it: > > ListaccessList = (List) > query.execute(user.getKey()); > ArrayList ids = new ArrayList(); > ... > query = pm.newQuery(DBPurchaseItem.class, > ":idCollection.contains(id)")

[appengine-java] Re: JDP, get objects by id

2010-04-20 Thread Timofey Koolin
I tried it: ListaccessList = (List) query.execute(user.getKey()); ArrayList ids = new ArrayList(); ... query = pm.newQuery(DBPurchaseItem.class, ":idCollection.contains(id)"); List dPurchases = (List)query.execute(ids); and catch Exception: org.datanucleus.store.appengine.query.DatastoreQuery $Un

[appengine-java] JAXB problem No Source code is available for type javax.xml.bind.JAXBContext

2010-04-20 Thread RB
Hello, I create a very simple application that should be parse an xml and display some info on a popup. But when I run it on my pc I have this message: Line 114: No source code is available for type javax.xml.bind.JAXBContext; did you forget to inherit a required module? I have added all the jar l

[appengine-java] What is the best way to store child object?

2010-04-20 Thread ailinykh
Hello, everybody! I have simple one to many owned relationship: ... class MyList{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent(mappedBy="myList") @Element(dependent = "true") List items; ... } class Item{ @PrimaryKe

[appengine-java] Re: Query for children of entity with JDO

2010-04-20 Thread timwhunt
Thanks for both suggestions. datanucleus is including the parent as an object in each child: > So do a JDOQL query for the elements > pm.newQuery("SELECT FROM MyElement WHERE myParent == :parent"); > and pass in the parent object, and add on any other filter > requirements. That sounds to me lik

[appengine-java] Re: Slow app JVM wake - even with no data store access?

2010-04-20 Thread Peter Ondruska
Actually there are lots of jar files coming with appengine with uncompressed content what could save megabytes of data (http:// groups.google.com/group/google-appengine-java/browse_thread/thread/ 0bce0adc3ace4d94#). But I am not sure what effect this can have on JVM startup in GAE/J--if it is less

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
I did the tutorial project and I have that working with one-many. I guess I can work from here! Thanks guys. -- 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.c

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread datanucleus
> So i've got two serializable classes and one contains a list to the > other and it just does not want to pass this to my service without > throwing this error message. So raise it on the GWT group. It's their software causing the problem. -- You received this message because you are subscribed

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
I've taken a look at that code. I can't see any differences between what i'm doing and what is in that other post. Its driving me nuts lol. So i've got two serializable classes and one contains a list to the other and it just does not want to pass this to my service without throwing this error mes

Re: [appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread Chau Huynh
On Tue, Apr 20, 2010 at 5:48 PM, DeliveryNinja wrote: > It seems that having any data in the "List comments" in the > Content.java causes the serialization error. Even when I've removed > all the data from the Serializable class Comment.java. So it has > nothing but a constructor. > In this post,

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
[com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java: 161), com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 145), com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 199), com.

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
[com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java: 161), com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 145), com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 199), com.

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
[com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java: 161), com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 145), com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 199), com.

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread datanucleus
Yes, but every exception has a stack trace. Every one. Catch the exception and call e.printStackTrace(). Knowing which of your method calls results in the exception is the only answer. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread DeliveryNinja
if(event.getSource() == submit){ boolean error = false; if(getContent() == null || getContent() == ""){ errorComment.setVisible(true); error = true; }

[appengine-java] Re: Slow app JVM wake - even with no data store access?

2010-04-20 Thread Pelle Poluha
Would it make a difference to trim the jar files? I've noted that twig has a dependency on google collections, a jar file measuring 500k. It is possible to reduce that jar file and only include the needed classes. I guess it could be done for the rest of the jar files too. On 20 Apr, 05:13, Blake

[appengine-java] Can not send mails

2010-04-20 Thread Sudhir Ramanandi
Hello mods, I subscribed since two days, Still my messages aren't delivered to group. Please do the needful and approve my message. SN -- 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-a

[appengine-java] Re: open source pdf engine for GAE

2010-04-20 Thread Patou
Hello In App Engine, You can't write a file to the file system. Otherwise the save method can't be used in GAE. Use this code to send the pdf to the navigator : pdf.wrap(); String fileName = "Example_03.pdf"; resp.setContentType("application/pdf"); resp.setHeader("Content-Disposition", "attachm