0 Replies Latest reply on Aug 21, 2018 1:35 AM by Mahesh Kumar

    Jboss EAP 7.1.x (7.1.1, to 7.1.3) jsp.error.attribute.duplicate

    Mahesh Kumar Newbie

      Hi All,

      We have upgrade the Jboss EAP 6.x to 7.1.x after that when  we click the any jsp edit etc getting bellow error can you please help me

       

      2018-08-21 10:42:06,505 ERROR [io.undertow.request] (default task-10) UT005023: Exception handling request to /abc/xyz/testEdit.jsp: org.apache.jasper.JasperException: /xyz/testEdit.jsp (JBWEB004251: An error occurred at line: 353 column: 88) jsp.error.attribute.duplicate

       

      i just check the Jboss system modules "modules\system\layers\base\io\undertow\jsp\main\jastow-2.0.2.Final-redhat-1.jar " I'm thinking  below method have issues is they any way to i can disable this attributes?

      Can you please check and help me same. Thanks !!

       

      org.apache.jasper.compiler.Parser.class

      Attributes parseAttributes(boolean pageDirective) throws JasperException {
           UniqueAttributesImpl attrs = new UniqueAttributesImpl(pageDirective);

          this.reader.skipSpaces();
           int ws = 1;
           try
           {
             while (parseAttribute(attrs)) {
               if ((ws == 0) && (STRICT_WHITESPACE)) {
                 this.err.jspError(this.reader.mark(), "jsp.error.attribute.nowhitespace", new String[0]);
               }

              ws = this.reader.skipSpaces();
             }
           }
           catch (IllegalArgumentException iae) {
             this.err.jspError(this.reader.mark(), "jsp.error.attribute.duplicate", new String[0]);
           }