[appengine-java] Query not working

2009-11-12 Thread dukha
I have a pojo CurrencyPair which I have successfully saved in the database using jdo. CurencyPair has a field currencyPair. Now trying to select in jdo the query works fine so long as there are no conditions/filters involved. ie I can select all currency pairs like this PersistenceManager pm= get

Re: [appengine-java] Query not working

2009-11-12 Thread David Brown
Have you tried using an outside tool like TOAD or DBVIS to run your query first as a test? Or can you JUnit your query? On Thu, Nov 12, 2009 at 2:11 AM, dukha wrote: > I have a pojo CurrencyPair which I have successfully saved in the > database using jdo. > CurencyPair has a field currencyPair.

[appengine-java] Spring Web Flow

2009-11-12 Thread Dieter Hubau
Hi everyone, I’m having an error using Spring + Spring Web Flow in my java web application. I have already fixed lots of small problems to get it working, but this one I can’t figure out. The app is: http://toverexpressforever.appspot.com When you click on the ‘register’ button, a new Spring We

[appengine-java] Re: Maven

2009-11-12 Thread Nacho Coloma
I think this is relevant to this thread: http://code.google.com/p/support/issues/detail?id=1226 As of today, it is still open. On Nov 11, 5:16 am, Rusty Wright wrote: > I use the following pom to make a "dependency pom".  After you create a > project with nothing but this pom.xml in it you then

[appengine-java] Re: Query not working

2009-11-12 Thread m seleron
Hi, Query query = pm.newQuery(CurrencyPair.class); query.declareParameters("String currency_name"); query.setFilter(" currencyPair == currency_name"); String currency_name = "AUD.USD"; List l = (List)query.execute (currency_name); It is likely already to have tried. thanks. On 11月12日, 午後5:18,

[appengine-java] URLfetch 406 response

2009-11-12 Thread vincenzo amoruso
Greetings to All, I'm trying to use urlfetch connection form GAE, but on any sites http response status gives 406. Could be http headers insue? Any ideas? Thanks in advance. Vincenzo -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" gr

