[appengine-java] Re: com.sun.xml.internal.ws.streaming.XMLStreamReaderException

2011-12-03 Thread gk
It says error: javax.xml.stream.XMLStreamException: ParseError at [row,col]: [4,3] Message: The element type "meta" must be terminated by the matching end-tag "". It means around row 4, column 3, of some XML file or other stream, there is an unclosed XML tag. It looks similar to this: But it

[appengine-java] Re: Unreliable Email Service

2011-11-27 Thread gk
Aviv, please learn to use a mailing list... Thank You! On Nov 27, 12:01 am, Aviv Keren wrote: > Hi Jeff, > I don't know why did you send me this email, it has nothing to do with my > problem. > I'll be glad to get some help with what I've described. > > my problem issue: > *'appcfg.cmd update' r

[appengine-java] Re: How to efficiently implement Quotas

2011-11-25 Thread gk
Implement a filter that records each count and checks if the limit is reached. To make it cheaper: 1. You can uses a preliminary counter in Memcache (see Memcache API, look for increment). A cron task then transfers the Memcache count into the Datastore every few minutes... 2. Another approach

[appengine-java] Re: 1.6.0 async sessions fail..

2011-11-25 Thread gk
Have the same, since version 1.5... Star issue http://code.google.com/p/googleappengine/issues/detail?id=5774 On Nov 25, 4:24 am, MANISH DHIMAN wrote: > Yes I got the same problem. > > On Nov 9, 2:16 am, "Savas L." wrote: > > > > > > > > > is it just me, or anyone has the same problem? > > >

[appengine-java] Re: Infinite loop of redirection related to 404

