Missing ListFile on Localhost & Error on deployment

3 views
Skip to first unread message

XPS Learner

unread,
Sep 9, 2009, 12:17:04 AM9/9/09
to GoogleFileService
Dear Tung,

I am very excited with your GoogleFileServer (GFS), because I will
learn from your project so much, I believe.
Thanks for your work done.

Just have some issue when I install GFS on my localhost. I just
download source code (v2.0) and run on eclipse without any
modification. And when I upload file, there is some issue about the
output showing to me:

-Upload success.
-There's no uploaded files.

Maybe, I am using Windows 7, and something wrong with the compatible
issue. Therefore, I deploy to my appengine & it made more cautions
than I image ^_^. It showed error ^_^.

-https://dev.latest.iprompter01.appspot.com/

Please guide me some thing in order to fix these irritated stuff.

Thanks,
Tu

tytung

unread,
Sep 9, 2009, 7:19:08 AM9/9/09
to GoogleFileService
Hi, Tu

I think I can't say anything without looking at any error message,
e.g. , which line throws exceptions.
Maybe you should try "0.2a" version which fixs some ContentType issues
of NullPointerException.

tytung

XPS Learner

unread,
Sep 9, 2009, 9:58:50 PM9/9/09
to GoogleFileService
Dear TyTung,

FYI, these error messages were showed from server :)

Uncaught exception from servlet
java.lang.ClassCastException:
com.google.appengine.api.datastore.DatastoreNeedIndexException cannot
be cast to javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:754)
at org.apache.jsp.file_005flist_jsp._jspService
(file_005flist_jsp.java:161)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:237)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:392)
at java.lang.Thread.run(Unknown Source)

Unexpected exception from servlet: java.lang.ClassCastException:
com.google.appengine.api.datastore.DatastoreNeedIndexException cannot
be cast to javax.servlet.ServletException

XPS Learner

unread,
Sep 9, 2009, 10:03:33 PM9/9/09
to GoogleFileService
Dear Tung,

I have installed the newest version (export from SVN). But it still
showed the same output without any ... error message.

On Console:
----The server is running at http://localhost:8080/
----(0, 0, -1)
----10-09-2009 01:56:32
sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
----INFO: (10, 3472, 34683)
----10-09-2009 01:56:32
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ######## uploading ... ########
----10-09-2009 01:56:32
sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
----INFO: (100, 34683, 34683)
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileId: f1252547787796
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileOwner: te...@example.com
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileName: Capture.PNG
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileSize: 34164
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ContentType: image/png
----10-09-2009 01:56:33
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ######## upload successfully ########
----(0, 0, -1)
----10-09-2009 01:58:14
sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
----INFO: (10, 3472, 34683)
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ######## uploading ... ########
----10-09-2009 01:58:14
sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
----INFO: (100, 34683, 34683)
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileId: f1252547889451
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileOwner: te...@example.com
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileName: Capture.PNG
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: fileSize: 34164
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ContentType: image/png
----10-09-2009 01:58:14
sinica.googlefileservice.server.servlet.FileUploadServlet doPost
----INFO: ######## upload successfully ########

Output:
----Upload success.
----There's no uploaded files.

On Sep 9, 6:19 pm, tytung <tyt...@gmail.com> wrote:

XPS Learner

unread,
Sep 10, 2009, 2:08:05 AM9/10/09
to GoogleFileService
The newest version also makes some errors when deploy on appspot .
http://02a.latest.iprompter01.appspot.com/

Is there any configuration after getting the source code?

On Sep 10, 9:03 am, XPS Learner <duon...@gmail.com> wrote:
> Dear Tung,
>
> I have installed the newest version (export from SVN). But it still
> showed the same output without any ... error message.
>
> On Console:
> ----The server is running athttp://localhost:8080/
> ----(0, 0, -1)
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
> ----INFO: (10, 3472, 34683)
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: ######## uploading ... ########
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
> ----INFO: (100, 34683, 34683)
> ----10-09-2009 01:56:33
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: fileId: f1252547787796
> ----10-09-2009 01:56:33
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: fileOwner: t...@example.com
> ----INFO: fileOwner: t...@example.com

tytung

unread,
Sep 10, 2009, 5:57:15 AM9/10/09
to GoogleFileService
Hi, XPS Learner

http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreNeedIndexException.html
DatastoreNeedIndexException is thrown when no matching index was found
for a query requiring an index. Check the Indexes page in the Admin
Console and your datastore-indexes.xml file.

I think you should learn how to debug by yourself.

The related file is "file_005flist_jsp.java:161" which is on "C:
\Documents and Settings\{Username}\Local Settings\Temp
\appcfg4508317078551623283.tmp\WEB-INF\classes\org\apache\jsp
\file_005flist_jsp.java".

You can see line 161 in "file_005flist_jsp.java" to get more info for
debugging.

tytung
> com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques­t
> > > Tu- Hide quoted text -
>
> - Show quoted text -

tytung

unread,
Sep 10, 2009, 6:10:45 AM9/10/09
to GoogleFileService
Hi, XPS Learner

GoogleFileService 0.2a (Dev)
Add the setting in 'appengine-web.xml' to determine if only
administrators can upload files. If not, then logged in users can just
upload and delete their own files, while administrators can upload and
delete files belong to any users.

Did you log in the same account (admin or not) to see the file list?
And what kind of files did you upload? Jpeg, Doc, or anything else?

My website https://gae-file-service.appspot.com/ is using
GoogleFileService 0.2a, and it seems to work well.

If you solve your problem, please share your method to us.
Thank you.

tytung

On Sep 10, 10:03 am, XPS Learner <duon...@gmail.com> wrote:
> Dear Tung,
>
> I have installed the newest version (export from SVN). But it still
> showed the same output without any ... error message.
>
> On Console:
> ----The server is running athttp://localhost:8080/
> ----(0, 0, -1)
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
> ----INFO: (10, 3472, 34683)
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: ######## uploading ... ########
> ----10-09-2009 01:56:32
> sinica.googlefileservice.server.fileupload.ProgressListenerImpl update
> ----INFO: (100, 34683, 34683)
> ----10-09-2009 01:56:33
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: fileId: f1252547787796
> ----10-09-2009 01:56:33
> sinica.googlefileservice.server.servlet.FileUploadServlet doPost
> ----INFO: fileOwner: t...@example.com
> ----INFO: fileOwner: t...@example.com

tytung

unread,
Sep 10, 2009, 6:14:30 AM9/10/09
to GoogleFileService
GoogleFileService 0.2a, and I don't change any files.


On Sep 10, 2:08 pm, XPS Learner <duon...@gmail.com> wrote:
> The newest version also makes some errors when deploy on appspot .http://02a.latest.iprompter01.appspot.com/

XPS Learner

unread,
Sep 10, 2009, 9:18:26 AM9/10/09
to GoogleFileService
Dear tytung,

Thanks for your support ! I am just new with servlet & app engine
^_^ .

Regards,
tu

On Sep 10, 5:14 pm, tytung <tyt...@gmail.com> wrote:
> My websitehttps://gae-file-service.appspot.com/is using

tytung

unread,
Sep 10, 2009, 11:49:28 PM9/10/09
to GoogleFileService
Hi, tu

I think the Getting Started of the Google App Engine is useful for
you.
http://code.google.com/intl/en/appengine/docs/whatisgoogleappengine.html
Spending some time reading the above tutorials will help you a lot.

Regards,
tytung
> > > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages