RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1311622 - Getting NoSuchElementException while handling attributes with empty string value in tomcat 7.0.54
Summary: Getting NoSuchElementException while handling attributes with empty string va...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tomcat
Version: 7.2
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Coty Sutherland
QA Contact: fgoldefu
URL:
Whiteboard:
Depends On: 1287928
Blocks: 1298191
TreeView+ depends on / blocked
 
Reported: 2016-02-24 15:43 UTC by Pankaj Degave
Modified: 2019-09-12 09:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-03 21:11:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache Bugzilla 56561 0 None None None 2016-03-04 19:12:46 UTC
Red Hat Knowledge Base (Solution) 1428173 0 None None None 2016-06-07 18:35:14 UTC
Red Hat Product Errata RHSA-2016:2599 0 normal SHIPPED_LIVE Moderate: tomcat security, bug fix, and enhancement update 2016-11-03 12:12:12 UTC

Description Pankaj Degave 2016-02-24 15:43:46 UTC
Description of problem:
- Getting the error "NoSuchElementException while handling attributes with empty string value".This bug is already described in community with bug id :56561 (NoSuchElementException on empty attribute in Validator$ValidateVisitor.getJspAttribute(Validator.java:1385))


How reproducible:
-The error is reproducible with below steps and attached application.

Steps to Reproduce:
1.Deploy the attached sample war application in tomcat 7.0.54
2.Hit the url : http://IP:PORT/testapp
3.Press menu option "Registros - Listar Registros"

Actual results:
- Getting java.util.NoSuchElementExceptionjava.util.ArrayList$Itr.next(ArrayList.java:834)


Expected results:
- The application should run without throwing any error.

Additional info:
 - The error can be seen only with tomcat 7.0.54 and it is fixed in higher version of tomcat eg: tomcat 7.0.59 

 - [root@pdegave]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)


- [root@pdegave]# yum list installed | grep tomcat
tomcat.noarch                     7.0.54-2.el7_1             @rhel-7-server-rpms
tomcat-admin-webapps.noarch       7.0.54-2.el7_1             @rhel-7-server-rpms
tomcat-el-2.2-api.noarch          7.0.54-2.el7_1             @rhel-7-server-rpms
tomcat-jsp-2.2-api.noarch         7.0.54-2.el7_1             @rhel-7-server-rpms
tomcat-lib.noarch                 7.0.54-2.el7_1             @rhel-7-server-rpms
tomcat-servlet-3.0-api.noarch     7.0.54-2.el7_1             @rhel-7-server-rpms

Comment 2 Coty Sutherland 2016-03-04 19:12:46 UTC
It looks like this is ASF BZ 56561 from the case. The following two revisions should resolve the issue:

http://svn.apache.org/r1597587
http://svn.apache.org/r1597545

------------------------------------------------------------------------
r1597587 | kkolinko | 2014-05-26 09:57:55 -0400 (Mon, 26 May 2014) | 4 lines

https://issues.apache.org/bugzilla/show_bug.cgi?id=56561
Followup to r1597532: check the output of the new test.

It is backport of r1597573 from tomcat/trunk.
------------------------------------------------------------------------
r1597545 | violetagg | 2014-05-26 06:00:25 -0400 (Mon, 26 May 2014) | 4 lines

Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56561
Merged revisions 1597532, 1597541 from tomcat/trunk:
Fixed NoSuchElementException when an attribute has empty string as value.

------------------------------------------------------------------------

Comment 9 errata-xmlrpc 2016-11-03 21:11:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2599.html


Note You need to log in before you can comment on or make changes to this bug.