[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-11 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #11 from Sean Owen --- One last post with good news -- this *does* work: Tomcat.addServlet(context, "error_jspx", new error_jspx()); context.addServletMapping("/error.jspx", "error_jspx"); This doesn't, which was my or

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #10 from Sean Owen --- It is the exact code I'm testing, of course. I even copied it back from the attachment. I don't know what could be different between the two setups. The change you suggested was actually already implement

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #9 from Mark Thomas --- (In reply to comment #7) > Thank you, though with that change it still shows the same behavior. The > error page itself is fine, and serves if you access it directly. This > exception occurs if you trigge

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #8 from Sean Owen --- PS I don't know if any of the rest of this is useful, or rings a bell, but: I updated to 7.0.32 just to make sure that wasn't the issue. Same thing. The issue is that a RequestDispatcher to "/error.jspx"

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #7 from Sean Owen --- Thank you, though with that change it still shows the same behavior. The error page itself is fine, and serves if you access it directly. This exception occurs if you trigger a 404 by navigating to a non-ex

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-10 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 Mark Thomas changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution|---

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #5 from Sean Owen --- Try running Test.java, then browse to "http://localhost:8080/foo"; and see the NullPointerException. I've looked at the examples in test/, and looked at this code, and don't see anything being done wrongly

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #4 from Sean Owen --- Created attachment 29442 --> https://issues.apache.org/bugzilla/attachment.cgi?id=29442&action=edit Accompanying error jspx -- You are receiving this mail because: You are the assignee for the bug. ---

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #3 from Sean Owen --- Created attachment 29441 --> https://issues.apache.org/bugzilla/attachment.cgi?id=29441&action=edit Test program showing NPE error This is a (pretty) minimal example that reproduces the issue describe he

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 --- Comment #2 from Sean Owen --- Will do -- I will try to reduce this to a minimal test case. I already caught that maybe the context needs to be "" instead of "/", but that didn't change behavior. -- You are receiving this mail because:

[Bug 53958] Custom error page generates NPE in StandardHostValve.java

2012-10-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 Konstantin Kolinko changed: What|Removed |Added Status|NEW |NEEDINFO OS|