https://issues.apache.org/bugzilla/show_bug.cgi?id=56529

rsanthakumar <rsanthaku...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
          Component|Jasper                      |Jasper
         Resolution|FIXED                       |---
            Product|Tomcat 8                    |Tomcat 7
   Target Milestone|----                        |---

--- Comment #5 from rsanthakumar <rsanthaku...@gmail.com> ---
Hi,

I had the similar issues with the custom tag, even in the fixed code. It looks
like the issue is fixed only in the method “checkXmlAttributes”, but there is
similar kind of the implementation even in the “getJspAttribute” method of
validator class.

I am not sure whether it is an intended implementation, but it is throwing the
following exception during the JSP compilation. The application started working
once we fix the code in “getJspAttribute” method

Exception:

java.util.NoSuchElementException
    at java.util.ArrayList$Itr.next(ArrayList.java:834)
    at
org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1385)
    at
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1262)
    at
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:876)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1538)

Code snippets from “getJSPAttribute”

1380                         if (el.containsEL()) {
1381                             validateFunctions(el, n);
1382                         } else {
1383                             // Get text with \$ and \# escaping removed.
1384                             // Should be a single Text node
1385                             value = ((ELNode.Text) el.iterator().next())
1386                                     .getText();
1387                             el = null;
1388                         }
1389                     }

Request you to please look into this. 

Thanks
Santhakumar

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to