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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to