IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New How to generate a 500 error and a Java dump.
I sent Mike an e-mail about this before I figured it out.

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.
New Parser indeed(?)
I note that most common glitches of this ilk happen when an illogical sequence has been done by my disembodied fingers, as when [/i] (using '<'s, of course) precedes a [i].
But I think my usual Error is not in the 500 Series (I don't often read the barfle-text for comprehension.)

Safari keeps a copy of the text, so no more lost brilliance when I go back to fix (no need to compose in another editor, that is.)

Pity we have no briefer subs for 'blockquote' and other frequent entries.
Want a KB with 256 soft keys, illuminated; touch a key and a voice tells its function. That's all I want.
New I just want it to do what I want, not what I tell it to. ;-)
New Fixed in SVN
Mike will have to apply the patch to his server.

You're not "crashing the parser"... it's doing exactly what it's supposed to do, which is detecting bad HTML.

The post validator wasn't catching the exception generated thereof, however, so instead of a more helpful "incorrect HTML" you were getting the raw parser exception.
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New Thanks! I guess it's clear I don't do this for a living. ;-)
New raw parser exception commonly called java puke
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New As opposed to a raw C++ exception
Commonly called "core file"...
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New java puke IS easier to read
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New Message received...
...While I was out to dinner with my wife. :) Sorry I didn't get back to you sooner. I'll look into upgrading the site sometime this week. I'm going to have to go back and figure out what kind of state the code is in, and if it's releasable. What-say, Scott? Anything borked in the svn codebase that I need to know about? I know that my local copy is not-releasable, but I think I have uncommitted changes...
-Mike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
     How to generate a 500 error and a Java dump. - (Another Scott) - (8)
         Parser indeed(?) - (Ashton) - (1)
             I just want it to do what I want, not what I tell it to. ;-) -NT - (Another Scott)
         Fixed in SVN - (malraux) - (4)
             Thanks! I guess it's clear I don't do this for a living. ;-) -NT - (Another Scott)
             raw parser exception commonly called java puke -NT - (boxley) - (2)
                 As opposed to a raw C++ exception - (malraux) - (1)
                     java puke IS easier to read -NT - (boxley)
         Message received... - (mvitale)

Can bitching and moaning atone?
71 ms