https://bz.apache.org/bugzilla/show_bug.cgi?id=59632

--- Comment #8 from Felix Schumacher <[email protected]> ---
The attached HTML Page has a few syntax errors. One is an unbalanced quote (").
That leads to an RuntimeException, that is thrown in
javax.swing.text.html.CSSParser#readTill. That exception bubbles up the
callstack and is caught by javax.swing.text.html.Parser#parse by the following
construct:
        } catch (IOException e) {
            errorContext();
            error("ioexception");
            throw e;
        } catch (Exception e) {
            errorContext();
            error("exception", e.getClass().getName(), e.getMessage());
            e.printStackTrace();
        } catch (ThreadDeath e) {
            errorContext();
            error("terminated");
            e.printStackTrace();
            throw e;

As you can see, the RuntimeException gets caught as an Exception and it is
printed on the console, but does not get propagated - which is probably an
error in the jdk.

The parsing continues and leads now to another Exception in
java.util.Stack#peek. An EmptyStackException gets thrown, which has no message.
That exceptions message (null) is printed.

We could change the jmeter code to display the full exception when the message
is null, but I think the real culprit is the jdk.

The OP should probably correct the HTML and all is well (for him at least).

I will attach the two stacktraces and a simple test to reproduce the issue.
Just run it in jmeter, got to the tree view and try to display the sample as
html.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to