My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4583: if there is space in name for input type=submit when using Blob service you get IllegalStateException: Must be called from a blob upload callback request.
11 people starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  ----


Sign in to add a comment
 
Reported by gml...@gmail.com, Feb 15, 2011
There is example for using Blob service 
appengine-java-sdk/demos/mediastore 
There is jsp file upload.jsp 
If you replace 
<input type="submit" name="submit" value="Submit"> 
with 
<input type="submit" name="Add Image" value="Add Image"> 
you get this exception 

Uncaught exception from servlet 
java.lang.IllegalStateException: Must be called from a blob upload 
callback request. 
        at 
com.google.appengine.api.blobstore.BlobstoreServiceImpl.getUploadedBlobs(Bl obstoreServiceImpl.java: 
128) 
        at 
com.google.appengine.demos.mediastore.UploadPost.doPost(UploadPost.java: 
48) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 
511) 
        at org.mortbay.jetty.servlet.ServletHandler 
$CachedChain.doFilter(ServletHandler.java:1166) 
        at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo bUploadFilter.java: 
95) 
        at org.mortbay.jetty.servlet.ServletHandler 
$CachedChain.doFilter(ServletHandler.java:1157) 
        at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF ilter.java: 
35) 
        at org.mortbay.jetty.servlet.ServletHandler 
$CachedChain.doFilter(ServletHandler.java:1157) 
        at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.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 

May 16, 2011
#1 i...@google.com
(No comment was entered for this change.)
Status: Acknowledged
Labels: Component-Blobstore
Nov 2, 2011
Project Member #2 slangley@google.com
(No comment was entered for this change.)
Status: Started
Labels: log-5554638
Nov 2, 2011
#3 incredib...@gmail.com
This issue has many sides. 

I put together my blobstore issue into a watered down project that I have attached in case you want to examine the code. The original version of the code redirected the blobstore to a spring controller. However, it would not work no matter what.

I did get a workaround to run correctly on my local by defining a servlet in the web.xml which the blobstore would redirect to [as opposed to the spring controller]. It seems the call stack is different in GAE, you can see that with Firebug. 

The zip file attached is the watered down version mentioned above. There is a README that defines the available maven commands to launch the project locally. Also, the deployed version can be found at the url below so you can contrast the call stacks. 

http://myappissues.appspot.com

If you need a version that uses the spring controller, please let me know.
blobIssue.zip
834 KB   Download
Nov 27, 2011
Project Member #4 slangley@google.com
Thanks for the repro - I tried to set it up locally but maven is having some issues and I don't have time to work out how to fix it. 

Usually this error is seen when there is a problem with the java mime decoding, but from what I can tell you app does not have the problem.

Can you tell me what the internal error is that causes the IllegalStateException, or can you grant me access to look at the application logs for your test app?

Thanks.
Nov 28, 2011
#5 incredib...@gmail.com
the error seems to be coming from the blob service itself. somewhere in the call stack it is loosing the associated session id so that when blobstore returns - the img keys can not be found, however they do get loaded. i think you should take a few minutes and get the maven repo working. i can make you a developer to this project and give you access to all of it so you can see for yourself. i think a number of developers [esp spring guys] are pissed and moving to S3 bc it works. i don't see your full email to set you up on the project, drop me a line and i'll take care of that. also, what maven issues are you having, this repo has been pretty solid.  
Nov 28, 2011
Project Member #6 slangley@google.com
Sent you a mail offline.

Apparently there is an issue with maven following 301 redirects for some packages. This is stopping it from downloading the unzip package. I didn't dig too far into it for workarounds. 
Jul 17, 2012
Project Member #7 pro...@google.com
(No comment was entered for this change.)
Labels: squash-1
Sign in to add a comment

Powered by Google Project Hosting