[appengine-java] @Nick - ClassCastException on dev server when using ApiProxy to implement Multi tenancy

2010-04-23 Thread Krishna
Nick (and others who may be able to help),

When I tried to implement multi tenancy in my application by following
what was described at 
http://blog.notdot.net/2009/11/App-Engine-Java-API-call-hooks,
I got the following exception on my dev server while trying to access
localhost/_ah/admin:

java.lang.ClassCastException:
com.sshrin.playground.server.ApiProxyHook cannot be cast to
com.google.appengine.tools.development.ApiProxyLocal
at
com.google.apphosting.utils.servlet.DatastoreViewerServlet.getSchema(DatastoreViewerServlet.java:
146)
at
com.google.apphosting.utils.servlet.DatastoreViewerServlet.doGetDatastoreViewer(DatastoreViewerServlet.java:
207)
at
com.google.apphosting.utils.servlet.DatastoreViewerServlet.doGet(DatastoreViewerServlet.java:
194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.sshrin.playground.server.MultiTenantFilter.doFilter(MultiTenantFilter.java:
32)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Apr 23, 2010 7:20:14 PM
com.google.appengine.tools.development.LocalResourceFileServlet doGet


Now, from the stack trace, it looks like this is a dev server specific
issue and I've actually confirmed that my code works correctly in
production. However, I'd really like to be able to browse the local
datastore on the dev server and am wondering if there is a workaround
for this?

Thanks,

Krishna

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Distributed cache that are globally available, really?

2010-04-23 Thread Phuong Nguyen
>From the document, I found this is how my application obtain the
cache:
cache = cacheFactory.createCache(Collections.emptyMap());

try {
cache =
CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
// ...
}

That means that when my JVM started, it try to create a cache
associate with an empty map.

I have read some guys wrote that the cache will be globally available.
Mean that if my app started from JVM#1, JVM#2, then they can read and
write on the same memcache.

Well, it just doesn't make sense to me when I look at the above code.

Does it make sense to you? If it does, then how would you explain the
Collections.emptyMap() passed as an argument to createCache?

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Datastore size growing one way

2010-04-23 Thread vinothkumar
classifs

On Apr 24, 4:21 am, "Ikai L (Google)"  wrote:
> What's your application ID?
>
> On Wed, Apr 21, 2010 at 8:54 PM, vinothkumar wrote:
>
>
>
>
>
> > Thanks Ikai for a prompt response!
>
> > Its been more than 24hours now and the datstore still shows up as 40%
> > of 1GB usage.
>
> > Generally, how long does it take to update?
>
> > Also, in the past even when I delete significant amount of data from
> > datastore, the datastore size never went down.
>
> > However, the datastore statistics reflected the deletes.
>
> > Is there anything else that occupies datastore size apart from
> > datastore entities and indexes?
>
> > If I delete all the indexes, will my datastore size match datastore
> > statistics?
>
> > On Apr 22, 4:32 am, "Ikai L (Google)"  wrote:
> > > When did you delete the indexes? The dashboard isn't updated in real
> > time.
> > > It's updated with background tasks, so may take a bit to update depending
> > on
> > > load.
>
> > > On Wed, Apr 21, 2010 at 9:21 AM, vinothkumar  > >wrote:
>
> > > > I have the datastore growing in only one way up...
>
> > > > The datastore size shows the size of all entities as 116 MB...
>
> > > > However, the total stored data shows up as 40% of 1GB..
>
> > > > The data that are being deleted are not reflected in the total stored
> > > > data size.
>
> > > > I had around 8 indexes, deleted 4 indexes using vacuum_indexes of
> > > > python appcfg utility.
>
> > > > However, the total stored data still shows up as 40%..
>
> > > > Please advice what should be done to have the datastore quota reflect
> > > > the actual size?
>
> > > > --
> > > > 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...@googlegroups.com > > >  unsubscr...@googlegroups.com> > unsubscr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > Ikai Lan
> > > Developer Relations, Google App Engine
> > > Twitter:http://twitter.com/ikai
> > > Delicious:http://delicious.com/ikailan
>
> > > 
> > > Google App Engine links:
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine
>
> > > --
> > > 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...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > 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...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> 
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] What is the package for Cache & CacheManager

2010-04-23 Thread Phuong Nguyen
>From the document, it said that the interfaces & classes (Cache,
CacheManager) should be in package net.sf.jsr107.
However, I couldn't find these interfaces and classes in the GAE 1.3.2
SDK, but rather, I found them in javax.cache.
Is it the document obsolete or...?

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



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

2010-04-23 Thread CodeMan
Hi,

Can you please take a look at this error.It has been pending for many
days and I really don't have any clue. This code works fine on my
local machine but when deployed it throws exceptions.

This is the class that genarates the error.

@ManagedBean()
@SessionScoped
public class MyTemplates implements java.io.Serializable{
Template template;
String text;
List templates;
String owner;

public String getMyTemplates(){
this.owner=this.getUser("getMyTemplates");
PersistenceManager pm = PMF.get().getPersistenceManager();//
String query = "select from " + Template.class.getName() + "
where owner=='"+owner+"' ";//order by name
this.templates = (List) pm.newQuery(query).execute();
int n=templates.size();
if(n==0) this.text="No Templates";
else this.text="";
System.out.print("Got Tempaltes::"+n);
return "viewtemp.xhtml";
}

--setters--
--getters--
}

Template has the following definition

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Template implements java.io.Serializable{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
String name;
@Persistent
String description;
@Persistent
String height;
@Persistent
String width;
@Persistent
String fontcolor;
@Persistent
String bgcolor;
@Persistent
String owner;

--setters--
--getters--
}

Here is the error:

#

1.
04-19 01:42PM 52.901 /pages/newcbx.faces 500 18322ms 24015cpu_ms
40api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.0.17) Gecko/2009122116 Firefox/3.0.17 (.NET CLR
3.5.30729),gzip(gfe)
See details

98.229.74.17 - - [19/Apr/2010:13:43:11 -0700] "POST /pages/
newcbx.faces HTTP/1.1" 500 0 "http://ezcomment.appspot.com/pages/
dusers.faces" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.0.17) Gecko/2009122116 Firefox/3.0.17 (.NET CLR
3.5.30729),gzip(gfe)" "ezcomment.appspot.com"

2.
W 04-19 01:43PM 02.874

[ezcomment/1.341368964543160070].: SystemId Unknown;
Line #57; Column #31; Failed calling setMethod method


3.
W 04-19 01:43PM 03.367

[ezcomment/1.341368964543160070].: SystemId Unknown;
Line #57; Column #31; Failed calling setMethod method


4.
W 04-19 01:43PM 11.177

/pages/newcbx.faces
java.lang.RuntimeException: java.io.NotSerializableException:
org.datanucleus.store.appengine.query.DatastoreQuery$2
at
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
361)
at
com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java:
341)
at com.google.apphosting.runtime.jetty.SessionManager
$AppEngineSession.save(SessionManager.java:162)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
41)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
243)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5485)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5483)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at
com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:
369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnecti

Re: [appengine-java] Wildcard root url-pattern and 1.3.3

2010-04-23 Thread Christian Goudreau
It's failling for everyone. You just have to go back to 1.3.2.

Someone from google answered in a post that they're working on that issue.

Christian

On Fri, Apr 23, 2010 at 11:06 PM, Millisecond  wrote:

