1 Reply Latest reply on Jan 28, 2015 2:29 AM by valsaraj viswanathan

    java.lang.IllegalArgumentException: No property "maxBackupIndex" setter found for handler "FILE" occurred in JBoss 7.2.0.Final

    valsaraj viswanathan Master

      I am getting following error when changed to size-rotating-file-handler in JBoss 7.2.0.Final:

      java.lang.IllegalArgumentException: No property "maxBackupIndex" setter found for handler "FILE" occurred

       

           <size-rotating-file-handler name="FILE" autoflush="true">

                      <formatter>

                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                      </formatter>

                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <rotate-size value="100m"/>

                      <max-backup-index value="7"/>

                      <append value="true"/>

                  </size-rotating-file-handler>

           ..................

                  <root-logger>

                      <level name="INFO"/>

                      <handlers>

                          <handler name="CONSOLE"/>

                          <handler name="FILE"/>

                      </handlers>

                  </root-logger>

        • 1. Re: java.lang.IllegalArgumentException: No property "maxBackupIndex" setter found for handler "FILE" occurred in JBoss 7.2.0.Final
          valsaraj viswanathan Master

          Fixed when replaced FILE with FILE1:

               <size-rotating-file-handler name="FILE1" autoflush="true">

                          <formatter>

                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                          </formatter>

                          <file relative-to="jboss.server.log.dir" path="server.log"/>

                          <rotate-size value="100m"/>

                          <max-backup-index value="7"/>

                          <append value="true"/>

                      </size-rotating-file-handler>

               .................

               <root-logger>

                          <level name="INFO"/>

                          <handlers>

                              <handler name="CONSOLE"/>

                              <handler name="FILE1"/>

                          </handlers>

                      </root-logger>