Bug 33300 - Misleading error message from fn:length()
Summary: Misleading error message from fn:length()
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.1.0
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 01:31 UTC by Geoffrey T Falk
Modified: 2005-02-16 17:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey T Falk 2005-01-30 01:31:30 UTC
Found in jakarta-taglibs-standard-1.1.2:

When trying to apply fn:length() to something that is not a Collection, String, 
Enumeration or Iterator, this misleading exception is generated:

  "Don't know how to iterate over supplied "items" in <forEach>"

It should say that the argument to fn:length() is invalid.

This cost me much time debugging in the wrong area of a JSP page. Thanks for 
your attention.
Comment 1 Dhiru Pandey 2005-02-17 02:28:01 UTC
I fixed the error message in org/apache/taglibs/standard/functions/Functions.java.

The fix was commited by Pierre Delisle (thanks Pierre).

Marking this bug fixed.

-Dhiru