[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-12 Thread a.maza
why are you not using another class that implements the MediaSource interface - e.g., MediaByteSource or MediaStreamSource? regards, andr On 11 Nov., 21:22, "Ikai L (Google)" wrote: > Kishore, > > Here are the docs related to sending the data as > binary:http://code.google.com/apis/picasaweb/do

[appengine-java] Re: Paging in java application

2009-11-12 Thread a.maza
I think this may help you http://code.google.com/p/gae-query-pager/ On 11 Nov., 18:50, Sanjith Chungath wrote: > Greetings to All, >               I found this > documentationhttp://code.google.com/appengine/articles/paging.htmlon paging > in python. > Can some one suggest the best way to im

[appengine-java] Re: why my app on GAE first access is so slow

2009-11-12 Thread DrMorten
1 minute works for me, I used a commercial service that tracks uptime to check it. Trouble is that the commercial service checks randomly from different locations all over the world. meaning that the application loads out of memory because its hosted in different locations, effectivly killing my CP

[appengine-java] Sending HTTPS request.

2009-11-12 Thread sree
how to send request to 'https' urls in google app engine ? how to send authentication details and body in java.net.HttpURLConnection ? i tried using java.net api code as shown below. but i got the exception :- java.security.AccessControlException: access denied (java.net.NetPermission setDefault

[appengine-java] Re: Cannot Install Ecipse Plug-in

2009-11-12 Thread Emmanuel
Jason, would you have any other ideas. Based on the fact it the other librairy does not install either, could it be a more fundemental issue in the set-up ? On Nov 9, 4:34 pm, Jason Parekh wrote: > Hi, > > Could you try enabling the Web Tools update site and attempt installing the > Google plug

[appengine-java] ApiProxy$UnknownException

2009-11-12 Thread Lucian Baciu
I keep getting this error: com.google.apphosting.api.ApiProxy$UnknownException: An error occurred for the API request datastore_v3.RunQuery(). at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall (ApiProxyImpl.java:198) at com.google.apphosting.runtime.ApiProxyImpl.access$000 (

[appengine-java] Re: Maven

2009-11-12 Thread datanucleus
*Apparently* there was some effort to put these jars and dependencies into default Maven2 repositories. For example we (DataNucleus) bothered to link the DataNucleus M2 repository with the one on IBiblio so all DataNucleus jars are there. Similarly Google and Jason Van Zvl were supposed to be putti

[appengine-java] Re: Cannot Install Ecipse Plug-in

2009-11-12 Thread Emmanuel
Ok I've found the problem, thanks for your help. The issue is that one has to use Eclipse EE, not classic. Emmanuel On Nov 9, 8:27 pm, Emmanuel wrote: > Well I tried this but it is the same result. > I was not sure what you meant by "enable" so I tried to check all > packaged from the webtools u

[appengine-java] Deployment problems

2009-11-12 Thread Max
I was able to deploy project until yesterday. When I deploy project throw plugin in eclipse I get messages in console as usually Creating staging directory Scanning for jsp files. Scanning files on local disk. Scanned 250 files. Initiating update. Cloning 92 static files. Cloning 236 application

[appengine-java] Re: app accessing data from another app

2009-11-12 Thread drone
Indeed, it seems that GAE application can communicate with outside world only through HTTP (and this also applies on accessing other GAE applications). I guess the right solution would be to expose app A as a web service and make RPCs on it from app B. Unfortunately, for now, using web services i

[appengine-java] Re: Deployment problems

2009-11-12 Thread Max
He is screenshot http://yfrog.com/0isnapshot2jzp On Nov 12, 4:45 pm, Max wrote: > I was able to deploy project until yesterday. > > When I deploy project throw plugin in eclipse I get messages in > console as usually > > Creating staging directory > Scanning for jsp files. > Scanning files on lo

[appengine-java] Re: Spring Web Flow

2009-11-12 Thread Dieter Hubau
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 using Spring + Spring Web Flow in my java web > application. > > I have already fixed lots of small problems to get it working, but >

[appengine-java] Re: Deployment problems

2009-11-12 Thread Max
I made mistake. Admin logs show that I have uploaded updates today. But application works just like yesterday app. When I run it locally I see changes. On Nov 12, 4:46 pm, Max wrote: > He is screenshot > > http://yfrog.com/0isnapshot2jzp > > On Nov 12, 4:45 pm, Max wrote: > > > I was able to d

[appengine-java] Re: Deployment problems

2009-11-12 Thread Max
It started to work and now projects updates. It is very odd. I sorry for bothering. On Nov 12, 4:53 pm, Max wrote: > I made mistake. Admin logs show that I have uploaded updates today. > But application works just like yesterday app. > When I run it locally I see changes. > > On Nov 12, 4:46 pm,

[appengine-java] image resize transform

2009-11-12 Thread jacek.ambroziak
I am trying to resize JPEG images from 100x100 original to smaller 85x85 size. The transformation apparently works, but the smaller image is LARGER bytes-wise?! An important reason for my making the images smaller is to reduce their data size. The same transformation using ImageMagick's 'convert'

[appengine-java] Re: why my app on GAE first access is so slow

2009-11-12 Thread James H
So at best, we have to use a 1-minute pinger for the app geographically close to our targeted users right? And am I understanding that reactivating an app server with our app is very costly towards quota...meaning we pay extra each time our app is activated for the overhead of loading the app on t

[appengine-java] Re: Entity Group limitations

2009-11-12 Thread James H
I was under the impression that transaction updates could only occur to 1 Entity Group at a time and I understand that. But, it appears during the transaction we also can NOT read another Entity Group...is that correct? If so, that seems to be quite limiting to NOT be able to collect information

[appengine-java] Re: JDO/JPA Snippets That Work - Updating a bidirectional, owned, one-to-many relationship with a new child

2009-11-12 Thread Diana Cruise
Max Ross, I took time to review and enter discussion relating to your snippet. In that thread above I raised questions, but never heard back...please have a look. On Nov 2, 12:55 pm, "Max Ross (Google)" wrote: > Looking in the debugger is not a good indication of what is and is not set > because

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

2009-11-12 Thread tsp...@tangiblesoftware.com
Ikai, This is not really a relational data question. It is a summary data question. To give a brief overview on my approach; here is the history over the past 20 years on my approach to summary information: 1. Calculate the summary information on the fly per user request. Very data

[appengine-java] Re: Entity Group limitations

2009-11-12 Thread James H
Nevermind, I found the link that describes Transactions as limiting queries as well as updates... http://code.google.com/appengine/docs/java/datastore/transactions.html#What_Can_Be_Done_In_a_Transaction On Nov 12, 9:51 am, James H wrote: > I was under the impression that transaction updates coul

[appengine-java] Preventing GWT compile during deployment

2009-11-12 Thread Roy
How do I stop the GAE Deploy process from doing a GWT compile? -- 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

[appengine-java] Re: App Domain Authentication

2009-11-12 Thread Muz
Hi Jason, would you be able to give us an update on the long-term plans for "true" multi-tenancy in GAE? Is this in the hopper for delivery, or just promise-ware at this point? thanks Murray On Oct 9, 2:48 pm, "Jason (Google)" wrote: > For your first application, you might look into OpenID. I bel

[appengine-java] Jetty compiled JSPs

2009-11-12 Thread IlyaE
Where are the compiled JSPs stored on the local filesystem? I don't see them in my workspace files. -- 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 uns

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

2009-11-12 Thread Max Ross (Google)
Looks like you're running into http://code.google.com/p/datanucleus-appengine/issues/detail?id=126 This is a lousy bug report, and I can say that without fear of offending anyone because I'm responsible for it. The fix will be available in the next SDK (currently working its way through QA). In

[appengine-java] Re: Session handleing example

2009-11-12 Thread Steph
I am having the same problem. The difference for me is that sessions work in GAE (deployed) but they don't always work on my local GAE install. For example, if I set an object in the session from an Filter, I can't retrieve my object through my JSP. Is this a bug? On Nov 10, 12:03 pm, IlyaE wrot

[appengine-java] Re: Session handleing example

2009-11-12 Thread Steph
I am having the same problem. The difference for me is that sessions work in GAE (deployed) but they don't always work on my local GAE install. For example, if I set an object in the session from an Filter, I can't retrieve my object through my JSP. Is this a bug? On Nov 10, 12:03 pm, IlyaE wrot

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

2009-11-12 Thread Jackroz
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/appversion/cloneblobs?app_id=aapcore&version=2&; 500 Internal Server Error Server Error (500) A server error has occurre

[appengine-java] Re: Session handleing example

2009-11-12 Thread Steph
I am having the same problem. Object on my local GAE install can't be stored in the session. Very detrimental for user session management. Here is the line in my appengine-web.xml: true I store my user in session from inside a Filter: HttpSession session = httpRequest.getSession(); session.set

[appengine-java] Re: Watermark an image

2009-11-12 Thread Rene
I ran into the same problem. Also the only background color that shows up is black even though I set the color to green. Anyone with suggestions? Thanks On Oct 8, 9:36 pm, Mike wrote: > I am using thecompositemethods mentioned above, but the transparency > of my PNG is not honored.  I have trie

[appengine-java] HELP WITH ACCOUNT SETUP

2009-11-12 Thread Brickhouse
Apparently there was a problem on my end that prevented me from getting the sms code during account set up. Since I had tried to send the validation code a number of times, I am now unable to resend the code to my number due to me sending too many SMS messages. Is there someone who can clear thi

[appengine-java] Is there any problem to use the actionListener inside the h:commandButton??? cause it does nothing?

2009-11-12 Thread Daniel
Hi i built a google web project with GAE1.2.6 with JSF 2.0 and everything works fine.. built a sample page with a commandbutton placed inside a form added value property (string value taken from bean) but.. I added the actionListener which points to a method in the class but when i run the web

[appengine-java] plz ignore my previous post... my mistake... about the actionlistener.... sorry....

2009-11-12 Thread Daniel
sorry shit happens :) -- 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...@goo

[appengine-java] Re: Watermark an image

2009-11-12 Thread Rene
I used the GWTCanvas to achieve PNG transparency so that I could overlay an image over another and see through it. String[] urls; // clear the canvas canvas.clear(); // draw the shape of the work piece with background

[appengine-java] Can't set object in Session of Request from javax.servlet.Filter

2009-11-12 Thread Steph
Using Java app-engine SDK 1.2.2, running locally. 1. My session is enabled in appengine-web.xml : true 2. From a javax.servlet.Filter filtering all requests, I create a user object and set it in the session: HttpServletRequest httpRequest = (HttpServletRequest) request; HttpSession session = http

[appengine-java] @MappedSuperclass containing Key is causing DataNucleus NPE on remove

2009-11-12 Thread Todd Vierling
I created a JPA @MappedSuperclass containing the Key for all my model objects, so that I could encapsulate the GAE-specific code. (Instead of using Keys directly, inter-component communication is using Long ID's for possible compatibility with other backing stores.) When I put the Key instance in

[appengine-java] long ID of child objects restarts at 1 for every parent?

2009-11-12 Thread Todd Vierling
I haven't programmatically tested this for problems yet, but looking at the datastore viewer for the app that I created for the @MappedSuperclass test case (other thread), all the child objects seem to have id=1 rather than pulling from a common ID generation pool as is done on the localhost develo

[appengine-java] JSF 2.0.1 java.lang.ClassNotFoundException: void

2009-11-12 Thread Mirco Attocchi
Problem using majorra 2.0.1 and GAE 1.2.6, but some times pages render correctly. javax.servlet.ServletException: java.lang.RuntimeException: java.lang.ClassNotFoundException: void at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:240) at

[appengine-java] Re: @MappedSuperclass containing Key is causing DataNucleus NPE on remove

2009-11-12 Thread datanucleus
FWIW. I see little point in trying with RDBMS since the calling code here is the GAE/J plugin org.datanucleus.store.appengine.DatastoreRelationFieldManager.lookupParent (DatastoreRelationFieldManager.java:309) and the JPA TCK tests all such operations for RDBMS and DataNucleus passes for RDBMS. --

[appengine-java] duplicate jdoconfig.xml due to unit testing (eclipse)

2009-11-12 Thread a.maza
hello, my GAE project in eclipse has the following structure (maven-like) *) src/main contains my application - it is comiled to war/WEB-INF/ classes *) src/test contain my junit tests - it is compiled to target/test in both source folders (src/main and src/test) I have a META-INF folder with a

