I was trying to post the start of a new thread in MF&E and as soon as I hit the "Save" button to see a Preview, I would get a 500 error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.iwethey.filter.FilterException: Handler stack is empty.
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:488)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
org.iwethey.filter.FilterException: Handler stack is empty.
org.iwethey.filter.FilterContext.popHandlerEntry(FilterContext.java:222)
org.iwethey.filter.AbstractMatchingPoppingHandler.process(AbstractMatchingPoppingHandler.java:55)
org.iwethey.filter.FilterContext.filter(FilterContext.java:103)
org.iwethey.filter.Filter.filter(Filter.java:94)
org.iwethey.forums.web.post.PostValidator.validate(PostValidator.java:132)
org.springframework.validation.ValidationUtils.invokeValidator(ValidationUtils.java:63)
org.springframework.web.servlet.mvc.BaseCommandController.bindAndValidate(BaseCommandController.java:373)
org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:263)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:859)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
Apache Tomcat/5.5
Changing browsers didn't help. But, I could reply to other threads. Hmmm...
It turns out the problem was I had nested blockquotes and the inner one had "(open-bracket)block And this is the quoted text...(open-bracket)/blockquote(close-bracket)" rather than "(open-bracket)blockquote(close-bracket) And this is the quoted text...(open-bracket)/blockquote(close-bracket)".
Fixing the internal blockquote tag fixed it. I was apparently crashing the parser.
HTH.
Cheers,
Scott.