Mantis - Resin
Viewing Issue Advanced Details
1783 minor always 06-06-07 15:24 06-06-07 15:57
everflux  
ferg  
normal  
closed 3.1.2  
fixed  
none    
none 3.1.2  
0001783: NullPointerException when ServletName is unavailable
If the servlet-name is unavailable and filters are used (at least the hibernate open session in view filter) a NPE is thrown.

java.lang.NullPointerException
    at com.caucho.server.dispatch.FilterMapping.isMatch(FilterMapping.java:169)
    at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:140)
    at com.caucho.server.webapp.WebApp.buildInvocation(WebApp.java:1902)
    at com.caucho.server.webapp.WebAppContainer.buildInvocation(WebAppContainer.java:721)
    at com.caucho.server.host.Host.buildInvocation(Host.java:476)
    at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:314)
    at com.caucho.server.cluster.Server.buildInvocation(Server.java:839)
    at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:200)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:258)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:600)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:522)
    at java.lang.Thread.run(Thread.java:619)
Fix/workaraound:
Add
 if (servletName == null) return false;
in line 166 in ./modules/resin/src/com/caucho/server/dispatch/FilterMapping.java

There are no notes attached to this issue.