Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 73220 invoked from network); 8 Dec 2004 17:40:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 17:40:21 -0000 Received: (qmail 33831 invoked by uid 500); 8 Dec 2004 17:39:44 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 33721 invoked by uid 500); 8 Dec 2004 17:39:42 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 33668 invoked by uid 99); 8 Dec 2004 17:39:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 09:39:39 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id iB8HdYYV031061 for ; Wed, 8 Dec 2004 18:39:34 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id iB8HdY7r031059; Wed, 8 Dec 2004 18:39:34 +0100 Date: Wed, 8 Dec 2004 18:39:34 +0100 Message-Id: <200412081739.iB8HdY7r031059@ajax.apache.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32591] New: - getter Exception where setter has the wrong signature X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32591 Summary: getter Exception where setter has the wrong signature Product: Tomcat 5 Version: 5.5.4 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Servlet & JSP API AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: fmo@witbe.net I defined a bean with a getter that return a type A and with a setter with the same suffix but the signature doesn't take an argument of type A. It seems that the getter cannot be called with a el expression any more with tomcat5.5. It worked fine with tomcat5.0. I noticed the same thing with a bean with two getters (the method getBar()). I found a workaround but I'd like to know if it is a real bug or if my bean doesn't respect the el documentation. Thanks in advance ! Fabrice. This jsp : --------------------------------- <%@ taglib uri="/tags/struts-bean" prefix="bean" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <% net.witbe.business.Foo fa = new net.witbe.business.Foo(); request.setAttribute("FooAttribute",fa); %> The foo string is @${FooAttribute.foo}@ --------------------------------- calling this bean : --------------------------------- package net.witbe.business; public class Foo { public long getFoo() { return 1; } public void setFoo(int bh,long countm) { // nop } public long getBar() { return 5; } public long getBar(int num) { return 6; } } --------------------------------- provoque an Exception : --------------------------------- exception javax.servlet.ServletException: Unable to find a value for "foo" in object of class "net.witbe.business.Foo" using operator "." org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845) ... cause m�re javax.servlet.jsp.el.ELException: Unable to find a value for "foo" in object of class "net.witbe.business.Foo" using operator "." org.apache.commons.el.Logger.logError(Logger.java:481) org.apache.commons.el.Logger.logError(Logger.java:498) ... --------------------------------- Fabrice. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org