Re: [appengine-java] A catch-all servlet?

2010-04-07 Thread John Patterson
You could create a filter that is mapped to /* and does a forward to your jsp. This one remembers the original path: public class ForwardFilter implements Filter { public static final String SERVLET_PATH = ForwardFilter.class.getName() + .servletPath; private String target;

[appengine-java] java.awt.Color is a restricted class

2010-04-07 Thread CodeMan
Hi, I am using JSF2.0 on AppEngine. I get the error below when I try to use a colorpicker utility. Is there a work around this error? Cheers CHINUA WARNING: /pages/addtemp.faces java.lang.NoClassDefFoundError: java.awt.Color is a restricted class. Please see the Google App Engine developer's

[appengine-java] ANN: Firefox add-on for tracking GAE estimated cost

2010-04-07 Thread radomir
Hi, I made a Firefox extension that collects estimated cost from App Engine response headers and shows the total in the Firefox status bar. If anyone's interested, the add-on can be downloaded from: http://radomirml.com/2010/04/06/track-appengine-estimated-cost-with-firefox-add-on Radomir --

[appengine-java] Using app's ELResolver class

2010-04-07 Thread alesj
I'm trying to use new EL api - version 2.2. - which knows how to deal with parameterized invocations; e.g. #{FooBarDAO.getInfos('alesj')}. Hence I'm bundling this new EL jars with my app. At runtime I get this java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/

[appengine-java] Re: Using app's ELResolver class

2010-04-07 Thread alesj
While this finds the right jar URL url = cl.getResource(META-INF/maven/javax.el/el-api/ pom.properties); String info = url.toExternalForm(); System.out.println(info = + info); // jar:file:/foobar/projects/foobar/trunk/server/target/

[appengine-java] Re: Java Mail Service

2010-04-07 Thread moissinac
Tried the following code MailService ms = MailServiceFactory.getMailService(); MailService.Message msg = new MailService.Message(); msg.setSubject(Tu as réussi cette étape); ms.sendToAdmins(msg); without more result. The code is executed in

[appengine-java] Re: Java Mail Service

2010-04-07 Thread moissinac
A trace on the code shows me that the line in the previous code ms.sendToAdmins(msg); fails So, my hypothesis is that a prerequisite is not fulfilled In the code, I use the Low Level API, which doesn't need a specific configuration (I believe it) In the log, I see 2585cpu_ms with a

[appengine-java] Re: A catch-all servlet?

2010-04-07 Thread Mark
John, thanks so much, this works. I added this as the filter: filter filter-nameforwardFilter/filter-name filter-classcom.markww.usermaps.server.ForwardFilter/filter- class init-param param-nametarget/param-name param-valueUserMaps.jsp/param-value /init-param

[appengine-java] Is it possible to have collections of embedded objects?

2010-04-07 Thread tempy
I have been dealing with lots of varying exceptions trying to implement/store a list of embedded objects. I found one post on this group claiming that this isn't supported (but the claim didn't come from someone at Google), and I saw no mention of lists of embedded objects in the google docs...

[appengine-java] Re: List of sub entities does not obay list order

2010-04-07 Thread Gunnar
Hi, Here are code for the entities MyEntity and SubEntity. Is anything wrong with the code? /Gunnar package appengine.test; import java.io.Serializable; import java.util.ArrayList; import javax.jdo.annotations.Element; import javax.jdo.annotations.Extension; import

[appengine-java] com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The API call mail.Send() took too long to respond and was cancelled.

2010-04-07 Thread Tristan
Hi, I get that ApiDeadlineExceededException happens sometimes, no problem (I am not exceeding 30s, exception happens after 6 seconds). The question I have is: When I use com.google.appengine.api.mail.MailService.send() and I receive the exception com.google.apphosting.api.ApiProxy

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Tristan
what do you mean by store a list of embedded objects? if you're storing in the datastore, you have to have a way to serialize whatever you got into one of the supported storable types. On Apr 7, 11:04 am, tempy fay...@gmail.com wrote: I have been dealing with lots of varying exceptions trying

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread John Patterson
On 8 Apr 2010, at 00:40, Tristan wrote: what do you mean by store a list of embedded objects? if you're storing in the datastore, you have to have a way to serialize whatever you got into one of the supported storable types. If you want to be able to query on the embedded instances then you

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread tempy
Well, what I need is something like this: @PersistenceCapable(detachable = true) public class Parent { @PersistenceCapable @EmbeddedOnly public class EmbeddedChild {...} @Embedded private ListEmbeddedChild Children; ... } This doesn't work, so... Do I

Re: [appengine-java] Re: Using app's ELResolver class

2010-04-07 Thread Joel Weight
I ran into this a few months ago when first getting jsf 2 going. Unfortunately I didn't find a resolution and wound up on the old EL version, so if you figure something out, please let us know. Thanks, Joel On Wed, Apr 7, 2010 at 5:10 AM, alesj ales.jus...@gmail.com wrote: While this finds

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Tristan
i work with low-level datastore api, so i serialize things myself, but essentially yes. The issue you're probably running into is that the thing that you're using to interact with the datastore, does not know how to store EmbeddedChild. I would start there. from low-level datastore api point of

[appengine-java] AppstatsServlet not working in 1.3.2, redirects to /stats

2010-04-07 Thread Viðar Svansson
Hi, I am trying out the now profiling stats in appengine using AppstatsServlet and AppstatsFilter. The filter seems to work just fine but the servlets mapped at /appstats/* just redirects to /stats. If I try to map it to /stats then it gets stuck in an infinite redirection loop. Also, what does

[appengine-java] Delay between Load Request and Filter Init

2010-04-07 Thread Jake
Hello, I'm currently using the Wicket Framework which is simply a javax.servlet.Filter. I have a quick little logging statement in the init() method of the filter which, I believe, is the absolute first thing that should run on a loading request. I've been working hard to minimize the startup

Re: [appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread Matt Hall
I'd say the average number of line items is around 100. So, the slowest request (but also the most common) is to show the 5 most recent items from all recent user orders. In JDO, I was doing that via a query for the orders, then a order.getItems() for each, then iterating in reverse for a few

[appengine-java] Re: com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The API call mail.Send() took too long to respond and was cancelled.

2010-04-07 Thread Tristan
I guess this covers the question http://groups.google.com/group/google-appengine/browse_thread/thread/189eecd6021b1bb4/ed1025f01b47e101 On Apr 7, 12:37 pm, Tristan tristan.slomin...@gmail.com wrote: Hi, I get that ApiDeadlineExceededException happens sometimes, no problem (I am not exceeding

[appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread datanucleus
I think if I were to do it all over again I'd either embed the items right in the order, or not use JDO at all and try to do some more manual caching and batch loading. A lot of time was spent learning how JDO was loading the items collection and then trying to get JDO to cache that

Re: [appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread Matt Hall
Ah, that's interesting. From what I could tell via appstats during my requests, in my 1-N relationship the L2 cache was only caching the individual objects, not the entire collection. So, two accesses of the same collection in two subsequent requests would require a round trip to the memcache for

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Jeff Schnitzer
You can serialize object graphs, but keep in mind that you won't be able to index/query this data and it will be opaque to the datastore viewer. It will also be opaque to GAE/Python tools. As John mentioned, you can get embedded object collections without Java serialization if you use Objectify

[appengine-java] Re: Server Error A server error has occurred. - Whilst Deleting app version.

2010-04-07 Thread Eurig Jones
mailmymove - version 1 http://www.mailmymove.com On Apr 5, 9:51 pm, Ikai L (Google) ika...@google.com wrote: What's your application ID and the version you are trying to delete? On Mon, Apr 5, 2010 at 11:20 AM, Eurig Jones eurigjo...@gmail.com wrote: Hi, I'm getting a... Server

[appengine-java] Re: having trouble implementing gwt in existing gae app

2010-04-07 Thread zackmac
Anybody have any thoughts on what I could be missing? On Apr 5, 9:24 pm, zackmac zack.macom...@gmail.com wrote: I'm using Eclipse 3.4.1, GAE 1.3.1 and trying to use GWT 2.0.3.  I've been working on my GAE app some time and that's working well - just want to spice up the front-end a little.  I

[appengine-java] Re: Adding Task-Queue Tasks in Batch?

2010-04-07 Thread Seth Ladd
Thanks! If under a transaction, are tasks added via batch still constrained to 5 per txn? On Apr 6, 11:53 am, Keith dunelmt...@googlemail.com wrote: Fromhttp://code.google.com/appengine/docs/java/javadoc/com/google/appengi... add(java.lang.IterableTaskOptions taskOptions)           Submits

[appengine-java] Re: java.lang.VerifyError

2010-04-07 Thread Shyam Visamsetty
Hi Karthik, Thanks a lot. It worked for me. Regards, Shyam. On Apr 5, 2:10 pm, KarthikR soumya.karth...@gmail.com wrote: Hi The issue has the following suggested workaround: --- start Comment 14 by neiltolson, Mar 30 (5 days ago) Just like mgo1977 said above, start

[appengine-java] Re: ANN: Firefox add-on for tracking GAE estimated cost

2010-04-07 Thread Trung
Great!!! On Apr 7, 5:00 pm, radomir radomi...@gmail.com wrote: Hi, I made a Firefox extension that collects estimated cost from App Engine response headers and shows the total in the Firefox status bar. If anyone's interested, the add-on can be downloaded

[google-appengine] Email from address

2010-04-07 Thread prgmratlarge
I understand that the best way to obtain the ability to send email from a specific address is to invite as a developer. I currently have a domain name using Google Apps, and I have one email account which receives email through various nicknames/aliases. I would like to know what the best way to

[google-appengine] Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Eze
Greetings! I have the feeling this is an old question, but I can't find a specific answer. Is it possible to host a Google App *only* in your custom domain www.example.com? I could understand this being a restriction on free accounts, but does it also apply to paying customers? Thanks! Eze --

[google-appengine] I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread NewUser
I run a small club and maintain the member roster which contains names, email, and phone numbers. This information is stored in a Google Spreadsheet that I have full access to. I'm trying to build a front end GUI I can use at our meetings. This app needs to be accessible via web. It will have a

[google-appengine] Disabling chunked transfer for blobstore requests

2010-04-07 Thread Adrian Holovaty
Hi there, When Google App Engine serves media files from the Blobstore, it sends a Transfer-Encoding: chunked header and doesn't include a Content- Length header. This means a client downloading the file cannot do useful things such as displaying a progress bar, because the client doesn't know

[google-appengine] Netbeans GWT GAE

2010-04-07 Thread Timofey Koolin
I like netbeans IDE and develop my test applications in it. But I have problem with add GWT in my GAE project - application not start listening 8080 or any other port. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group,

[google-appengine] Filter by Collection property issue

2010-04-07 Thread Petrov Aleksander
I have an entity with Collection property like this: class MyEntity{ ListString myStrCollection = new ArrayListString(); .other properties.. } Instance of MyEntity can contain myStrCollection property with 200 values; I have about 10 different indexes containing filter by

[google-appengine] cpu qoutas comsumed

2010-04-07 Thread alf
How can get data about quota comsumed accumulated. Similar data appear in dashboard. Best regards -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from

Re: [google-appengine] Re: Datastore Advice

2010-04-07 Thread Nick Johnson (Google)
On Tue, Apr 6, 2010 at 5:47 PM, timwhunt timwh...@gmail.com wrote: Thanks Nick!! So to make sure I understand: In the last step of your process for getting a list of unread articles, I'd first get the 'UserArticle' entities marked as Unread, and I'm assuming each UserArticle entity would

Re: [google-appengine] users.get_current_user() returns None

2010-04-07 Thread Wesley C (Google)
i see several of these errors. if get_current_user() returns None, it really does mean that whoever/whatever access that page isn't logged in. perhaps it's a TaskQueue task or some robot hitting your page. do you recognize the IP addresses in your log entries? for example, one of them is

Re: [google-appengine] Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Ulrich
Eze wrote: Greetings! I have the feeling this is an old question, but I can't find a specific answer. Is it possible to host a Google App *only* in your custom domain www.example.com? As far as I know, you can check the domain in your Python or Java application and redirect the user or a

Re: [google-appengine] AppEngine Query from your browser

2010-04-07 Thread Nick Johnson (Google)
Hi Dhruv, While this is an interesting project, providing direct access to the datastore from client-side code has very serious security implications. Any user can manipulate your data in any way, exposing private user data, modifying data, or erasing it. -Nick Johnson On Wed, Apr 7, 2010 at

[google-appengine] Avoiding email duplication

2010-04-07 Thread Janne Savukoski
Hello, We're having some problems with emails being sent multiple times. The core issue is that emails are being sent even if send_mail raises an error (DeadlineExceededError). (Same issue mentioned in

[google-appengine] A safer way to do dynamic property assignment?

2010-04-07 Thread J
I need to assign a value to a Model property but its name is not known until runtime. For illustrative purposes, say class Story(db.Model): title = db.StringProperty() body = db.TextProperty() s = Story(title=The Three Little Pigs) Since I wanted to decide on the property name at

[google-appengine] Re: A safer way to do dynamic property assignment?

2010-04-07 Thread Tim Hoffman
Hi Have a look at Expando as a base class for starters. http://code.google.com/appengine/docs/python/datastore/expandoclass.html And also you should avoid using exec/eval, use setattr and getattr http://docs.python.org/library/functions.html#setattr e.g.

Re: [google-appengine] A safer way to do dynamic property assignment?

2010-04-07 Thread Nick Johnson (Google)
Hi J, You can use getattr and setattr for dynamic property access: s = Story() setattr(s, 'title', 'The three little pigs') getattr(s, 'title') # Returns 'The three little pigs' On Wed, Apr 7, 2010 at 3:31 PM, J j.si...@earlystageit.com wrote: I need to assign a value to a Model property but

[google-appengine] Re: I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread Jake
Hello, There are quite a few questions in there that people will probably answer. One quick thing to clear up is that Google App Engine is a hosting service for web-applications programmed in either Python or Java. Java can be used to make many things, including standard programs, applets

[google-appengine] sending ics attachment in meeting notification

2010-04-07 Thread Ron
when sending an ics attachment with meeting information the header that comes through for the part is like this Content-Type: text/calendar MIME-Version: 1.0 Content-Disposition: attachment; filename=meeting.ics but it needs to be like this Content-Type: text/calendar; charset=utf-8;

[google-appengine] Beginner question

2010-04-07 Thread Vik_Sintus
sorry if I post this in the wrong place just starting to learn GWT using 'Glassfish Bundle For Eclipse' using step by step tutorials from GWT homepage and so far I manage to deploy the first simple sample app at http://bahasa-java.appspot.com/ during the last couple of days I manage to associate

[google-appengine] About GAE for Python startup problems

2010-04-07 Thread Nenya
hi, nice to meet you. I'm from china, and strived so much to go through the FAMOUS china great fire wall which blocks many and many sites , ex. google group and python/download. that's my complaint, ^...@^ now, i want to describe my problem, it's very strange. when i was in office, my

[google-appengine] google.appengine.api.mail.InvalidEmailError and invalid_email_reason

2010-04-07 Thread Dave
Hi- I was writing a request handler that sent an email address and was very surprised when my unit tests failed due to is_email_valid returning unexpected false positives. Upon further investigation of the sdk source[1], turns out that invalid_email_reason is doing a very very basic string

Re: [google-appengine] error using zk framework

2010-04-07 Thread shrimpy
Hello everyone, Does anyone know what are the locations of google app engine office??? Do all the app engine guys are in *Mountain *View California??? Thanks, Shrimpy. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this

[google-appengine] Re: unable to delete versions of App

2010-04-07 Thread mandar khadilk
Thanks. On Apr 6, 2:22 pm, Ikai L (Google) ika...@google.com wrote: I've filed a bug with the production team. They'll get around to it when they do a sweep of these ghost versions. You can have up to 100 versions, so these should not block you from continuing to develop. On Thu, Apr 1,

Re: [google-appengine] users.get_current_user() returns None

2010-04-07 Thread Alan Xing
Wesley, Sure there are robot clicks. The IP addresses you mentioned are indeed bots. However, there were quite many real human clicks that caused the problem. For instance, in the app id 'sa-beta' error log, there is the following entry: 03-15 03:07PM 52.148 /channel/ 500 949ms 330cpu_ms 9kb

[google-appengine] Re: Avoiding email duplication

2010-04-07 Thread Sharp-Developer.Net
Hi Janne, I also was thinking about this issue. The only idea I've got so far is to include on BCC a email address that will send the mail back to GAE handler and mark a email task in datastore as executed. Of course there should be some status change to IS_SENDING to wait for signal back. The

[google-appengine] Re: I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread Jonathan
My personal experience: For small applications I've gave up the server at all. All you need is mydomain.com and a Google site. Registering at name.com have an initial automated setup for google site. From this point on you already own a site (hosted by Google) with all the services you might need

Re: [google-appengine] Filter by Collection property issue

2010-04-07 Thread Ikai L (Google)
Yes, one index needs to be created per property. You can also set this field to unindexed if you do not need to search on this data. On Tue, Apr 6, 2010 at 9:50 AM, Petrov Aleksander ass.pet...@gmail.comwrote: I have an entity with Collection property like this: class MyEntity{ ListString

[google-appengine] Re: Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Brandon Thomson
Add something like this as WSGI middleware: class TestDenyMiddleware(object): def __init__(self, app): self.app = app def __call__(self, environ, start_response): sn = environ.get('SERVER_NAME', ) if 'appspot' in sn: start_response('403 Forbidden', [('Content-Type',

Re: [google-appengine] Beginner question

2010-04-07 Thread Ikai L (Google)
Looks like you're working with GWT and not App Engine. You'll want to ask on the Google Web Toolkit groups: https://groups.google.com/group/Google-Web-Toolkit?pli=1 On Wed, Apr 7, 2010 at 1:57 AM, Vik_Sintus miskintapisomb...@yahoo.comwrote: sorry if I post this in the wrong place just

Re: [google-appengine] sending ics attachment in meeting notification

2010-04-07 Thread Ikai L (Google)
You should be able to set the content type header on a response. Can you post your code if you're doing this and it isn't happening? On Wed, Apr 7, 2010 at 3:10 AM, Ron ronsterc...@gmail.com wrote: when sending an ics attachment with meeting information the header that comes through for the

[google-appengine] Re: Datastore Advice

2010-04-07 Thread timwhunt
Thanks again Nick! That helps a lot and I really appreciate it! I watched Brett's Google IO video and what you suggest sounds very efficient. I have to study up on keys a little to make sure I understand how to achieve: the key name of the UserArticle could be the same as the key name of the

[google-appengine] Plead: help me download my app code

2010-04-07 Thread Ricardo Sánchez-Sáez
Hello, I reckon this has been asked many times, and the general answer is that we should use a code revision or backup tool. I recently got my laptop stolen, and hadn't been careful enough with my backups. Can somebody at Google help me recover my code? I found a tricky way to do this, but I am

[google-appengine] Re: AppEngine Query from your browser

2010-04-07 Thread dhruvbird
On Apr 7, 5:18 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Dhruv, While this is an interesting project, providing direct access to the datastore from client-side code has very serious security implications. Any user can manipulate your data in any way, exposing private user