You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Brush John <Jo...@swisslife.ch> on 1999/11/25 13:58:07 UTC

error parsing custom tags without body

I've been playing around with custom tags, and I've noticed an inexplicable
error when parsing custom tags that have an empty body, if the "empty body"
does not consist of at least one whitespace. Basically this works:

<prefix:myTag>
</prefix:myTag>

and this works:

<prefix:myTag> </prefix:myTag>

but this doesn't

<prefix:myTag></prefix:myTag>

For the last case, here's the stack trace:

Unhandled error! You might want to consider having an error page to report
such
errors more gracefully
java.lang.VerifyError: (class: _0005ctest_0002ejsptest_jsp_2, method:
_jspServic
e signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpSer
vletResponse;)V) Illegal exception table range
        at java.lang.ClassLoader.resolveClass0(Native Method)
        at java.lang.ClassLoader.resolveClass(ClassLoader.java:429)
        at org.apache.jasper.runtime.JspLoader.loadClass(Compiled Code)
        at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:239)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:142)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:153)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
39)
        at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:868)
        at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper
.java:624)
        at org.apache.tomcat.core.ServletWrapper.handleInvocation(Compiled
Code)

        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:376)
        at org.apache.tomcat.core.Context.handleRequest(Context.java:640)
        at org.apache.tomcat.server.ConnectionHandler.run(Compiled Code)

Hope this helps,

John

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

     _/_/_/ _/   Rentenanstalt/Swiss Life
    _/     _/    John Brush
   _/_/_/ _/     Organisationseinheit CH/IA
      _/ _/      Postfach
 _/_/_/ _/_/_/   8022 Zuerich, Switzerland

     Telephon:   +41-1-284-6549
          Fax:   +41-1-284-4423
        Email:   John.Brush@swisslife.ch
          Web:   www.fhloston.ch

                 USE THE FORCE - READ THE SOURCE

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/