kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

NullPointerException calling the explorer #242

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I try to follow the helloworld tutorial. When I call the explorer I get the 
following error message 
in the console:
java.lang.NullPointerException
    at 
com.xucia.resourceaccelerate.CompressAndCacheHeadersFilter.doFilter(CompressAndC
acheHead
ersFilter.java:129)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
    at org.persvr.remote.PersevereFilter$DefaultHandler.call(PersevereFilter.java:547)
    at org.persvr.remote.PersevereFilter.doFilter(PersevereFilter.java:357)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
    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:766)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
    at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollecti
on.java:230)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
    at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.ja
va:864)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
08.09.2009 08:47:21 org.persvr.remote.PersevereFilter$DefaultHandler call

The Persevere version is the 1.0 release candidate, but I get the same error 
with older Releases.
The system is MAC OSX 10.6 (Snow Leopard) with java 1.6.0_15

Original issue reported on code.google.com by dneuman...@gmail.com on 8 Sep 2009 at 7:05

GoogleCodeExporter commented 8 years ago
Is it possible that there is something that would restrict persevere's ability 
to write 
to the file system? Would you be willing to try the latest nightly (I just did 
a build) 
includes a change to avoid that nullpointerexception, and display the real 
error?
http://www.persvr.org/nightly/

Original comment by kris...@gmail.com on 8 Sep 2009 at 12:59

GoogleCodeExporter commented 8 years ago
You are right. The system didn't have  write access for the persevere folder. 
The message was:
java.io.FileNotFoundException: /opt/persevere/ra-cache/_explorer.html.gz (No 
such file or directory).
Thanks a lot
Dirk

Original comment by dneuman...@gmail.com on 8 Sep 2009 at 2:22