[appengine-java] Re: A newbie question about logging using java.util.logging

2009-11-13 Thread Zaske
Thanks Toby! It did the trick! Here is my complete logging.properties file: .level = WARN # Set the default logging level for ORM, specifically, to WARNING DataNucleus.JDO.level=WARNING DataNucleus.Persistence.level=WARNING DataNucleus.Cache.level=WARNING DataNucleus.MetaData.level=WARNING DataNu

[appengine-java] Re: Delete task queue

2009-11-13 Thread Peter Ondruska
Ikai, the application id is kaibo-www On 11 lis, 22:31, Peter Ondruska wrote: > Ikai, I have updated_queues (queue.xml follows) but thequeueis still > there. > > > http://www.w3.org/2001/XMLSchema-instance"; > xsi:noNamespaceSchemaLocation="http://googleappengine.googlecode.com/ > svn/trunk/java

[appengine-java] Re: Session handleing example

2009-11-13 Thread Steph
Hi Ikai, I have been on version 1.2.2 and just upgraded to version 1.2.6. I am setting in the session a simple persistable object: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class User implements Serializable { // ... On Nov 12, 3:19 pm, "Ikai L (Google)" wrote: > Steph

[appengine-java] Re: Session handleing example

2009-11-13 Thread Steph
Thanks for the insights. I can't really forward at this point in my code, as I am chaining servlet filters. And beside I am always skeptical of fixing things by applying some bizarre magic with the supporting API. I think there's enough evidence that something strange is going on with the way the G

[appengine-java] JPA problem - I want to persist an entity and then select all the entities from the table

2009-11-13 Thread Zaske
Hi all, I have a problem with using JPA & Google App engine Here is my entity: @Entity public class UserEntity { public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName;

[appengine-java] Re: Spring Web Flow

2009-11-13 Thread Dieter Hubau
I hope some people who know stuff about Spring Web Flow are reading this :-) On Nov 12, 3:48 pm, Dieter Hubau wrote: > Anyone? If you need extra information, I'm willing to paste more of > the code here.. > > On Nov 12, 10:29 am, Dieter Hubau wrote: > > > Hi everyone, > > > I’m having an error u

[appengine-java] Re: trouble with SDK 1.2.6

2009-11-13 Thread Nacho Coloma
Just for the record, I also have appengine-api-stubs.jar and appengine-local-runtime.jar for my tests, and making appengine-agent the first entry in my classpath solved the problem. On Oct 28, 6:22 pm, Vince Bonfanti wrote: > No, that didn't help. Again, just to make sure I'm being clear: > >  -

[appengine-java] Re: trouble with SDK 1.2.6

2009-11-13 Thread a.maza
On 13 Nov., 12:04, Nacho Coloma wrote: > Just for the record, I also have appengine-api-stubs.jar and > appengine-local-runtime.jar for my tests, and making appengine-agent > the first entry in my classpath solved the problem. > I just tried it out and this works for me. Thanks a lot for that h

[appengine-java] Re: Sending HTTPS request.

2009-11-13 Thread sree
SOLUTION : http://stackoverflow.com/questions/1341081/using-http-basic-auth-with-google-app-engine-urlfetch-service -- 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...@googleg

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

2009-11-13 Thread Prashant
Hi, is there any way to filter entities for not containing a tag like * ! MyList.contains(\"tag") *OR* MyList.doesnotcontains(\"tag")* thanks. -- 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: Bi-directional unowned one-to-many relationships?

2009-11-13 Thread a.maza
but then it would be again an owned relationship, which I actually wanted to avoid... On 13 Nov., 06:33, Rusty Wright wrote: > One of the things I've been wondering about is if it helps to invert the > ownership. > > Thinking out loud again.  Feedback welcome; feel free to point out flaws in

[appengine-java] Re: JPA problem - I want to persist an entity and then select all the entities from the table

2009-11-13 Thread m seleron
Hi If it is unquestionable even if the Nano second is lost I think that I can do normal registration by using "java.util.Date". thanks. On 11月13日, 午後7:13, Zaske wrote: > Hi all, > I have a problem with  using JPA & Google App engine > > Here is my entity: > > @Entity > public class UserEntity

[appengine-java] Re: JPA problem - I want to persist an entity and then select all the entities from the table

2009-11-13 Thread Zaske
Just took a look at DataNucleus documentation - Timestamp cannot be used as a type of a field - http://www.datanucleus.org/products/accessplatform_1_1/jpa/types.html On Nov 13, 4:47 pm, m seleron wrote: > Hi > If it is unquestionable even if the Nano second is lost > I think that I can do normal

[appengine-java] Re: JPA problem - I want to persist an entity and then select all the entities from the table

2009-11-13 Thread datanucleus
> Just took a look at DataNucleus documentation - Timestamp cannot be > used as a type of a field - You mean "java.sql.Timestamp" that is clearly marked as persistable by DataNucleus docs (though not by default - so you have to add @Temporal, or @Basic annotation on the field) ? -- You received

[appengine-java] Re: ClassCastException when calling remove on a one to many owned relationship

2009-11-13 Thread Peter Recore
Thanks! It's a concise ticket, but I'm still not sure why I missed it when I searched. -peter On Nov 12, 12:30 pm, "Max Ross (Google)" wrote: > Looks like you're running > intohttp://code.google.com/p/datanucleus-appengine/issues/detail?id=126 > > This is a lousy bug report, and I can say that

[appengine-java] Re: ClassCastException when calling remove on a one to many owned relationship

2009-11-13 Thread Peter Recore
Doh! I was searching for Open issues, not All issues. This one is marked as Fixed, so I missed it. Oops. On Nov 12, 12:30 pm, "Max Ross (Google)" wrote: > Looks like you're running > intohttp://code.google.com/p/datanucleus-appengine/issues/detail?id=126 > > This is a lousy bug report, and I

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

2009-11-13 Thread wowostore
i solve this proplem by setting struts.devMode to false in struts.xml for example . my program runs ok. On Nov 3, 4:49 am, Rusty Wright wrote: > With Google App Engine your app can't write to the disk (by using files), it > can only write to the Google data store.  You can read files

[appengine-java] porting python selfreference to java how-to

2009-11-13 Thread lp
hi there i am porting a python GAE to java but have come unstuck with self reference type. my existing data model uses the SelfReferenceProperty and it allow me to do a very powerful query in a simple manner. Python model -- class PositionUser(db.Model): user = db.UserProper

[appengine-java] Re: TaskQueue API don't work in Unit Tests

2009-11-13 Thread Steve Ziegler
Maybe not the cleanest code, but this code works for me with task queue testing, assuming all the right jars on the classpath, with LocalServiceTestCase being identical to the class online: public class TasksServiceTest extends LocalServiceTestCase { @Override public void setUp() thro

[appengine-java] How to speed up JSP compile time?

2009-11-13 Thread Steph
When modifying a JSP in the war directory, it can take up to 3 minutes for the JSP to recompile and the page to render (I am on a brand new dual-core CPU 2.66 Ghz). Is there a way that the JSP compile time can be speed up? This slowness makes development almost unbearable. Thanks for your help. -

[appengine-java] How to filter the entities with null value of a property with JDQL?

2009-11-13 Thread Jason
I would like to query for the entities with null value of a property, how to write the JDQL queryFilter code? I have tried the code like - query.setFilter("propertyA == null"), however, it seems not work right. Thanks. -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: Timeout using GData API

2009-11-13 Thread dsay
Even I am getting same error for sites On Nov 6, 11:54 am, Roy wrote: > Recently I've started getting timeouts fetching a spreadsheet using > the Gdata API library. How do I increase the timeout? > > Stack trace follows:- > > java.io.IOException: Timeout while > fetching:http://spreadsheets.goog

Re: [appengine-java] NullPointer on key

2009-11-13 Thread Max Ross (Google)
Presumably you have a Project in your HttpSession with a null Account. This is most likely related to FetchGroups. You probably want to put your Project.account field in the default fetch group. That way it will always be available when you close the persistence manager you used to load the Proj

Re: [appengine-java] image resize transform

2009-11-13 Thread Ikai L (Google)
The list of open issues for the Images API is here: http://code.google.com/p/googleappengine/issues/list?can=2&q=image It looks like your issue may be related to this: http://code.google.com/p/googleappengine/issues/detail?id=2339 Any details you can provide will be a great help. Thanks! On Th

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
Max, Can you please provide an example of how to set the Account in a fetch group? What about detaching the entire Project object and then saving it in the session? On Nov 13, 1:50 pm, "Max Ross (Google)" wrote: > Presumably you have a Project in your HttpSession with a null Account.  This > is

[appengine-java] Using class objects as keys in tasks for TaskQueue

2009-11-13 Thread edarroyo
Hello, We are trying to set an object as a parameter for a task. It seems the only values you can pass are strings, as we always get Eclipse complaining that the funciont param() does not handle non- string objects. What we are doing is the following: QueueFactory.getDefaultQueue(

Re: [appengine-java] How to speed up JSP compile time?

2009-11-13 Thread Toby Reyelts
Wow, that sounds bad. You're saying that this happens while running the dev_appserver (not appcfg), and you're only modifying one JSP file? Is that JSP file huge? Try raising the heap size of your JVM. For example, if you're using Eclipse, set -Xmx1G in the JVM arguments for your launch config. If

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

2009-11-13 Thread Matthew McGinty
I'm using the GAE Java Dev Server (i.e. Jetty). When I request a page that sends a large amount of cookie data to the browser and then re-request the page (so that the browser sends the cookies back to the server) I get this stacktrace: == Nov 13, 2009 6:35:13 PM com.google.apphosting.util

[appengine-java] Contact Sharing

2009-11-13 Thread Josh
Is it possible for a user in a domain to create group of contacts and share that group with other select user(s) in a domain? I haven't found anything to suggest that it is, but I just want to make sure. -- You received this message because you are subscribed to the Google Groups "Google App En

Re: [appengine-java] Re: NullPointer on key

2009-11-13 Thread Max Ross (Google)
That sounds like a good topic for a Snippets That Work blog post. I don't have time to construct the example for you but I'd recommend reading http://www.datanucleus.org/products/accessplatform_1_1/jdo/fetchgroup.html If after reading this you're still not able to get your code working, please p

Re: [appengine-java] Re: Bi-directional unowned one-to-many relationships?

2009-11-13 Thread Rusty Wright
Yes, my idea was that, in some cases, inverting the relationship could possibly avoid the parenting/ownership problems. Not that it's a solution for all cases. As far as I can figure out, the problems with objects that can't have a parent, are objects that move around, or that are in (reference

Re: [appengine-java] Re: Spring Web Flow

2009-11-13 Thread Rusty Wright
Have you tried the Spring forums? Perhaps your problem is specific to Spring Web Flow and not App Engine. http://forum.springsource.org/ Dieter Hubau wrote: > I hope some people who know stuff about Spring Web Flow are reading > this :-) > > On Nov 12, 3:48 pm, Dieter Hubau wrote: >> Anyone?

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
It seems rather simple enough but i still cannot get it working correctly. I set the annotations in my classes and modified the PM factory [Account] @Persistent(mappedBy = "account", defaultFetchGroup="true") private List projects; [Project] @Persistent(defaultFetchGroup="

Re: [appengine-java] Re: A newbie question about logging using java.util.logging

2009-11-13 Thread Rusty Wright
Further proof, for me at least, that the properties file format is more confusing than the xml file format. I use log4j's successor, logback, and I'm so glad that it doesn't support the properties file format for configuration. Zaske wrote: > Thanks Toby! > It did the trick! > Here is my compl

Re: [appengine-java] Re: NullPointer on key

2009-11-13 Thread Max Ross (Google)
Can you please post the code where you're actually detaching the Project object? On Fri, Nov 13, 2009 at 1:15 PM, IlyaE wrote: > It seems rather simple enough but i still cannot get it working > correctly. I set the annotations in my classes and modified the PM > factory > > [Account] >@

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
I'm not detaching the object. Should i be? Do i still need modified fetching code if i use detached objects? On Nov 13, 4:23 pm, "Max Ross (Google)" wrote: > Can you please post the code where you're actually detaching the Project > object? > > > > On Fri, Nov 13, 2009 at 1:15 PM, IlyaE wrote: >

Re: [appengine-java] Re: NullPointer on key

2009-11-13 Thread Max Ross (Google)
You should probably read this as well: http://www.datanucleus.org/products/accessplatform_1_1/jdo/attach_detach.html On Fri, Nov 13, 2009 at 1:31 PM, IlyaE wrote: > I'm not detaching the object. Should i be? Do i still need modified > fetching code if i use detached objects? > > On Nov 13, 4:23

Re: [appengine-java] URLfetch 406 response

2009-11-13 Thread Ikai L (Google)
Vincenzo, HTTP 406 usually results from the HTTP client "Accepts*" header. This is documented here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html http://www.checkupdown.com/status/E406.html You'll want to check what headers you are setting as well as the headers for the URL you are tryi

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

2009-11-13 Thread Ikai L (Google)
Thanks for the feedback, Tim. It sounds to me like what you are looking for is MapReduce support. There's an feature in our issue tracker for this: http://code.google.com/p/googleappengine/issues/detail?id=112 Map/Reduce would be a great fit for our model since the work could be transparently dis

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
Right now when i set a detached copy of the object in session, it works as intented. req.getSession().setAttribute("account", pm.detachCopy(project)); Now do i still need to call fp.setGroup(FetchPlan.DEFAULT); or is this repetitive? On Nov 13, 4:48 pm, "Max Ross (Google)" wrote: > You should

[appengine-java] Re: export large dataset

2009-11-13 Thread alf
many thanks alberto On 11 nov, 17:45, James Cooper wrote: > Hi there, > > Good question.  I think you'll probably need to make the export an > asynchronous process that iterates through your dataset and writes out > a CSV blob to a temp Datastore entity, or to memcache in <1MB > chunks. > > I've

[appengine-java] bulkloader dump and restore

2009-11-13 Thread lent
Hello, I got python bulkloader upload data and download data working with loader and exporter for my java app. Do the bulkloader dump and restore options work when used with java app? They don't seem to work for me. I get an error like: BadRequestError: app xxx cannot access app bulkload.latest

[appengine-java] Re: How to filter the entities with null value of a property with JDQL?

2009-11-13 Thread m seleron
Hi I want to confirm it. What is the type that you are using for propertyA? Thanks. On 11月14日, 午前1:14, Jason wrote: > I would like to query for the entities with null value of a property, > how to write the JDQL queryFilter code? > I have tried the code like  - query.setFilter("propertyA ==

[appengine-java] Re: Query not working

2009-11-13 Thread dukha
I solved the problem although the solution implies a bug or incredibly bad documentation The CurrencyPair pojo was setup as follows public class CurrencyPair extends AbstractEncodedKeyObject{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorNa

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

2009-11-13 Thread tsp...@tangiblesoftware.com
I like the concept of MapReduce, however, I think it might be easier to borrow a page from Apple with the Grand Central Dispatch released in Snow Leopard. The hardest part would be implement a usable tool / framework in Java which many developers could leverage and understand. Especially, in my exp

[appengine-java] Re: Query not working

2009-11-13 Thread datanucleus
> I must say that I have had a terrible time getting my head around the > datanucleus jive. I find it terrible: extremely limited functionality > and gae don't give adequate documentation for the functionality that > it does have. I mean every new technology takes time to learn but > datanucleus/jd

[appengine-java] Re: image resize transform

2009-11-13 Thread jacek.ambroziak
My input was a 100x100 JPEG image, the transform: resize(85, 85), the result was also JPEG in agreement with my guess that the original encoding will be preserved, but, surprisingly, the result data could be up to 5 times longer byte wise. Explicitly enforcing PNG output did not solve the issue ...