[appengine-java] Re: trouble with SDK 1.2.6

2009-11-12 Thread a.maza
same here, when I try to have my junit tests in the same project. anyone got a solution? On 28 Okt., 18:22, Vince Bonfanti wrote: > No, that didn't help. Again, just to make sure I'm being clear: > >  - The only reason appengine-api-stubs.jar and > appengine-local-runtime.jar are in my project cl

[appengine-java] Re: Session handleing example

2009-11-12 Thread IlyaE
Steph, I have modified my code to make use of RequestDispatcher dispatcher = req.getRequestDispatcher(redirect); dispatcher.forward(req, resp); and this seems to fix the issue. Once i have authenticated my user and forwarded, every subsequent redirect or forward m

[appengine-java] Re: Jetty compiled JSPs

2009-11-12 Thread IlyaE
Found it.. C:\Documents and Settings\\Local Settings\Temp \Jetty_0_0_0_0_8080_warut4fm1\jsp\org\apache\jsp On Nov 12, 12:23 pm, IlyaE wrote: > Where are the compiled JSPs stored on the local filesystem? I don't > see them in my workspace files. -- You received this message because you a

[appengine-java] Re: long ID of child objects restarts at 1 for every parent?

2009-11-12 Thread Todd Vierling
On Nov 12, 12:53 pm, Todd Vierling wrote: > Should I expect Key.getId() to return a globally unique number for all > persisted objects, or is it only unique relative to its parent Key? > > (The objects in question are using Key references for the underlying > classes, not Long references, to avoid

Re: [appengine-java] HELP WITH ACCOUNT SETUP

2009-11-12 Thread Ikai L (Google)
Can you submit your request to the SMS waitlist? https://appengine.google.com/waitlist/sms_issues On Thu, Nov 12, 2009 at 6:10 AM, Brickhouse wrote: > Apparently there was a problem on my end that prevented me from > getting the sms code during account set up. > > Since I had tried to send the

Re: [appengine-java] Re: Session handleing example

2009-11-12 Thread Ikai L (Google)
Ilya, This will surface the object in request scope, but you should not be having problems with objects stored in session scope. I'm investigating the issues regarding objects in session scope when deployed. On Thu, Nov 12, 2009 at 10:39 AM, IlyaE wrote: > Steph, > > I have modified my code to

Re: [appengine-java] logs in dashboard ... how do they work?

2009-11-12 Thread Ikai L (Google)
Mark, Glad you like it! Unfortunately, this isn't open source. We store and index log entries in BigTable rather than append to a file, so it wouldn't be particularly useful to most users of Java logging. I could have sworn I've seen this feature in Glassfish's admin GUI before, but I might be th

Re: [appengine-java] Re: Entity design tips for global Membership data

2009-11-12 Thread Ikai L (Google)
James, Yes, it seems like I misunderstood your original question. Our data store is distributed. Static assets are distributed via a CDN, however, dynamic requests that are handing by App Engine apps are routed to data centers serving App Engine requests. We don't currently route requests to the n

[appengine-java] query.deletePersistentAll() not working !

2009-11-12 Thread Prashant
Hi, I used to delete entities using query.deletePersistentAll() but doesn't work anymore! why? -- 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 unsubsc

[appengine-java] Re: query.deletePersistentAll() not working !

2009-11-12 Thread Prashant
correction : earlier, even with DeadLineExceed Error query.deletePersistentAll() used to delete entities, now, it doesn't. not sure what happens if DeadLineExceed Error doesn't occur. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.

Re: [appengine-java] Re: Session handleing example

2009-11-12 Thread Ikai L (Google)
Steph, Ilya is actually having the opposite problem. I'm can't reproduce either issue. Can you give me more information about what you are trying to set into the session? What version of the SDK are you using? On Thu, Nov 12, 2009 at 12:35 AM, Steph wrote: > I am having the same problem. Object

[appengine-java] Re: Query not working

2009-11-12 Thread dukha
Thanks for the reply. Yes I have tried this, with a query.declareParameters() in the middle. On Nov 12, 8:55 pm, m seleron wrote: > Hi, > > Query query = pm.newQuery(CurrencyPair.class); > > query.declareParameters("String currency_name"); > query.setFilter("currencyPair== currency_name"); > Str

[appengine-java] Re: Query not working

2009-11-12 Thread dukha
No, I didn't know about either toad or dbvis. I'll look into them now. I don't think junit would give me anymore info than I can get from the eclipse debugger in this situation. Dukha On Nov 12, 6:18 pm, David Brown wrote: > Have you tried using an outside tool like TOAD or DBVIS to run your qu

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

2009-11-12 Thread Zaske
Hi all, I want to log (at INFO level) all classes that their package begin with com.zas.test - For this I added the line: com.zas.test=INFO to my logging.properties file - so now it looks like this: .level = WARNING # Set the default logging level for ORM, specifically, to WARNING DataNucleus.J

Re: [appengine-java] CPU Time metric is not being reset !!

2009-11-12 Thread Ikai L (Google)
According to your dashboard, you are only at 24% quota. The daily quota will be reset in less than 12 hours. That being said, if you require more quota, enabling billing will raise your quota limit. That being said, I'm not sure that's what's needed in your case. One of your handlers is using a pr

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

2009-11-12 Thread Rusty Wright
1) Appcfg gets the request (access) logs, not the error logs. 2) On the web page console, did you change the filtered log level to INFO? It starts out filtering for ERROR or WARN. Zaske wrote: > Hi all, > I want to log (at INFO level) all classes that their package begin > with com.zas.test -

