nyon wrote:
I have seen several issues on this subject. But there seems to be any real
solution. I have rendered nothing but an empty body. But this error is still
after me.I have checked my web.xml several times.
So whats the error?
If its the tomahawk bug then is there any fixed version ??
Yes, it's a bug in tomahawk. There is a JIRA issue for it (closed) but I
don't know the number. The bug is in class ReducedHtmlParser.
The bug is fixed in the SVN trunk, so if you use a nightly build this
problem will not occur. However the fix is not in the most recent
official release (tomahawk 1.1.3).
The bug is triggered by an html attribute containing a backslash which
is *not* followed by a quote, eg:
<h:outputText value="a multi-line\nvalue"/>
This bug doesn't usually cause any problems, though. The
ReducedHtmlParser class is parsing the html page to determine the
location of interesting points, such as the offset of the <head> tag and
the <body> tag. This then allows tomahawk to insert <script> elements
into the head, add onload attributes to the body tag etc.
As long as the html element that triggers the bug is after the <body>
tag, then the critical locations (head, body) have already been located.
The code will possibly fail to determine the location of the </body>
tag, but that info isn't actually used AFAIK.
Regards,
Simon