2011-10-18 Thread gk
You have probably configured some form of authentication / security. When your application tries to acces the page, it wants to redirect you to the login url (like "/myLoginForm.html" or "/ah_login/..." for App Engine login). Now the login url is not accessible (probably due to authentication / s

[appengine-java] Re: Spring or Struts with Google app engine.Is it feasible to use any of these?

2011-10-14 Thread gk
Look at http://code.google.com/p/googleappengine/wiki/WillItPlayInJava On Oct 13, 4:35 pm, Alessandro Barbosa wrote: > Hi, > > both frameworks are compatible with GAE for Java, (Struts 2 with some > workarounds, not much complex). I suggest you to use the framework with > which you are accustome

[appengine-java] Re: Wicket NonCachingImage not showing image

2011-10-14 Thread gk
Open the source URL of the image in your browser (http://.../page?8- IResourceListener-frmForm- imgImage&antiCache=1318502670796). Then see what your browser tells you about that resource. On Oct 13, 4:13 pm, Ian Marshall wrote: > Hello everyone, > > I use Apache Wicket's NonCachingImage compone

[appengine-java] Re: Local datastore can't be browsed but has data

2011-10-09 Thread gk
Probably. Try changing back the application-id to the old value. Does it then show the data again? On Oct 8, 11:29 am, Mark Silberbauer wrote: > Hi, > > My local datastore in my development environment is about 4MB. After testing > the deployment process to the cloud I noticed that when running

[appengine-java] Re: .A research: how long will your java app instance start up fully?

2011-09-29 Thread gk
~10s -- 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 unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. Fo

[appengine-java] Quiz

2011-09-29 Thread gk
What is the output of the following method? public boolean whatDoesItDo() { try { if(true) { throw new IllegalStateException(); } return true; } finally { if(true) { return false; } } } Have a

[appengine-java] Re: Threads

2011-09-23 Thread gk
Harish, You could place the result from the task in the Memcache or Datastore and wait in the request for it to be placed. The common key for the result entity can be passed as an URL parameter or as a task payload to Your task. On Sep 19, 10:56 am, "HARISH S.C" wrote: > @de Witte > I thought o

[appengine-java] Re: input Data in DataStore from External Server ?

2011-09-12 Thread gk
Hey Kb, upload another "special version" of your GAE app. Use that "special version" to run Java code that imports the data. All versions of an GAE app use the same datastore. Possibly write and run localy a utility application to POST each record to your GAE datastore / or GET each record from

[appengine-java] Re: The *real* cost of the billing changes

2011-09-10 Thread gk
t does not incentivize Google to add more > resources to the cluster. > > Jeff > > > > > > > > On Sat, Sep 10, 2011 at 10:39 AM, gk wrote: > > Pricing should be as follows: > > > Calculate a price of resources using the demand / availability of >

[appengine-java] Re: The *real* cost of the billing changes

2011-09-10 Thread gk
Pricing should be as follows: Calculate a price of resources using the demand / availability of those resources in the cloud: - if Google has more of resource X than users demand, the price for that resource would go down and free quota up. - if users demand more of resource X than Google has, th

[appengine-java] Re: Asynchronous sessions enabled and deferred task error - ClassNotFoundException

2011-09-10 Thread gk
Star this issue: http://code.google.com/p/googleappengine/issues/detail?id=5774 -- 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 unsubscribe from this g

[appengine-java] Re: Entity modelling

2011-08-15 Thread gk
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. On Aug 14, 4:21 pm, MK Z wrote: > Hi, > Thanks for your reply. The category is not related to the group - category > holds value like Science/Tech/Music while Group stores value l

[appengine-java] Re: Multiple PersistenceManagerFactory with Singleton?

2011-08-10 Thread gk
Dimitry, see http://en.wikipedia.org/wiki/Singleton_pattern for the Singleton - it explains why your last code snippet does not always work as it is not thread safe and can cause multiple instance to be created. On Aug 10, 11:33 am, dimi wrote: > I was afraid about that.. > > I'm using Objectify

[appengine-java] Re: Multiple PersistenceManagerFactory with Singleton?

2011-08-10 Thread gk
Simon, this is equivalent "public static final void a(){}" and "public static void a(){}" - following of course not "public static final int b" and "public static int b". On Aug 9, 5:57 pm, Simon Knott wrote: > Whilst I don't know what could cause this error, what makes you believe that > "sta

[appengine-java] Re: Entity modelling

2011-08-09 Thread gk
Recommended beginner's reading: http://en.wikipedia.org/wiki/Database_normalization On Aug 7, 11:49 pm, MK Z wrote: > Hello. > I need some help. Assuming I have three tables/objects: forum, forum > category, forum group. > > Forum - stores all topics posted by user. This object/table relates to

[appengine-java] Re: Multiple PersistenceManagerFactory with Singleton?

2011-08-09 Thread gk
Dimitry, that's a nice mystery... "final" on PMF doesn't seem to make a difference here. "static" members are implicitly "final" too, by the way ("static" and "static final" is equivalent). Class type inititialization (and thus static field initialization) is implicitly synchronized, so no worry

[appengine-java] Re: Full Text Feature - Google I/O 2011

2011-08-09 Thread gk
Pavel, are you referring to Kimchy's solution using Compass? What is Your expirience with larger indexes? Thanks! On Aug 9, 1:44 pm, Pavel Kaplin wrote: > This does not work on more or less large index. Actually, it works > only on lab-size data. > > On Aug 9, 12

[appengine-java] Re: Full Text Feature - Google I/O 2011

2011-08-08 Thread gk
Search functionality in Your GAE application? I recommend Kimchy's incredibly simple and good screencast: http://www.kimchy.org/searchable-google-appengine-with-compass/ On Aug 8, 4:50 pm, "Ikai Lan (Google)" wrote: > It's coming, but in general we don't give ETAs on unreleased features. > > (W

[appengine-java] Re: pdf creation problem

2011-08-04 Thread gk
Aug 4, 1:04 pm, vss wrote: > Thanks gk.. But now am using pdfjet jar, java sdk 1.5.0 now i hav the > exception of Fileoutputstream  cannot supported in gae, is there any > right way to rectify that.. how can i use Fileoutputstream , thanks in > advance > > On Aug 2,

[appengine-java] Re: pdf creation problem

2011-08-01 Thread gk
See http://code.google.com/p/googleappengine/wiki/WillItPlayInJava iText is listed therein as not supported - as are many packages that rely on the AWT framework / Graphics 2D. Google App Engine is here like most other "headless" environments. On Aug 1, 11:09 am, vss wrote: > I got error messag

[appengine-java] Re: Using async-session-persistence

2011-08-01 Thread gk
Greetings, still have not found any clues what could cause "async-session- persistence" tasks to fail with HTTP status code 415 (Unsupported Media Type). Any ideas? On Jul 27, 9:16 pm, gk wrote: > I am experimenting with queue-name="default"/> to store https sessi

[appengine-java] Re: Can my Google App receive Traffic from Single IP address

2011-07-31 Thread gk
Could using a custom error response page help you out? ...see http://code.google.com/appengine/docs/java/config/appconfig.html#Custom_Error_Responses It could display another site than the default one in case of a DoS error; that HTML page could use a META redirect to redirect the user to some mea

[appengine-java] Re: Channel Presence - HowTo ?

2011-07-28 Thread gk
Sébastien, you can register a servlet to handle the URL paths; this is done it the "WEB-INF/web.xml" file: handle_connect /_ah/channel/connected handle_connect org.example.MyConnectServlet MyConnectServlet.java does then the job: public c

[appengine-java] Using async-session-persistence

2011-07-28 Thread gk
I am experimenting with to store https session data; at first it seems to work fine with the "default" default queue settings; multithreading is switched on for the application. It appears that there is some kind of collision, as the tasks seem to succeed when the rate of incoming requests is low