[appengine-java] Re: Query not working

2009-11-12 Thread m seleron
Though different sources think Could you try this in simple ? PersistenceManager pm= getPersistenceManager(); String JDOQL = CurrencyPair.class.getName() + " where currencyPair =='AUD.USD' "; Query query = pm.newQuery(JDOQL); List l = (List)query.execute(); thanks. On 11月13日, 午前9:09, dukha w

[appengine-java] NullPointer on key

2009-11-12 Thread IlyaE
I'm seeing an odd issue when loading my jsps for the first time (after deployment). I have an Account object that has many Projects [Account] @Persistent(mappedBy = "account") private List projects; and on the otherside [Project] @Persistent private Key account;

[appengine-java] Re: Session handleing example

2009-11-12 Thread IlyaE
Ikai, I'm not sure i understand. I was having issues doing something like this in my servlet request.getSession().setAttribute("a",a); and then resp.sendRedirect (redirect); When trying to access 'a' in the redirected jsp, i kept getting null. Once i changed my redirect to a forward, i did n

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

2009-11-12 Thread Rusty Wright
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 my logic, or whatever. For example, if you have a class Person with favorite foods, with an rdbms you'd have: @PersistenceCapable(ide

Re: [appengine-java] Re: DeadlineExceededException not correctly thrown during a transaction

2009-11-12 Thread Prashant
now, the error is being thrown but entities are not getting deleted -- 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 e

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

2009-11-12 Thread Zaske
Yes, I tried filtering info - and did not get the messsage. In the end I changed the file to look like: .level = FINEST # Set the default logging level for ORM, specifically, to WARNING DataNucleus.JDO.level=WARNING DataNucleus.Persistence.level=WARNING DataNucleus.Cache.level=WARNING DataNucleus

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

2009-11-12 Thread Toby Reyelts
Did you try com.zas.test.level=INFO instead of com.zas.test=INFO ? On Fri, Nov 13, 2009 at 1:22 AM, Zaske wrote: > Yes, I tried filtering info - and did not get the messsage. > In the end I changed the file to look like: > > .level = FINEST > > # Set the default logging level for ORM, specifical