tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21696] New: - jasper compile error with overloaded tag attribute and empty attribute value.
Date Thu, 17 Jul 2003 19:27:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21696>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21696

jasper compile error with overloaded tag attribute and empty attribute value.

           Summary: jasper compile error with overloaded tag attribute and
                    empty attribute value.
           Product: Tomcat 4
           Version: 4.1.24
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Robert_Flaherty@Hyperion.com


For example we have the following tag:

<waacoredesign:insertTransformationGridRow pageIndex="" rowIndex="" 
headerScript="testscript" precedence="true" />

Notice the empty attributes pageIndex and rowIndex

The tag code contains the overloaded attributes as follows:
	/**
	 * Sets the row index.
	 * 
	 * @param iRowIndex The row index.
	 */
	public void setRowIndex(int iRowIndex)
	{
		setRowIndex(Integer.toString(iRowIndex));
	}
	
	/**
	 * Sets the row index.
	 * 
	 * @param rstRowIndex The row index.
	 * @waa.tag-attribute
	 *    required="false"
	 *    rtexprvalue="true"
	 */
	public void setRowIndex(String rstRowIndex)
	{
		m_rstRowIndex = rstRowIndex;
	}
	
We see the following compile error:

  [jasperc] 2003-07-17 03:25:37 - ERROR-the file '\jsp\waa\test\olap\TSTViewBuil
derWithCubeViewOutputPage.jsp' generated the following general exception: java.l
ang.NumberFormatException:
  [jasperc] java.lang.NumberFormatException:
  [jasperc]     at java.lang.Integer.parseInt(Integer.java:435)
  [jasperc]     at java.lang.Integer.valueOf(Integer.java:516)
  [jasperc]     at org.apache.jasper.compiler.TagBeginGenerator.convertString(Ta
gBeginGenerator.java:292)
  [jasperc]     at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(
TagBeginGenerator.java:229)
  [jasperc]     at org.apache.jasper.compiler.TagBeginGenerator.generateServiceM
ethodStatements(TagBeginGenerator.java:332)
  [jasperc]     at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBegi
nGenerator.java:394)
  [jasperc]     at org.apache.jasper.compiler.JspParseEventListener$GeneratorWra
pper.generate(JspParseEventListener.java:834)
  [jasperc]     at org.apache.jasper.compiler.JspParseEventListener.generateAll(
JspParseEventListener.java:241)
  [jasperc]     at org.apache.jasper.compiler.JspParseEventListener.endPageProce
ssing(JspParseEventListener.java:197)
  [jasperc]     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215
)
  [jasperc]     at org.apache.jasper.JspC.parseFile(JspC.java:407)
  [jasperc]     at org.apache.jasper.JspC.parseFiles(JspC.java:727)
  [jasperc]     at org.apache.jasper.JspC.main(JspC.java:742)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message