From: Thomas <tho...@gm...> - 2009-05-27 10:53:16
|
I consistently receive the following NPE in one of my XQuery pages ( rev. 9074 ): 27 May 2009 10:48:01,531 [P1-1] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An error occurred: null at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:389) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) The HTML is generated correctly and it loads a lot of images from the database (via REST) and a number of static files from a directory located in webapp. It seams some of the files requested by the page, causes the NPE but I can't figure it out which one. I believe if we log URLs passed to XQueryURLRewrite, before the XQueryURLRewrite is called, then we will be able to locate problems like this easily. Regards, Thomas |
From: Wolfgang M. <wol...@ex...> - 2009-05-28 09:03:53
|
> I believe if we log URLs passed to XQueryURLRewrite, before the > XQueryURLRewrite is called, then we will be able to locate problems like > this easily. Ok, I changed this as requested. XQueryURLRewrite will now log the original URI if trace logging is enabled. Wolfgang |