> Trying to deploy my app (noticeorange) with the 1.3.3 runtime is
> giving me some hiccups with my main servlet mapping.  I map all
> requests into this one servlet and then figure stuff out from there.
>
> Has worked fine until just now when I tried to upgrade my dev
> environment to 1.3.3.  Only / is mapping to the servlet with either of
> these two entries in web.xml:
>
>
>notice
>/
>
>
> OR:
>
>
>notice
>/*
>
>
> Is there some other way to do this now?  Is it failing for other
> people or just me?
>
> Thanks,
> -Casey
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Handling concurrent modification

2010-04-23 Thread Phuong Nguyen
Hi Chau:
Thanks for your tips. I've also found one in there:
http://appengine-cookbook.appspot.com/recipe/mutex-using-memcache-api/
Pretty good solution to try, though.

On Apr 23, 9:53 pm, Chau Huynh  wrote:
> Maybe you can look into low level API to obtain a 
> "lock"http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> There're also sample implementation using this posted in the 
> grouphttps://groups.google.com/group/google-appengine/browse_thread/thread...
>
> On Fri, Apr 23, 2010 at 11:23 AM, Phuong Nguyen wrote:
>
>
>
> > Hi guys:
> > I'm creating an app that I need to deal with concurrent modification of
> > object.
> > Given I have an object that I need to store on memcache.
> > Now, given my user base would be big enough for two request to arrive
> > simultaneously at  two different servers in the cloud.
> > So, in order to modify the object, the server #1 that receive request fetch
> > the object from memcache (Correct me if I'm wrong: this will deserialized
> > raw data on memcache in to Java Object on Server #1 JVM), modify it and then
> > put it back to memcache (which in turn serialize the object).
> > At the same time, server #2 tried to modify the object on memcache.
>
> > Under this scenario: Server #1 fetch object> Server #2 fetch object >
> > Server #1 store object > Server #2 store object
> > Then all changes make by Server #1 will be overrided by Server #2.
>
> > If these 2 requests happen on the same Server (and in effect, the same
> > JVM), then I believe the use of synchronized access will help. But in case
> > they happen on different server, then I don't know how to handle them yet.
>
> > Would you guys advice me on that?
> > 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
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Handling concurrent modification

2010-04-23 Thread Phuong Nguyen
Hi James,
Thanks for pointing out. But please forgive my bad, what is CAS?
(I'm keeping the object for some modification before actually write it
to the Datastore)

On Apr 23, 8:00 pm, James  wrote:
> It sounds like you're looking for memcached CAS 
> -http://groups.google.com/group/memcached/browse_thread/thread/b98fc70...
>
> Of course, this all begs the question of what you do if your data is
> expunged from memcached.  Are you not also writing to the datastore
> (which has its own concurrency mgmt for cases like these)?
>
> James
>
> On Apr 23, 12:23 am, Phuong Nguyen  wrote:
>
>
>
> > Hi guys:
> > I'm creating an app that I need to deal with concurrent modification of
> > object.
> > Given I have an object that I need to store on memcache.
> > Now, given my user base would be big enough for two request to arrive
> > simultaneously at  two different servers in the cloud.
> > So, in order to modify the object, the server #1 that receive request
> > fetch the object from memcache (Correct me if I'm wrong: this will
> > deserialized raw data on memcache in to Java Object on Server #1 JVM),
> > modify it and then put it back to memcache (which in turn serialize the
> > object).
> > At the same time, server #2 tried to modify the object on memcache.
>
> > Under this scenario: Server #1 fetch object> Server #2 fetch object >
> > Server #1 store object > Server #2 store object
> > Then all changes make by Server #1 will be overrided by Server #2.
>
> > If these 2 requests happen on the same Server (and in effect, the same
> > JVM), then I believe the use of synchronized access will help. But in
> > case they happen on different server, then I don't know how to handle
> > them yet.
>
> > Would you guys advice me on that?
> > 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 google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Wildcard root url-pattern and 1.3.3

2010-04-23 Thread Millisecond
Trying to deploy my app (noticeorange) with the 1.3.3 runtime is
giving me some hiccups with my main servlet mapping.  I map all
requests into this one servlet and then figure stuff out from there.

Has worked fine until just now when I tried to upgrade my dev
environment to 1.3.3.  Only / is mapping to the servlet with either of
these two entries in web.xml:


notice
/


OR:


notice
/*


Is there some other way to do this now?  Is it failing for other
people or just me?

Thanks,
-Casey

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Mobile login with Google Accounts

2010-04-23 Thread TM
Added to issue tracker #3144.

On Apr 23, 5:29 pm, "Ikai L (Google)"  wrote:
> Can you file a bug here in our issues tracker?
>
> http://code.google.com/p/googleappengine/issues/list
>
>
>
>
>
> On Fri, Apr 23, 2010 at 12:56 AM, TM  wrote:
> > I've noticed that if you log into a GAE App via a mobile device you
> > get "Sign in to Google App Engine with your Google Account" as the
> > login text.  I would like it to read "Sign in to *AppName* with your
> > Google Account". Logging in via a normal browser picks up the
> > application name within it's login text: "*AppName* uses Google
> > Accounts for Sign in"
>
> > Is it possible to change this for mobile devices?
>
> > --
> > 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...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> 
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Java Mail API receiving emails on different versions

2010-04-23 Thread Yaw
Hi,

Is it possible to send an email just to a particular version of the
app and not the default?

str...@appid.appspotmail.com

Suppose appid = version.appid?

Otherwise it makes it difficult to do 'dev' testing before making it
'live' for new mail functionality.

And, there is no function to attach files in the dev admin console.


Thanks!

Yaw.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Geocoding API quickly throwing OVER_QUERY_LIMIT error

2010-04-23 Thread Sekhar
The geocoding API is throwing OVER_QUERY_LIMIT error after just one or
two queries for me. The problem is intermittent (was failing
consistently and then worked OK for some time just now). This is
happening only in production, there doesn't seem to be any such
problem in my dev server. I guess this is similar to what was
discussed in http://goo.gl/Zl4M, but looks like that one was fixed.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] NullPointerException on URLFetchService

2010-04-23 Thread hector
I'm sometimes getting a NullPointerException when using the
URLFetchService to a web service running on another appspot.  In these
cases the request does not show up in the other appspot's logs.

If I make this request from the command-line, it works fine and I can
see the request in the logs.

I'm also using the URLFetchService to access other web services NOT
running on appspot, and those are working fine.

This exception was happening yesterday, then magically went away.  Now
its showing up again.


---

java.lang.NullPointerException
at com.google.appengine.api.urlfetch.URLFetchServicePb$URLFetchRequest
$Header$Builder.setValue(URLFetchServicePb.java:756)
at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertToPb(URLFetchServiceImpl.java:
147)
at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:
30)
at
org.systemsbiology.addama.coresvcs.gae.filters.CheckAccessFilter.doFilter(CheckAccessFilter.java:
68)

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Mobile login with Google Accounts

2010-04-23 Thread Ikai L (Google)
Can you file a bug here in our issues tracker?

http://code.google.com/p/googleappengine/issues/list

On Fri, Apr 23, 2010 at 12:56 AM, TM  wrote:

> I've noticed that if you log into a GAE App via a mobile device you
> get "Sign in to Google App Engine with your Google Account" as the
> login text.  I would like it to read "Sign in to *AppName* with your
> Google Account". Logging in via a normal browser picks up the
> application name within it's login text: "*AppName* uses Google
> Accounts for Sign in"
>
> Is it possible to change this for mobile devices?
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Indexes for one field

2010-04-23 Thread Ikai L (Google)
No, we haven't exposed these in the dashboard. There are a few different
feature requests in the App Engine Issue Tracker for this (search for
index/indexes - doesn't look like we do stemming right in the tracker
search, sigh):

http://code.google.com/p/googleappengine/issues/list

You'll want to find the ones that seem reasonable and star them.

On Wed, Apr 21, 2010 at 10:29 PM, Timofey Koolin  wrote:

> Can I see how mach space take one-field indexes and every index - for
> decide about delete some indexes and monitoring for indexes that i
> don't want create (for example if i forgot add gae.unindexed in JDO or
> make mistake in it).
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Datastore size growing one way

2010-04-23 Thread Ikai L (Google)
What's your application ID?

On Wed, Apr 21, 2010 at 8:54 PM, vinothkumar wrote:

> Thanks Ikai for a prompt response!
>
> Its been more than 24hours now and the datstore still shows up as 40%
> of 1GB usage.
>
> Generally, how long does it take to update?
>
> Also, in the past even when I delete significant amount of data from
> datastore, the datastore size never went down.
>
> However, the datastore statistics reflected the deletes.
>
> Is there anything else that occupies datastore size apart from
> datastore entities and indexes?
>
> If I delete all the indexes, will my datastore size match datastore
> statistics?
>
>
> On Apr 22, 4:32 am, "Ikai L (Google)"  wrote:
> > When did you delete the indexes? The dashboard isn't updated in real
> time.
> > It's updated with background tasks, so may take a bit to update depending
> on
> > load.
> >
> > On Wed, Apr 21, 2010 at 9:21 AM, vinothkumar  >wrote:
> >
> >
> >
> >
> >
> > > I have the datastore growing in only one way up...
> >
> > > The datastore size shows the size of all entities as 116 MB...
> >
> > > However, the total stored data shows up as 40% of 1GB..
> >
> > > The data that are being deleted are not reflected in the total stored
> > > data size.
> >
> > > I had around 8 indexes, deleted 4 indexes using vacuum_indexes of
> > > python appcfg utility.
> >
> > > However, the total stored data still shows up as 40%..
> >
> > > Please advice what should be done to have the datastore quota reflect
> > > the actual size?
> >
> > > --
> > > 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...@googlegroups.com unsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > --
> > Ikai Lan
> > Developer Relations, Google App Engine
> > Twitter:http://twitter.com/ikai
> > Delicious:http://delicious.com/ikailan
> >
> > 
> > Google App Engine links:
> > Blog:http://googleappengine.blogspot.com
> > Twitter:http://twitter.com/app_engine
> > Reddit:http://www.reddit.com/r/appengine
> >
> > --
> > 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...@googlegroups.com
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Servlet filter does not work on SDK 1.3.3

2010-04-23 Thread Ikai L (Google)
This is being reported in another thread - there are issues with the filter
/* in 1.3.3 when deployed. The workaround is to deploy with 1.3.2.

A fix will be coming out shortly for the 1.3.3 SDK.

On Fri, Apr 23, 2010 at 1:49 AM, Mabuse  wrote:

> Hi
>
> I've the same problem with ServletFilters. I'm using Gaelyk's URL-
> Routing and it doesn't work with 1.3.3 but with 1.3.2.
> Is there an open issue?
>
> Stefan
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] May I suggest ... (was: Broken URL Mapping in GAE 1.3.3 ?)

2010-04-23 Thread Ikai L (Google)
I'd feel annoyed, and Windows does do that (forced restart, AHH).

I don't think we force you to update, though. The SDK just nags you. I've
got Python projects running 1.3.0.

On Fri, Apr 23, 2010 at 6:26 AM, Guillermo Schwarz <
guillermo.schw...@gmail.com> wrote:

> May I suggest that when a new version of gae is available, people can
> choose which apps to migrate to the new version for some time, until
> the old versions become unsupported?
>
> For example, if 1.3.3 just came out, we could have 4 different
> versions of gae to choose: 1.3.3, 1.3.2, 1.3.1 and 1.3.0. When 1.3.4
> finally arrives, all apps in version 1.3.0 et automatically migrated
> to 1.3.1. Would that work for you?
>
> To close my argument, imagine if Windows updated itself without
> warning every so often. How would you feel about that?
>
> Cheers,
> Guillermo.
>
> On 23 abr, 06:52, Miroslav Genov  wrote:
> > Starred.
> >
> > Thanks for the assitance keyelo. I hope that problem will soon be
> removed.
> >
> > Regards,
> >   Miroslav
> >
> > On 04/23/2010 01:48 PM, kinyelo wrote:
> >
> > > Issue opened
> > >http://code.google.com/p/googleappengine/issues/detail?id=3138
> >
> > --
> > 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...@googlegroups.com
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Database cursor for "back" cursor?

2010-04-23 Thread boustanihani
To achieve this I am saving all corsors (in an ArrayList) on
the Client and reusing them for getting bachward pages :) ... this
works! What do u think?

On 2 Apr., 21:57, Arny  wrote:
> Hi,
>
> Is there a way to get acursorto pagebackto a previous page?
> If not, whats the point of paging forward only? I'm not building an
> ajax page.
>
> Regards

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] QueueFactory and NoClassDefFoundError

2010-04-23 Thread Felipe Quintella Correia
Hi Max,

Apparently it was on the classpath, but just after I added this line of code
to the projected it stopped complaining about the missing class definition,
and now, even after I deleted the print code it continue to run just fine =)
I don't know why, but it solved my problem! Hehe

Thanks again, and if you want to see the print from the java.class.path,
here it is:
http://paste.ideaslabs.com/show/EKmKrlCsAX


Felipe Quintella


2010/4/23 Max Ross (Google)

>

> Hi Felipe,
>
> Can you print out the value of System.getProperty("java.class.path") while
> the app is running and see if that jar is listed?
>
> On Fri, Apr 23, 2010 at 1:56 PM, Felipe Quintella Correia <
> felipequintell...@gmail.com> wrote:
>
>> Hello again.
>>
>> Well, unless I'm overseeing something, I'm pretty sure that the
>> appengine-api-labs.jar is on my runtime classpath...
>> I'm joining 2 printscreens to confirm (if it is allowed), but I think
>> that's it... I have App Engine SDK 1.3.2 on my classpath, and the App Engine
>> SDK has appengine-api-labs-1.3.2.jar in it.
>>
>> Sorry for the newbie question, but I am stuck on it.
>>
>> Thank you again,
>> Felipe Quintella
>>
>> PS: if joined files are not allowed, check the screens on this 2 links:
>>
>> http://dl.dropbox.com/u/5958704/Screen%20shot%202010-04-23%20at%2017.50.11.png
>>
>> http://dl.dropbox.com/u/5958704/Screen%20shot%202010-04-23%20at%2017.50.28.png
>>
>> 2010/4/22 Felipe Quintella Correia 
>>
>> I'll be sure it's on the runtime classpath as soon as I am home.
>>>
>>> Thank you
>>> Felipe Quintella
>>>
>>>
>>> 2010/4/22 Max Ross (Google) 
>>> 
>>> >
>>>
>>> Make sure appengine-api-labs.jar is on your runtime classpath.

 Max

 On Wed, Apr 21, 2010 at 9:00 PM, Felipe Quintella <
 felipequintell...@gmail.com> wrote:

> Hello there.
>
> I'm new to Google AppEngine, but I'm already searched and can't find
> the answer to my problem.
>
> I am trying to add a task to the default taskqueue, but i keep getting
> a NoClassDefFoundError with the QueueFactory class...
>
> I can't find what the problem is. I have App Engine SDK 1.3.2 added as
> a library, and have imported the QueueFactory successfully...
>
> Maybe you can enlighten me.
>
> Looking forward to your answer,
> Thank you.
>
> Felipe Quintella.
>
>
> Error:
> HTTP ERROR 500
>
> Problem accessing /canalparser. Reason:
>
>com/google/appengine/api/labs/taskqueue/QueueFactory
>
> Caused by:
>
> java.lang.NoClassDefFoundError: com/google/appengine/api/labs/
> taskqueue/QueueFactory
>at
> braziltvguide.ParseCanaisServlet.doGet(ParseCanaisServlet.java:
> 108)
>
>
>
> Part of the code with the problem:
> import com.google.appengine.api.labs.taskqueue.Queue;
> import com.google.appengine.api.labs.taskqueue.QueueFactory;
>
>
> import static
> com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.*;
>
> if (req.getParameter("task") == null) {
>Queue queue =
> QueueFactory.getDefaultQueue();
>
>
>  queue.add(url("/canalparser?tipo=getProgramas&task=1"));
>}
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
  --
 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...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

>>>
>>>
>>  --
>> 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...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.co

Re: [appengine-java] QueueFactory and NoClassDefFoundError

2010-04-23 Thread Max Ross (Google)
Hi Felipe,

Can you print out the value of System.getProperty("java.class.path") while
the app is running and see if that jar is listed?

On Fri, Apr 23, 2010 at 1:56 PM, Felipe Quintella Correia <
felipequintell...@gmail.com> wrote:

> Hello again.
>
> Well, unless I'm overseeing something, I'm pretty sure that the
> appengine-api-labs.jar is on my runtime classpath...
> I'm joining 2 printscreens to confirm (if it is allowed), but I think
> that's it... I have App Engine SDK 1.3.2 on my classpath, and the App Engine
> SDK has appengine-api-labs-1.3.2.jar in it.
>
> Sorry for the newbie question, but I am stuck on it.
>
> Thank you again,
> Felipe Quintella
>
> PS: if joined files are not allowed, check the screens on this 2 links:
>
> http://dl.dropbox.com/u/5958704/Screen%20shot%202010-04-23%20at%2017.50.11.png
>
> http://dl.dropbox.com/u/5958704/Screen%20shot%202010-04-23%20at%2017.50.28.png
>
> 2010/4/22 Felipe Quintella Correia 
>
> I'll be sure it's on the runtime classpath as soon as I am home.
>>
>> Thank you
>> Felipe Quintella
>>
>>
>> 2010/4/22 Max Ross (Google) 
>> 
>> >
>>
>> Make sure appengine-api-labs.jar is on your runtime classpath.
>>>
>>> Max
>>>
>>> On Wed, Apr 21, 2010 at 9:00 PM, Felipe Quintella <
>>> felipequintell...@gmail.com> wrote:
>>>
 Hello there.

 I'm new to Google AppEngine, but I'm already searched and can't find
 the answer to my problem.

 I am trying to add a task to the default taskqueue, but i keep getting
 a NoClassDefFoundError with the QueueFactory class...

 I can't find what the problem is. I have App Engine SDK 1.3.2 added as
 a library, and have imported the QueueFactory successfully...

 Maybe you can enlighten me.

 Looking forward to your answer,
 Thank you.

 Felipe Quintella.


 Error:
 HTTP ERROR 500

 Problem accessing /canalparser. Reason:

com/google/appengine/api/labs/taskqueue/QueueFactory

 Caused by:

 java.lang.NoClassDefFoundError: com/google/appengine/api/labs/
 taskqueue/QueueFactory
at
 braziltvguide.ParseCanaisServlet.doGet(ParseCanaisServlet.java:
 108)



 Part of the code with the problem:
 import com.google.appengine.api.labs.taskqueue.Queue;
 import com.google.appengine.api.labs.taskqueue.QueueFactory;


 import static
 com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.*;

 if (req.getParameter("task") == null) {
Queue queue =
 QueueFactory.getDefaultQueue();


  queue.add(url("/canalparser?tipo=getProgramas&task=1"));
}

 --
 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...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


>>>  --
>>> 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...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>
>  --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Max Ross (Google)
 The difference between 2 seconds and immediate isn't much.  How are you
measuring?  Do you have logs that show the time at which the task was
enqueued and the time at which it executes?

Thanks,
Max

On Fri, Apr 23, 2010 at 12:31 PM, Fabrizio  wrote:

> Production.
>
>
> On Apr 23, 3:02 pm, James  wrote:
> > Are you seeing this on the dev server or in production?  I vaguely
> > recall reading somewhere that the dev server always executes
> > immediately(??).
> >
> > James
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Fabrizio
Production.


On Apr 23, 3:02 pm, James  wrote:
> Are you seeing this on the dev server or in production?  I vaguely
> recall reading somewhere that the dev server always executes
> immediately(??).
>
> James

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Fabrizio
delay = 2000


On Apr 23, 12:03 am, "Max Ross (Google)" 
wrote:
> What is the value of the delay variable?

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: escape characters in strings (maybe related to Broken URL Mapping in GAE 1.3.3 ? )

2010-04-23 Thread Thatcher
It appears, in fact that any file I load via a straight filereader or
a url connection is having the back-slash character escaped so \n
becomes \\n for example if my source file had

var foo = "this is a pig \n oink, oink";

then loading the file into a string is actually

var foo = "this is a pig \\n oink, oink";

this can be demonstrated clearly with the following test:
locally
print("\\".length)
1

on gae
print("\\".length)
2

which means the script text was translated to
print("".length)

Why has this changed recently, or am I crazy, or both?
Thatcher

On Apr 23, 1:21 pm, Thatcher  wrote:
> Im currently getting escape sequences in rendered strings instead of
> the expected result (eg a newline or tab).  It also breaks regular
> expression that are compiled from a string instead of regex literals
> (this is actually javascript source running with rhino on gae).  I saw
> several posts that recently that are showing 1.3.3 has broken a lot of
> folks url mappings etc and it's making suspicious that my issue is
> related.
>
> I dont have any problems in the development server, only when I
> deploy, and since I have many existing apps built with the same tool
> chain I spent a couple days chasing my tail.
>
> Any ideas?
>
> Here's a concrete example, I used to get a json response like
> {
>     "foo": "blah",
>
> but now I get
>
> {\n\t"foo": "blah",
>
> and the content-type is still text/javascript; charset=utf-8
>
> Any ideas?
> Thatcher
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Error message after updating AppEngine in my project

2010-04-23 Thread TiagoP
Same problem here. Any solution? How do I downgrade my plugin version?

On Apr 22, 5:24 am, 时空之蕊  wrote:
> Me too have the misstake!
> It's not effect gae application running!but it's :(
>
> ubuntu 9.10 64b,Eclipse 3.5,GAE 1.3.3,jdk1.6.20
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-23 Thread Henri
The problem may be related to the Vaadin eclipse plugin. See
http://dev.vaadin.com/ticket/4596

--
Henri Muurimaa

On Apr 20, 9:02 am, Dannemano  wrote:
> Note, I am also MacOSX snow leopard. I have been hacking away in App
> Engine and Vaadin before 1.3.2 and it has been working flawlessly.
>
> I tried moving the project to a newly downloaded copy of Eclipse (the
> JavaEE development version) and then installing Google Plugin.
> The same issue as described above.
>
> After reinstalling and trying different order in how I set the App
> Engine SDK for the project I got it working. Instead I now receive
> warnings:
>
> Description     Resource        Path    Location        Type
> The App Engine SDK JAR appengine-api-1.0-sdk-1.3.2.jar is missing in
> the WEB-INF/lib directory
>
> If I run the project now with the development server I get this
> runtime issue:
>
> HTTP ERROR 500
> Problem accessing /. Reason:
> com/google/appengine/api/datastore/EntityNotFoundException
> Caused by:
> java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/
> EntityNotFoundException
>
> So clearly the dev-server cannot find the libraries and this is the
> point where I am currently stuck. If I use the J2EE Module
> Dependencies to export the App Engine required libs to WEB-INF/lib
> then the App Engine SDK gets messed up for the project and I am back
> to the starting point where the SDK is permanently set to
> "{project.home}/war"
>
> Any ideas? Can it be a bug in the Google plugin itself for MacOS?
>
> Regards,
> Daniel
>
> On 19 Apr, 19:18, Moritz  wrote:
>
>
>
> > No.
>
> > Miguel asked for an example project for reproduction, but in each and
> > every project I try to enable appengine support, I get the same
> > problem and the SDK is permanently set to "{project.home}/war" and I'm
> > not able to change it.
>
> > My solution is to get rid of the Eclipse plugin and use the Maven
> > plugin instead. Maven is better anyway - unfortunately not officially
> > supported by Google.
>
> > Moritz
>
> > P.S.: I'm using Eclipse on Mac OS X 10.6.3
>
> > On 19 Apr., 13:00, Dannemano  wrote:
>
> > > Hi,
>
> > > Any updates on the bug? I have the exact same problems and have been
> > > unable to fix it.
>
> > > Regards,
> > > Daniel
>
> > > On 5 Apr, 15:04, Miguel Méndez  wrote:
>
> > > > Can you file a bug with a project that reproduces the problem?  I think 
> > > > that
> > > > will be the best way to get to bottom of what is going on.
>
> > > --
> > > 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...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] org.datanucleus.store.appengine.FatalNucleusUserException

2010-04-23 Thread Chau Huynh
"This is not a valid representation of a primary key for an instance of
com.appenginedatastore.model.Gift.'
The error message looks self explainable, and you should check if
EntityManager.find(Gift, Long) was called.
As tip for debug, I would suggest to call find() with an id value you know
of existence.
If OK, you're confident that your DAO class did not pass the expect key.
Thanks.

On Fri, Apr 23, 2010 at 1:26 PM, vathanak mao  wrote:

> Hi, i got an error as below:
>
> javax.persistence.PersistenceException:
> org.datanucleus.store.appengine.FatalNucleusUserException: Received a
> request to find
>  an object of type com.appenginedatastore.model.Gift identified by
> com.appenginedatastore.model.g...@c3362f.  This is not a v
> alid representation of a primary key for an instance of
> com.appenginedatastore.model.Gift.
>at
>
> org.datanucleus.store.appengine.jpa.DatastoreEntityManager.find(DatastoreEntityManager.java:
> 54)
>at
> com.appenginedatastore.dao.GenericDAO.findById(GenericDAO.java:60)
>at
> com.appenginedatastore.dao.GenericDAO.findAll(GenericDAO.java:79)
>at
> com.appenginedatastore.manager.GiftManager.getGifts(GiftManager.java:
> 86)
>at org.apache.jsp.gifts_jsp._jspService(gifts_jsp.java:68)
>at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 806)
>at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
> 324)
>at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 292)
>at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>at
> com.google.appengine.tools.development.PrivilegedJspServlet.access
> $101(PrivilegedJspServlet.java:23)
>at com.google.appengine.tools.development.PrivilegedJspServlet
> $2.run(PrivilegedJspServlet.java:59)
>at java.security.AccessController.doPrivileged(Native Method)
>at
>
> com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:
> 57)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 806)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1166)
>at
>
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
> 51)
>at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>at
>
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
> 43)
>at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>at
>
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
> 122)
>at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 388)
>at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 182)
>at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)
>at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>at
>
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
> 70)
>at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:349
>
> My entity class is :
>
> @Entity
> public class Gift implements Serializable {
>private static final long serialVersionUID = -7934383525320797864L;
>
>@Id
>@GeneratedValue(strategy = GenerationType.IDENTITY)
>private Long id;
>
>@Persistent
>private String name;
>
>@Persistent
>private String description;
>
>@Persistent
>private String blobKeyString;
>
>.
>
> }
>
> Please help, 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
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegr

Re: [appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread Max Ross (Google)
The dev server used to not execute tasks automatically at all but now the
functionality emulates prod pretty closely.

On Fri, Apr 23, 2010 at 6:02 AM, James  wrote:

> Are you seeing this on the dev server or in production?  I vaguely
> recall reading somewhere that the dev server always executes
> immediately(??).
>
> James
>
> On Apr 22, 4:21 pm, Fabrizio  wrote:
> > Hello,
> >
> > I need to add a task in the TaskQueue. But I need a small delay before
> > exectution (2 seconds). I use countdownMillis(long) to delay the
> > execution.  But execution starts immediatelly. I don't understand if
> > my code is wrong or if there is a problem with countdownMillis.
> >
> > My code is:
> >
> > Queue queue = QueueFactory.getQueue(queueName);
> > TaskOptions taskOpts = TaskOptions.Builder.url(url);
> > taskOpts.countdownMillis(delay);
> > taskOpts.method(Method.GET);
> > queue.add(taskOpts);
> >
> >Thank you for help
> >
> > fabrizio
> >
> > --
> > 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...@googlegroups.com
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] escape characters in strings (maybe related to Broken URL Mapping in GAE 1.3.3 ? )

2010-04-23 Thread Thatcher
Im currently getting escape sequences in rendered strings instead of
the expected result (eg a newline or tab).  It also breaks regular
expression that are compiled from a string instead of regex literals
(this is actually javascript source running with rhino on gae).  I saw
several posts that recently that are showing 1.3.3 has broken a lot of
folks url mappings etc and it's making suspicious that my issue is
related.

I dont have any problems in the development server, only when I
deploy, and since I have many existing apps built with the same tool
chain I spent a couple days chasing my tail.

Any ideas?

Here's a concrete example, I used to get a json response like
{
"foo": "blah",

but now I get

{\n\t"foo": "blah",

and the content-type is still text/javascript; charset=utf-8

Any ideas?
Thatcher

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Servlet filter does not work on SDK 1.3.3

2010-04-23 Thread Mabuse
Hi

I've the same problem with ServletFilters. I'm using Gaelyk's URL-
Routing and it doesn't work with 1.3.3 but with 1.3.2.
Is there an open issue?

Stefan

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Martin Voigt
Also starred.

We see 404s without end in our wicket/ gae applications. Switching
back to a version compiled against 1.3.2 (via appengine.google.com,
just recompiling against 1.3.2 and deploying didn't solve it).  I hope
this will be solved soon.

Martin

On Apr 23, 12:52 pm, Miroslav Genov  wrote:
> Starred.
>
> Thanks for the assitance keyelo. I hope that problem will soon be removed.
>
> Regards,
>   Miroslav
>
> On 04/23/2010 01:48 PM, kinyelo wrote:
>
> > Issue opened
> >http://code.google.com/p/googleappengine/issues/detail?id=3138
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Mobile login with Google Accounts

2010-04-23 Thread TM
I've noticed that if you log into a GAE App via a mobile device you
get "Sign in to Google App Engine with your Google Account" as the
login text.  I would like it to read "Sign in to *AppName* with your
Google Account". Logging in via a normal browser picks up the
application name within it's login text: "*AppName* uses Google
Accounts for Sign in"

Is it possible to change this for mobile devices?

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Utility for checking compatibility of existing java app

2010-04-23 Thread bruce kr
Hi,
Is there any utility available for finding
incompatibilities in an existing java app with respect to GAE?
. Where I am coming from is that  there are may APIs/Specifications
not supported by App Engine  like JMS/JNDI/JDBC/EJB etc as of now.
Before I could port an existing application to App Engine I need to
find out whether this application uses any of those incompatible APIs
or not. I was wondering whether any utility is already available which
will help me to spot the incompatibilities, say java files containing
those incompatible APIs.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] org.datanucleus.store.appengine.FatalNucleusUserException

2010-04-23 Thread vathanak mao
Hi, i got an error as below:

javax.persistence.PersistenceException:
org.datanucleus.store.appengine.FatalNucleusUserException: Received a
request to find
 an object of type com.appenginedatastore.model.Gift identified by
com.appenginedatastore.model.g...@c3362f.  This is not a v
alid representation of a primary key for an instance of
com.appenginedatastore.model.Gift.
at
org.datanucleus.store.appengine.jpa.DatastoreEntityManager.find(DatastoreEntityManager.java:
54)
at
com.appenginedatastore.dao.GenericDAO.findById(GenericDAO.java:60)
at
com.appenginedatastore.dao.GenericDAO.findAll(GenericDAO.java:79)
at
com.appenginedatastore.manager.GiftManager.getGifts(GiftManager.java:
86)
at org.apache.jsp.gifts_jsp._jspService(gifts_jsp.java:68)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
806)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
292)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at
com.google.appengine.tools.development.PrivilegedJspServlet.access
$101(PrivilegedJspServlet.java:23)
at com.google.appengine.tools.development.PrivilegedJspServlet
$2.run(PrivilegedJspServlet.java:59)
at java.security.AccessController.doPrivileged(Native Method)
at
com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:
57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
806)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349

My entity class is :

@Entity
public class Gift implements Serializable {
private static final long serialVersionUID = -7934383525320797864L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Persistent
private String name;

@Persistent
private String description;

@Persistent
private String blobKeyString;

.

}

Please help, 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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Don Schwarz
(I did not do anything.)

On Fri, Apr 23, 2010 at 11:21 AM, Dmitry Gusev wrote:

> I don't know what you did (if you actually did anything) but I just tried
> (again) to downgrade to 1.3.2 and it worked.
>
> So waiting for 1.3.3 fix.
>
>
> On Fri, Apr 23, 2010 at 20:13, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> There's also a problem with cookies.
>>
>> ACSID is created just fine client side. But return null server side.
>>
>> At least, from what I read... I didn't take any chance and removed the
>> check until seeing a fix for it.
>>
>> Christian
>>
>>
>> On Fri, Apr 23, 2010 at 12:01 PM, Don Schwarz wrote:
>>
>>> I've identified a bug in the 1.3.3 SDK that affected Christian.
>>>
>>> If anyone is having a problem like this that is *not* fixed by
>>> redeploying with the 1.3.2 SDK, please let me know your application ID so I
>>> can investigate.
>>>
>>> If you want a fairly nasty workaround for the 1.3.3 SDK bug that I found,
>>> you can register an error handler for 404 by adding
>>> something like this to your web.xml:
>>>
>>> 
>>>   404
>>>   /404.html
>>> 
>>>
>>> We're working on a real fix.
>>> -- Don
>>>
>>> On Fri, Apr 23, 2010 at 10:45 AM, Christian Goudreau <
>>> goudreau.christ...@gmail.com> wrote:
>>>
 Update : In my case, switching back to AppEngine 1.3.2 was enough.

 Christian


 On Fri, Apr 23, 2010 at 11:34 AM, Christian Goudreau <
 goudreau.christ...@gmail.com> wrote:

> DAMN I should have read this message before... now stuck with the same
> problem as the other and no older version.
>
> Christian
>
>
> On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz wrote:
>
>> Also, if you have an old version of your application still deployed
>> that does not show this problem, please provide the version numbers for 
>> the
>> working and not-working versions.
>>
>>
>> On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz wrote:
>>
>>> I am taking a look at this now.  Can one (or more) of you reply to me
>>> privately with app ids that are experiencing problems?
>>>
>>>
>>> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
>>> raphael.andre.ba...@gmail.com> wrote:
>>>
 On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov <
 mgenov.j...@gmail.com> wrote:
 > The problem is not only in GuiceFilter. The problem occurs and
 when some
 > filter is mapped to "/*" and is writing some content to the output
 stream.
 > My testing app was using only simple filter that was bound in
 web.xml
 > directly.

 I think you are quite right and the "/*" is surely the root of the
 problem. I simply wanted to confirm it for guice users.

 Another update (that confirms what people in this thread where
 saying):
 - switching back to 1.3.2 + redeploy on app engine does not help
 - switching back to an old version of your app in the admin
 dashboard
 fixes the problem. well. you got stuck with an old version of your
 app. not too cool.

 ra




 >
 > Regards,
 >  Miroslav
 >
 >
 > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
 >>
 >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
 mgenov.j...@gmail.com>
 >>  wrote:
 >>
 >>>
 >>> Starred.
 >>>
 >>> Thanks for the assitance keyelo. I hope that problem will soon
 be
 >>> removed.
 >>>
 >>
 >> +1
 >>
 >> That's a huge blocker: 1.3.3 breaks all my
 >> com.google.inject.servlet.GuiceFilter based apps...
 >>
 >>
 >> If you use GuiceFilter do NOT upgrade to 1.3.3...
 >>
 >>
 >>
 >> Raphael
 >>
 >>
 >>
 >>>
 >>> Regards,
 >>>  Miroslav
 >>>
 >>> On 04/23/2010 01:48 PM, kinyelo wrote:
 >>>
 
  Issue opened
  http://code.google.com/p/googleappengine/issues/detail?id=3138
 
 
 
 >>>
 >>> --
 >>> 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...@googlegroups.com
 .
 >>> For more options, visit this group at
 >>> http://groups.google.com/group/google-appengine-java?hl=en.
 >>>
 >>>
 >>>
 >>
 >>
 >
 > --
 > You received this message because you are subscribed to the Googl

Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Dmitry Gusev
I don't know what you did (if you actually did anything) but I just tried
(again) to downgrade to 1.3.2 and it worked.

So waiting for 1.3.3 fix.

On Fri, Apr 23, 2010 at 20:13, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> There's also a problem with cookies.
>
> ACSID is created just fine client side. But return null server side.
>
> At least, from what I read... I didn't take any chance and removed the
> check until seeing a fix for it.
>
> Christian
>
>
> On Fri, Apr 23, 2010 at 12:01 PM, Don Schwarz  wrote:
>
>> I've identified a bug in the 1.3.3 SDK that affected Christian.
>>
>> If anyone is having a problem like this that is *not* fixed by redeploying
>> with the 1.3.2 SDK, please let me know your application ID so I can
>> investigate.
>>
>> If you want a fairly nasty workaround for the 1.3.3 SDK bug that I found,
>> you can register an error handler for 404 by adding
>> something like this to your web.xml:
>>
>> 
>>   404
>>   /404.html
>> 
>>
>> We're working on a real fix.
>> -- Don
>>
>> On Fri, Apr 23, 2010 at 10:45 AM, Christian Goudreau <
>> goudreau.christ...@gmail.com> wrote:
>>
>>> Update : In my case, switching back to AppEngine 1.3.2 was enough.
>>>
>>> Christian
>>>
>>>
>>> On Fri, Apr 23, 2010 at 11:34 AM, Christian Goudreau <
>>> goudreau.christ...@gmail.com> wrote:
>>>
 DAMN I should have read this message before... now stuck with the same
 problem as the other and no older version.

 Christian


 On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz wrote:

> Also, if you have an old version of your application still deployed
> that does not show this problem, please provide the version numbers for 
> the
> working and not-working versions.
>
>
> On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz wrote:
>
>> I am taking a look at this now.  Can one (or more) of you reply to me
>> privately with app ids that are experiencing problems?
>>
>>
>> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
>> raphael.andre.ba...@gmail.com> wrote:
>>
>>> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov <
>>> mgenov.j...@gmail.com> wrote:
>>> > The problem is not only in GuiceFilter. The problem occurs and when
>>> some
>>> > filter is mapped to "/*" and is writing some content to the output
>>> stream.
>>> > My testing app was using only simple filter that was bound in
>>> web.xml
>>> > directly.
>>>
>>> I think you are quite right and the "/*" is surely the root of the
>>> problem. I simply wanted to confirm it for guice users.
>>>
>>> Another update (that confirms what people in this thread where
>>> saying):
>>> - switching back to 1.3.2 + redeploy on app engine does not help
>>> - switching back to an old version of your app in the admin dashboard
>>> fixes the problem. well. you got stuck with an old version of your
>>> app. not too cool.
>>>
>>> ra
>>>
>>>
>>>
>>>
>>> >
>>> > Regards,
>>> >  Miroslav
>>> >
>>> >
>>> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
>>> >>
>>> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
>>> mgenov.j...@gmail.com>
>>> >>  wrote:
>>> >>
>>> >>>
>>> >>> Starred.
>>> >>>
>>> >>> Thanks for the assitance keyelo. I hope that problem will soon be
>>> >>> removed.
>>> >>>
>>> >>
>>> >> +1
>>> >>
>>> >> That's a huge blocker: 1.3.3 breaks all my
>>> >> com.google.inject.servlet.GuiceFilter based apps...
>>> >>
>>> >>
>>> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
>>> >>
>>> >>
>>> >>
>>> >> Raphael
>>> >>
>>> >>
>>> >>
>>> >>>
>>> >>> Regards,
>>> >>>  Miroslav
>>> >>>
>>> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
>>> >>>
>>> 
>>>  Issue opened
>>>  http://code.google.com/p/googleappengine/issues/detail?id=3138
>>> 
>>> 
>>> 
>>> >>>
>>> >>> --
>>> >>> 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...@googlegroups.com
>>> .
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/google-appengine-java?hl=en.
>>> >>>
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> > --
>>> > 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...@googlegr

Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Christian Goudreau
There's also a problem with cookies.

ACSID is created just fine client side. But return null server side.

At least, from what I read... I didn't take any chance and removed the check
until seeing a fix for it.

Christian

On Fri, Apr 23, 2010 at 12:01 PM, Don Schwarz  wrote:

> I've identified a bug in the 1.3.3 SDK that affected Christian.
>
> If anyone is having a problem like this that is *not* fixed by redeploying
> with the 1.3.2 SDK, please let me know your application ID so I can
> investigate.
>
> If you want a fairly nasty workaround for the 1.3.3 SDK bug that I found,
> you can register an error handler for 404 by adding
> something like this to your web.xml:
>
> 
>   404
>   /404.html
> 
>
> We're working on a real fix.
> -- Don
>
> On Fri, Apr 23, 2010 at 10:45 AM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> Update : In my case, switching back to AppEngine 1.3.2 was enough.
>>
>> Christian
>>
>>
>> On Fri, Apr 23, 2010 at 11:34 AM, Christian Goudreau <
>> goudreau.christ...@gmail.com> wrote:
>>
>>> DAMN I should have read this message before... now stuck with the same
>>> problem as the other and no older version.
>>>
>>> Christian
>>>
>>>
>>> On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz wrote:
>>>
 Also, if you have an old version of your application still deployed that
 does not show this problem, please provide the version numbers for the
 working and not-working versions.


 On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz wrote:

> I am taking a look at this now.  Can one (or more) of you reply to me
> privately with app ids that are experiencing problems?
>
>
> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
> raphael.andre.ba...@gmail.com> wrote:
>
>> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov <
>> mgenov.j...@gmail.com> wrote:
>> > The problem is not only in GuiceFilter. The problem occurs and when
>> some
>> > filter is mapped to "/*" and is writing some content to the output
>> stream.
>> > My testing app was using only simple filter that was bound in
>> web.xml
>> > directly.
>>
>> I think you are quite right and the "/*" is surely the root of the
>> problem. I simply wanted to confirm it for guice users.
>>
>> Another update (that confirms what people in this thread where
>> saying):
>> - switching back to 1.3.2 + redeploy on app engine does not help
>> - switching back to an old version of your app in the admin dashboard
>> fixes the problem. well. you got stuck with an old version of your
>> app. not too cool.
>>
>> ra
>>
>>
>>
>>
>> >
>> > Regards,
>> >  Miroslav
>> >
>> >
>> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
>> >>
>> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
>> mgenov.j...@gmail.com>
>> >>  wrote:
>> >>
>> >>>
>> >>> Starred.
>> >>>
>> >>> Thanks for the assitance keyelo. I hope that problem will soon be
>> >>> removed.
>> >>>
>> >>
>> >> +1
>> >>
>> >> That's a huge blocker: 1.3.3 breaks all my
>> >> com.google.inject.servlet.GuiceFilter based apps...
>> >>
>> >>
>> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
>> >>
>> >>
>> >>
>> >> Raphael
>> >>
>> >>
>> >>
>> >>>
>> >>> Regards,
>> >>>  Miroslav
>> >>>
>> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
>> >>>
>> 
>>  Issue opened
>>  http://code.google.com/p/googleappengine/issues/detail?id=3138
>> 
>> 
>> 
>> >>>
>> >>> --
>> >>> 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...@googlegroups.com
>> .
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/google-appengine-java?hl=en.
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> > --
>> > 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...@googlegroups.com
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>> >
>>
>> --
>> 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 fro

Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Don Schwarz
I've identified a bug in the 1.3.3 SDK that affected Christian.

If anyone is having a problem like this that is *not* fixed by redeploying
with the 1.3.2 SDK, please let me know your application ID so I can
investigate.

If you want a fairly nasty workaround for the 1.3.3 SDK bug that I found,
you can register an error handler for 404 by adding
something like this to your web.xml:


  404
  /404.html


We're working on a real fix.
-- Don

On Fri, Apr 23, 2010 at 10:45 AM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Update : In my case, switching back to AppEngine 1.3.2 was enough.
>
> Christian
>
>
> On Fri, Apr 23, 2010 at 11:34 AM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> DAMN I should have read this message before... now stuck with the same
>> problem as the other and no older version.
>>
>> Christian
>>
>>
>> On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz wrote:
>>
>>> Also, if you have an old version of your application still deployed that
>>> does not show this problem, please provide the version numbers for the
>>> working and not-working versions.
>>>
>>>
>>> On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz wrote:
>>>
 I am taking a look at this now.  Can one (or more) of you reply to me
 privately with app ids that are experiencing problems?


 On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
 raphael.andre.ba...@gmail.com> wrote:

> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov 
> wrote:
> > The problem is not only in GuiceFilter. The problem occurs and when
> some
> > filter is mapped to "/*" and is writing some content to the output
> stream.
> > My testing app was using only simple filter that was bound in web.xml
> > directly.
>
> I think you are quite right and the "/*" is surely the root of the
> problem. I simply wanted to confirm it for guice users.
>
> Another update (that confirms what people in this thread where saying):
> - switching back to 1.3.2 + redeploy on app engine does not help
> - switching back to an old version of your app in the admin dashboard
> fixes the problem. well. you got stuck with an old version of your
> app. not too cool.
>
> ra
>
>
>
>
> >
> > Regards,
> >  Miroslav
> >
> >
> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
> >>
> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
> mgenov.j...@gmail.com>
> >>  wrote:
> >>
> >>>
> >>> Starred.
> >>>
> >>> Thanks for the assitance keyelo. I hope that problem will soon be
> >>> removed.
> >>>
> >>
> >> +1
> >>
> >> That's a huge blocker: 1.3.3 breaks all my
> >> com.google.inject.servlet.GuiceFilter based apps...
> >>
> >>
> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
> >>
> >>
> >>
> >> Raphael
> >>
> >>
> >>
> >>>
> >>> Regards,
> >>>  Miroslav
> >>>
> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
> >>>
> 
>  Issue opened
>  http://code.google.com/p/googleappengine/issues/detail?id=3138
> 
> 
> 
> >>>
> >>> --
> >>> 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...@googlegroups.com
> .
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/google-appengine-java?hl=en.
> >>>
> >>>
> >>>
> >>
> >>
> >
> > --
> > 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...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

>>>  --
>>> 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
>>> goo

Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Christian Goudreau
Update : In my case, switching back to AppEngine 1.3.2 was enough.

Christian

On Fri, Apr 23, 2010 at 11:34 AM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> DAMN I should have read this message before... now stuck with the same
> problem as the other and no older version.
>
> Christian
>
>
> On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz  wrote:
>
>> Also, if you have an old version of your application still deployed that
>> does not show this problem, please provide the version numbers for the
>> working and not-working versions.
>>
>>
>> On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz wrote:
>>
>>> I am taking a look at this now.  Can one (or more) of you reply to me
>>> privately with app ids that are experiencing problems?
>>>
>>>
>>> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
>>> raphael.andre.ba...@gmail.com> wrote:
>>>
 On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov 
 wrote:
 > The problem is not only in GuiceFilter. The problem occurs and when
 some
 > filter is mapped to "/*" and is writing some content to the output
 stream.
 > My testing app was using only simple filter that was bound in web.xml
 > directly.

 I think you are quite right and the "/*" is surely the root of the
 problem. I simply wanted to confirm it for guice users.

 Another update (that confirms what people in this thread where saying):
 - switching back to 1.3.2 + redeploy on app engine does not help
 - switching back to an old version of your app in the admin dashboard
 fixes the problem. well. you got stuck with an old version of your
 app. not too cool.

 ra




 >
 > Regards,
 >  Miroslav
 >
 >
 > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
 >>
 >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
 mgenov.j...@gmail.com>
 >>  wrote:
 >>
 >>>
 >>> Starred.
 >>>
 >>> Thanks for the assitance keyelo. I hope that problem will soon be
 >>> removed.
 >>>
 >>
 >> +1
 >>
 >> That's a huge blocker: 1.3.3 breaks all my
 >> com.google.inject.servlet.GuiceFilter based apps...
 >>
 >>
 >> If you use GuiceFilter do NOT upgrade to 1.3.3...
 >>
 >>
 >>
 >> Raphael
 >>
 >>
 >>
 >>>
 >>> Regards,
 >>>  Miroslav
 >>>
 >>> On 04/23/2010 01:48 PM, kinyelo wrote:
 >>>
 
  Issue opened
  http://code.google.com/p/googleappengine/issues/detail?id=3138
 
 
 
 >>>
 >>> --
 >>> 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...@googlegroups.com
 .
 >>> For more options, visit this group at
 >>> http://groups.google.com/group/google-appengine-java?hl=en.
 >>>
 >>>
 >>>
 >>
 >>
 >
 > --
 > 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...@googlegroups.com
 .
 > For more options, visit this group at
 > http://groups.google.com/group/google-appengine-java?hl=en.
 >
 >

 --
 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...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


>>>
>>  --
>> 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...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Christian Goudreau
DAMN I should have read this message before... now stuck with the same
problem as the other and no older version.

Christian

On Fri, Apr 23, 2010 at 11:29 AM, Don Schwarz  wrote:

> Also, if you have an old version of your application still deployed that
> does not show this problem, please provide the version numbers for the
> working and not-working versions.
>
>
> On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz  wrote:
>
>> I am taking a look at this now.  Can one (or more) of you reply to me
>> privately with app ids that are experiencing problems?
>>
>>
>> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
>> raphael.andre.ba...@gmail.com> wrote:
>>
>>> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov 
>>> wrote:
>>> > The problem is not only in GuiceFilter. The problem occurs and when
>>> some
>>> > filter is mapped to "/*" and is writing some content to the output
>>> stream.
>>> > My testing app was using only simple filter that was bound in web.xml
>>> > directly.
>>>
>>> I think you are quite right and the "/*" is surely the root of the
>>> problem. I simply wanted to confirm it for guice users.
>>>
>>> Another update (that confirms what people in this thread where saying):
>>> - switching back to 1.3.2 + redeploy on app engine does not help
>>> - switching back to an old version of your app in the admin dashboard
>>> fixes the problem. well. you got stuck with an old version of your
>>> app. not too cool.
>>>
>>> ra
>>>
>>>
>>>
>>>
>>> >
>>> > Regards,
>>> >  Miroslav
>>> >
>>> >
>>> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
>>> >>
>>> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov<
>>> mgenov.j...@gmail.com>
>>> >>  wrote:
>>> >>
>>> >>>
>>> >>> Starred.
>>> >>>
>>> >>> Thanks for the assitance keyelo. I hope that problem will soon be
>>> >>> removed.
>>> >>>
>>> >>
>>> >> +1
>>> >>
>>> >> That's a huge blocker: 1.3.3 breaks all my
>>> >> com.google.inject.servlet.GuiceFilter based apps...
>>> >>
>>> >>
>>> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
>>> >>
>>> >>
>>> >>
>>> >> Raphael
>>> >>
>>> >>
>>> >>
>>> >>>
>>> >>> Regards,
>>> >>>  Miroslav
>>> >>>
>>> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
>>> >>>
>>> 
>>>  Issue opened
>>>  http://code.google.com/p/googleappengine/issues/detail?id=3138
>>> 
>>> 
>>> 
>>> >>>
>>> >>> --
>>> >>> 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...@googlegroups.com
>>> .
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/google-appengine-java?hl=en.
>>> >>>
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> > --
>>> > 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...@googlegroups.com
>>> .
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/google-appengine-java?hl=en.
>>> >
>>> >
>>>
>>> --
>>> 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...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>>
>>
>  --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Don Schwarz
Also, if you have an old version of your application still deployed that
does not show this problem, please provide the version numbers for the
working and not-working versions.

On Fri, Apr 23, 2010 at 10:25 AM, Don Schwarz  wrote:

> I am taking a look at this now.  Can one (or more) of you reply to me
> privately with app ids that are experiencing problems?
>
>
> On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
> raphael.andre.ba...@gmail.com> wrote:
>
>> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov 
>> wrote:
>> > The problem is not only in GuiceFilter. The problem occurs and when some
>> > filter is mapped to "/*" and is writing some content to the output
>> stream.
>> > My testing app was using only simple filter that was bound in web.xml
>> > directly.
>>
>> I think you are quite right and the "/*" is surely the root of the
>> problem. I simply wanted to confirm it for guice users.
>>
>> Another update (that confirms what people in this thread where saying):
>> - switching back to 1.3.2 + redeploy on app engine does not help
>> - switching back to an old version of your app in the admin dashboard
>> fixes the problem. well. you got stuck with an old version of your
>> app. not too cool.
>>
>> ra
>>
>>
>>
>>
>> >
>> > Regards,
>> >  Miroslav
>> >
>> >
>> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
>> >>
>> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov> >
>> >>  wrote:
>> >>
>> >>>
>> >>> Starred.
>> >>>
>> >>> Thanks for the assitance keyelo. I hope that problem will soon be
>> >>> removed.
>> >>>
>> >>
>> >> +1
>> >>
>> >> That's a huge blocker: 1.3.3 breaks all my
>> >> com.google.inject.servlet.GuiceFilter based apps...
>> >>
>> >>
>> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
>> >>
>> >>
>> >>
>> >> Raphael
>> >>
>> >>
>> >>
>> >>>
>> >>> Regards,
>> >>>  Miroslav
>> >>>
>> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
>> >>>
>> 
>>  Issue opened
>>  http://code.google.com/p/googleappengine/issues/detail?id=3138
>> 
>> 
>> 
>> >>>
>> >>> --
>> >>> 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...@googlegroups.com
>> .
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/google-appengine-java?hl=en.
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> > --
>> > 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...@googlegroups.com
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>> >
>>
>> --
>> 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...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Don Schwarz
I am taking a look at this now.  Can one (or more) of you reply to me
privately with app ids that are experiencing problems?

On Fri, Apr 23, 2010 at 10:01 AM, Raphael André Bauer <
raphael.andre.ba...@gmail.com> wrote:

> On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov 
> wrote:
> > The problem is not only in GuiceFilter. The problem occurs and when some
> > filter is mapped to "/*" and is writing some content to the output
> stream.
> > My testing app was using only simple filter that was bound in web.xml
> > directly.
>
> I think you are quite right and the "/*" is surely the root of the
> problem. I simply wanted to confirm it for guice users.
>
> Another update (that confirms what people in this thread where saying):
> - switching back to 1.3.2 + redeploy on app engine does not help
> - switching back to an old version of your app in the admin dashboard
> fixes the problem. well. you got stuck with an old version of your
> app. not too cool.
>
> ra
>
>
>
>
> >
> > Regards,
> >  Miroslav
> >
> >
> > On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
> >>
> >> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov
> >>  wrote:
> >>
> >>>
> >>> Starred.
> >>>
> >>> Thanks for the assitance keyelo. I hope that problem will soon be
> >>> removed.
> >>>
> >>
> >> +1
> >>
> >> That's a huge blocker: 1.3.3 breaks all my
> >> com.google.inject.servlet.GuiceFilter based apps...
> >>
> >>
> >> If you use GuiceFilter do NOT upgrade to 1.3.3...
> >>
> >>
> >>
> >> Raphael
> >>
> >>
> >>
> >>>
> >>> Regards,
> >>>  Miroslav
> >>>
> >>> On 04/23/2010 01:48 PM, kinyelo wrote:
> >>>
> 
>  Issue opened
>  http://code.google.com/p/googleappengine/issues/detail?id=3138
> 
> 
> 
> >>>
> >>> --
> >>> 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...@googlegroups.com
> .
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/google-appengine-java?hl=en.
> >>>
> >>>
> >>>
> >>
> >>
> >
> > --
> > 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...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >
>
> --
> 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...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Error:Server Error

2010-04-23 Thread Anil
I added below lines to web.xml
(Based on advice from http://marguspala.com/?p=73&cpage=1#comment-156580)

 com.sun.faces.enableThreading
 false
 

That fixed my problem.

Thanks,
Anil

On Apr 22, 6:43 pm, Anil  wrote:
> Hi,
>
> I deployed the default web app to the App Engine.
> (It works well on my local).
>
> When someone does a get they should get Hello back.
> Also when someone clicks on the App name in the app homepage they
> should be seeing the Hello on the UI.
>
> But when i do that i get below error:-
>
> Error: Server Error
>
> The server encountered an error and could not complete your request.
> If the problem persists, please report your problem and mention this
> error message and the query that caused it.
>
> Inside the dashboard i see the below error message :-
> 04-22 03:37PM 58.784 /powerapp 500 117ms 194cpu_ms 0kb Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like
> Gecko) Chrome/4.1.249.1045 Safari/532.5,gzip(gfe)
> E 04-22 03:37PM 58.890 javax.servlet.ServletContext log: unavailable
> javax.servlet.UnavailableException:
> com.raraitan.px_etobto.powerapp.PowerAppServlet at org.mortbay.jett
> C 04-22 03:37PM 58.897 Uncaught exception from servlet
> javax.servlet.UnavailableException: Initialization failed. at
> com.google.apphosting.runtime.jetty.AppVersionHandlerMa
>
> Kindly let me know what do i do now.
>
> Let me know i need to provide more details.
>
> Thanks in Advance,Anil
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



RE : [appengine-java] Re: Handling concurrent modification

2010-04-23 Thread Romain Pelisse
+1

Why are you looking to that on memcache rather than with the datastore ?

It could definitelly be sounded approach, I would just like to know the
reasons behind ...

Le 23 avr. 2010 15:00, "James"  a écrit :

It sounds like you're looking for memcached CAS -
http://groups.google.com/group/memcached/browse_thread/thread/b98fc70ddeb39650/f4febb23a0cd0db7?pli=1

Of course, this all begs the question of what you do if your data is
expunged from memcached.  Are you not also writing to the datastore
(which has its own concurrency mgmt for cases like these)?

James


On Apr 23, 12:23 am, Phuong Nguyen  wrote:
> Hi guys:
> I'm creating an app t...
> For more options, visit this group athttp://
groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups
"Google App Engine fo...

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Raphael André Bauer
On Fri, Apr 23, 2010 at 4:48 PM, Miroslav Genov  wrote:
> The problem is not only in GuiceFilter. The problem occurs and when some
> filter is mapped to "/*" and is writing some content to the output stream.
> My testing app was using only simple filter that was bound in web.xml
> directly.

I think you are quite right and the "/*" is surely the root of the
problem. I simply wanted to confirm it for guice users.

Another update (that confirms what people in this thread where saying):
- switching back to 1.3.2 + redeploy on app engine does not help
- switching back to an old version of your app in the admin dashboard
fixes the problem. well. you got stuck with an old version of your
app. not too cool.

ra




>
> Regards,
>  Miroslav
>
>
> On 04/23/2010 05:39 PM, Raphael André Bauer wrote:
>>
>> On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov
>>  wrote:
>>
>>>
>>> Starred.
>>>
>>> Thanks for the assitance keyelo. I hope that problem will soon be
>>> removed.
>>>
>>
>> +1
>>
>> That's a huge blocker: 1.3.3 breaks all my
>> com.google.inject.servlet.GuiceFilter based apps...
>>
>>
>> If you use GuiceFilter do NOT upgrade to 1.3.3...
>>
>>
>>
>> Raphael
>>
>>
>>
>>>
>>> Regards,
>>>  Miroslav
>>>
>>> On 04/23/2010 01:48 PM, kinyelo wrote:
>>>

 Issue opened
 http://code.google.com/p/googleappengine/issues/detail?id=3138



>>>
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>>
>>>
>>
>>
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Handling concurrent modification

2010-04-23 Thread Chau Huynh
Maybe you can look into low level API to obtain a "lock"
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.html#increment%28java.lang.Object,%20long%29

There're also sample implementation using this posted in the group
https://groups.google.com/group/google-appengine/browse_thread/thread/253b9f79f0c178d9/0188ee19a3460ec4?#0188ee19a3460ec4

On Fri, Apr 23, 2010 at 11:23 AM, Phuong Nguyen wrote:

> Hi guys:
> I'm creating an app that I need to deal with concurrent modification of
> object.
> Given I have an object that I need to store on memcache.
> Now, given my user base would be big enough for two request to arrive
> simultaneously at  two different servers in the cloud.
> So, in order to modify the object, the server #1 that receive request fetch
> the object from memcache (Correct me if I'm wrong: this will deserialized
> raw data on memcache in to Java Object on Server #1 JVM), modify it and then
> put it back to memcache (which in turn serialize the object).
> At the same time, server #2 tried to modify the object on memcache.
>
> Under this scenario: Server #1 fetch object> Server #2 fetch object >
> Server #1 store object > Server #2 store object
> Then all changes make by Server #1 will be overrided by Server #2.
>
> If these 2 requests happen on the same Server (and in effect, the same
> JVM), then I believe the use of synchronized access will help. But in case
> they happen on different server, then I don't know how to handle them yet.
>
> Would you guys advice me on that?
> 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
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Miroslav Genov
The problem is not only in GuiceFilter. The problem occurs and when some 
filter is mapped to "/*" and is writing some content to the output 
stream. My testing app was using only simple filter that was bound in 
web.xml directly.


Regards,
  Miroslav


On 04/23/2010 05:39 PM, Raphael André Bauer wrote:

On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov  wrote:
   

Starred.

Thanks for the assitance keyelo. I hope that problem will soon be removed.
 

+1

That's a huge blocker: 1.3.3 breaks all my
com.google.inject.servlet.GuiceFilter based apps...


If you use GuiceFilter do NOT upgrade to 1.3.3...



Raphael


   

Regards,
  Miroslav

On 04/23/2010 01:48 PM, kinyelo wrote:
 

Issue opened
http://code.google.com/p/googleappengine/issues/detail?id=3138


   

--
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...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.


 
   


--
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Raphael André Bauer
On Fri, Apr 23, 2010 at 12:52 PM, Miroslav Genov  wrote:
> Starred.
>
> Thanks for the assitance keyelo. I hope that problem will soon be removed.
+1

That's a huge blocker: 1.3.3 breaks all my
com.google.inject.servlet.GuiceFilter based apps...


If you use GuiceFilter do NOT upgrade to 1.3.3...



Raphael


>
> Regards,
>  Miroslav
>
> On 04/23/2010 01:48 PM, kinyelo wrote:
>>
>> Issue opened
>> http://code.google.com/p/googleappengine/issues/detail?id=3138
>>
>>
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] String datatype

2010-04-23 Thread Timofey Koolin
http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html
short text string is 500 characters or 500 bytes?

For example Russian characters encoded by two bytes of UTF-8.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-04-23 Thread Jake
Another wicket user!

I'm down to about 2-3 seconds for the WicketFilter init(), which
includes the Application init().  Since I figure I'm only allowed
about 2-3 seconds, I realized that it was either give up Wicket or
give up JDO.  So, I swapped out JDO for Objectify and couldn't be
happier.  You may want to look into that.  Objectify can also use the
MemCache if you're getting by key, which (I believe) means that
multiple instance restarts will be able to use the same cached data
for speedier recovery.

I don't want to hijack this thread, but if you have a moment, I'd love
for you to take a look one of my Wicket/GAE issues at
http://apache-wicket.1842946.n4.nabble.com/GAE-loses-shared-resources-td1883638.html
to see if you have any advice.

Thanks!

Jake

On Apr 22, 1:32 pm, Esteban Ignacio Masoero 
wrote:
> Yes, I've done the same thing. In my case, the numbers about initialization
> are these:
>
> 3 sec - gae (apparently some internal thing)
> 2 sec - presentation framework initialization (wicket in my case)
> 4 sec - 2 sec for pm factory creation + 2 sec for 2/3 queries I make
> 1 sec - wicket and maybe some other gae stuff
>
> I'm working on reducing my 4 sec part, but it's really dificult, because the
> queries are done with a pk, so I think I can't do anything else.
>
> By the way, I voted your issue! Hope Google guys give this matter some
> urgent attention, because I think it's really serious problem.
>
> Regards,
>
> Esteban
>
>
>
> On Thu, Apr 22, 2010 at 12:34 PM, Jake  wrote:
> > I'm also still seeing this issue.  I have an open ticket here:
> >http://code.google.com/p/googleappengine/issues/detail?id=2931but
> > it's not getting much attention :)
>
> > Anyways, I've seen this as encouragement to make my startup time much
> > more efficient, so I guess that's a good thing :)  My remaining issue
> > is that there is a delay (2-10 seconds) between the initial request
> > and when my servlet filter is initialized.  Unless I'm mistaken, I
> > have no control over that.
>
> > Jake
>
> > On Apr 21, 4:34 pm, Esteban Ignacio Masoero 
> > wrote:
> > > Hi there:
>
> > > I'm experiencing the same issue. From what we've seen, after 5 minutes of
> > > being accessed, our app gets "cycled out". Are there any news about this?
> > > Has anyone created an isue about this problem?
>
> > > Thanks,
>
> > > Esteban
>
> > > On Wed, Mar 3, 2010 at 1:24 PM, Robert Lancer  > >wrote:
>
> > > > Me too App ID ArachnoDB loading GData and its dependencies, happens
> > > > about every 2 minutes on average, I will add in a logger and follow up
> > > > but I can tell a load request from a normal request.
>
> > > > On Jan 15, 6:32 pm, Ikai Lan  wrote:
> > > > > Hey everybody,
>
> > > > > We've been seeing more and more reports of applications being cycled
> > out
> > > > > overly aggressively, resulting in some folks implementing
> > (discouraged)
> > > > > workarounds to keep their application from being cycled out. The
> > primary
> > > > > symptom of this problem is that your application will see lots of
> > > > "loading
> > > > > requests" that fire up a new JVM, which, as many of you know can take
> > > > > anywhere from a few seconds with naked servlets to as much as twenty
> > > > seconds
> > > > > when loading something like Spring MVC, JRuby on Rails or Grails.
>
> > > > > In theory, there is enough capacity such that as long as you get some
> > > > > traffic every few hours, you should not be getting cycled out, but we
> > > > have
> > > > > been seeing reports of applications being cycled after only a minute
> > or
> > > > > less. To help us figure out if these are app specific issues or App
> > > > Engine
> > > > > issues, can you post the following information if you believe this is
> > > > > happening to you?
>
> > > > > - What is your application ID?
> > > > > - How do you know it is being cycled out? You'll need to insert some
> > code
> > > > > that only gets called when the app cold starts.
> > > > > - How much time of inactivity does it take before your application is
> > > > cycled
> > > > > out?
> > > > > - What time or days does this seem to happen?
> > > > > - What frameworks or libraries are you loading?
>
> > > > > Any other information you can provide would be helpful.
>
> > > > > --
> > > > > Ikai Lan
> > > > > Developer Programs Engineer, Google App Engine
>
> > > > --
> > > > 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...@googlegroups.com
> > 
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > 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] May I suggest ... (was: Broken URL Mapping in GAE 1.3.3 ?)

2010-04-23 Thread Guillermo Schwarz
May I suggest that when a new version of gae is available, people can
choose which apps to migrate to the new version for some time, until
the old versions become unsupported?

For example, if 1.3.3 just came out, we could have 4 different
versions of gae to choose: 1.3.3, 1.3.2, 1.3.1 and 1.3.0. When 1.3.4
finally arrives, all apps in version 1.3.0 et automatically migrated
to 1.3.1. Would that work for you?

To close my argument, imagine if Windows updated itself without
warning every so often. How would you feel about that?

Cheers,
Guillermo.

On 23 abr, 06:52, Miroslav Genov  wrote:
> Starred.
>
> Thanks for the assitance keyelo. I hope that problem will soon be removed.
>
> Regards,
>   Miroslav
>
> On 04/23/2010 01:48 PM, kinyelo wrote:
>
> > Issue opened
> >http://code.google.com/p/googleappengine/issues/detail?id=3138
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-23 Thread James
Are you seeing this on the dev server or in production?  I vaguely
recall reading somewhere that the dev server always executes
immediately(??).

James

On Apr 22, 4:21 pm, Fabrizio  wrote:
> Hello,
>
> I need to add a task in the TaskQueue. But I need a small delay before
> exectution (2 seconds). I use countdownMillis(long) to delay the
> execution.  But execution starts immediatelly. I don't understand if
> my code is wrong or if there is a problem with countdownMillis.
>
> My code is:
>
> Queue queue = QueueFactory.getQueue(queueName);
> TaskOptions taskOpts = TaskOptions.Builder.url(url);
> taskOpts.countdownMillis(delay);
> taskOpts.method(Method.GET);
> queue.add(taskOpts);
>
>    Thank you for help
>
> fabrizio
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Handling concurrent modification

2010-04-23 Thread James
It sounds like you're looking for memcached CAS -
http://groups.google.com/group/memcached/browse_thread/thread/b98fc70ddeb39650/f4febb23a0cd0db7?pli=1

Of course, this all begs the question of what you do if your data is
expunged from memcached.  Are you not also writing to the datastore
(which has its own concurrency mgmt for cases like these)?

James

On Apr 23, 12:23 am, Phuong Nguyen  wrote:
> Hi guys:
> I'm creating an app that I need to deal with concurrent modification of
> object.
> Given I have an object that I need to store on memcache.
> Now, given my user base would be big enough for two request to arrive
> simultaneously at  two different servers in the cloud.
> So, in order to modify the object, the server #1 that receive request
> fetch the object from memcache (Correct me if I'm wrong: this will
> deserialized raw data on memcache in to Java Object on Server #1 JVM),
> modify it and then put it back to memcache (which in turn serialize the
> object).
> At the same time, server #2 tried to modify the object on memcache.
>
> Under this scenario: Server #1 fetch object> Server #2 fetch object >
> Server #1 store object > Server #2 store object
> Then all changes make by Server #1 will be overrided by Server #2.
>
> If these 2 requests happen on the same Server (and in effect, the same
> JVM), then I believe the use of synchronized access will help. But in
> case they happen on different server, then I don't know how to handle
> them yet.
>
> Would you guys advice me on that?
> 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 google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread Miroslav Genov

Starred.

Thanks for the assitance keyelo. I hope that problem will soon be removed.

Regards,
 Miroslav

On 04/23/2010 01:48 PM, kinyelo wrote:

Issue opened
http://code.google.com/p/googleappengine/issues/detail?id=3138

   


--
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread kinyelo
Issue opened
http://code.google.com/p/googleappengine/issues/detail?id=3138

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Servlet filter does not work on SDK 1.3.3

2010-04-23 Thread kinyelo
Same problem but downgrade did not help.

Issue opened http://code.google.com/p/googleappengine/issues/detail?id=3138

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread kinyelo
Same problem looks like filters don't work any more. Downgrade to
1.3.2 did not help.

Also index.jsp exists in folder /cms it's not checked when accessing /
cms so
/cms gives 404
/cms/index.jsp works fine

Problem arrived after deployment. Previously deployed applications
builded up on 1.3.2 work fine.

Alex.

On 22 апр, 16:25, Miroslav Genov  wrote:
> Hello,
>    It seems that some things are a little bit changed in the latest
> version of GAE. Today I had time to migrate from 1.3.0 to 1.3.3 but
> there are some problems. In my application we are using google
> sitebricks as an template engine for rendering of html pages but it
> doesn't work correctly on GAE 1.3.3. First I wasn't sure where is the
> problem in sitebricks or in the sitebricks library. To check which one
> is broken I made a sample servlet filter which is acting as a dispatcher
> of all incomming requests and checks whether uri contains test or mypage
> and prints text "Hello" as output in other case processes request
> throught the chain.
>
> Here is the full source of my filter which filters all incomming
> requests: "/*"
> @Singleton
> public class TestFilter implements Filter {
>    private Logger log = Logger.getLogger(TestFilter.class.getName());
>
>    public void init(FilterConfig filterConfig) throws ServletException {
>
>    }
>
>    public void doFilter(ServletRequest req, ServletResponse resp,
> FilterChain filterChain) throws IOException, ServletException {
>      HttpServletRequest request = (HttpServletRequest) req;
>      HttpServletResponse response = (HttpServletResponse) resp;
>      final String uri = request.getRequestURI();
>      log.info("Uri:" + uri);
>
>      if (uri.contains("test") || uri.contains("mypage")) {
>        response.getWriter().write("Hello");
>      } else {
>        filterChain.doFilter(req, resp);
>      }
>
>    }
>
>    public void destroy() { }
>
> }
>
> In 1.3.0 the following code is working on both: local server and
> deployed on GAE, but on 1.3.3 it only works in local environment and is
> not working when is deployed on GAE. On GAE 1.3.3 when "/test" url is
> requested the log file of the server is appended with the following
> message: "No handlers matched this URL."
>
> Any ideas what is causing this issue ?
>
> Regards,
>    Miroslav
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Broken URL Mapping in GAE 1.3.3 ?

2010-04-23 Thread dmitrygusev
My site also become broken in production and now always returning 404
errors :(

I tried to downgrade to 1.3.2 but the problem persists.

On Apr 23, 4:59 am, Steve Ziegler  wrote:
> Seeing the same thing with our application's use of guice-servlet.
> Tested a deployment using 1.3.3 this afternoon and started getting a
> ton of 404s
>
> -Steve Ziegler
>
> On Apr 22, 9:43 am, Miroslav Genov  wrote:
>
>
>
> > Sorry about the mistaken, I mean: " on GAE or in the sitebricks
> > library." instead of " sitebricks or in the sitebricks library."
>
> > Regards,
> >    Miroslav
>
> > On 04/22/2010 04:25 PM, Miroslav Genov wrote:
>
> > > Hello,
> > >   It seems that some things are a little bit changed in the latest
> > > version of GAE. Today I had time to migrate from 1.3.0 to 1.3.3 but
> > > there are some problems. In my application we are using google
> > > sitebricks as an template engine for rendering of html pages but it
> > > doesn't work correctly on GAE 1.3.3. First I wasn't sure where is the
> > > problem in sitebricks or in the sitebricks library. To check which one
> > > is broken I made a sample servlet filter which is acting as a
> > > dispatcher of all incomming requests and checks whether uri contains
> > > test or mypage and prints text "Hello" as output in other case
> > > processes request throught the chain.
>
> > > Here is the full source of my filter which filters all incomming
> > > requests: "/*"
> > > @Singleton
> > > public class TestFilter implements Filter {
> > >   private Logger log = Logger.getLogger(TestFilter.class.getName());
>
> > >   public void init(FilterConfig filterConfig) throws ServletException {
>
> > >   }
>
> > >   public void doFilter(ServletRequest req, ServletResponse resp,
> > > FilterChain filterChain) throws IOException, ServletException {
> > >     HttpServletRequest request = (HttpServletRequest) req;
> > >     HttpServletResponse response = (HttpServletResponse) resp;
> > >     final String uri = request.getRequestURI();
> > >     log.info("Uri:" + uri);
>
> > >     if (uri.contains("test") || uri.contains("mypage")) {
> > >       response.getWriter().write("Hello");
> > >     } else {
> > >       filterChain.doFilter(req, resp);
> > >     }
>
> > >   }
>
> > >   public void destroy() { }
> > > }
>
> > > In 1.3.0 the following code is working on both: local server and
> > > deployed on GAE, but on 1.3.3 it only works in local environment and
> > > is not working when is deployed on GAE. On GAE 1.3.3 when "/test" url
> > > is requested the log file of the server is appended with the following
> > > message: "No handlers matched this URL."
>
> > > Any ideas what is causing this issue ?
>
> > > Regards,
> > >   Miroslav
>
> > --
> > 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...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Servlet filter does not work on SDK 1.3.3

2010-04-23 Thread Peter Svedberg
Hi,

I have a similar problem with 1.3.3. Deploying a Guice enabled Wave
robot with the url-pattern /* for the Guice filter together with a
serveRegex("\\/_wave/.*").with(Robot.class) handler mapping throws a
404: No handlers matched this URL. Switching back to 1.3.2 solves the
problem.

~Peter


On Apr 23, 9:36 am, Yasuo Higa  wrote:
> Hi,
>
> The following filter does not work on SDK 1.3.3 when the path is "/xxx/yyy".
>
> MyFilter.java:
> public class MyFilter implements Filter {
>
>         @Override
>         public void doFilter(ServletRequest request, ServletResponse response,
>                         FilterChain chain) throws IOException, 
> ServletException {
>                 response.getWriter().write("Hello");
>         }
>         ...
>
> }
>
> web.xml:
> 
>     MyFilter
>     aaa.MyFilter
> 
> 
>    MyFilter
>    /*
> 
>
> I tried the following cases:
> The case that the path is "/" works.
> The case that the path is "/xxx" works.
> The case that the path is "/xxx/" works.
> The case that the path is "/xxx/yyy" does not work.
>
> The same filter on SDK 1.3.2 works well.
>
> Is there a workaround?
>
> Thanks,
>
> Yasuo Higa
>
> --
> 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...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Servlet filter does not work on SDK 1.3.3

2010-04-23 Thread Yasuo Higa
Hi,

The following filter does not work on SDK 1.3.3 when the path is "/xxx/yyy".

MyFilter.java:
public class MyFilter implements Filter {

@Override
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException 
{
response.getWriter().write("Hello");
}
...
}

web.xml:

MyFilter
aaa.MyFilter


   MyFilter
   /*


I tried the following cases:
The case that the path is "/" works.
The case that the path is "/xxx" works.
The case that the path is "/xxx/" works.
The case that the path is "/xxx/yyy" does not work.

The same filter on SDK 1.3.2 works well.

Is there a workaround?

Thanks,

Yasuo Higa

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.