Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3953

[LTS] Wrong formatting Strings in class LoggingResultSet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • AMQ 7.4.4.CR1
    • jdbc

      Several methods of LoggingResultSet have wrong amount of parameters in formatting String causing exception if TRACE logging.

      e.g.

      AMQ222010: Critical IO Error, shutting down the server. file=org.apache.activemq.artemis.jdbc.store.file.JDBCSequentialFile@27cbabd3, message=Error writing to JDBC file.
      java.util.MissingFormatArgumentException: Format specifier '%s'
              at java.util.Formatter.format(Formatter.java:2672) ~[?:?]
              at java.util.Formatter.format(Formatter.java:2609) ~[?:?]
              at java.lang.String.format(String.java:2897) ~[?:?]
              at org.ops4j.pax.logging.jbosslogging.JBossLoggingLogger.doLogf(JBossLoggingLogger.java:87) ~[!/:?]
              at org.jboss.logging.Logger.logf(Logger.java:2326) ~[!/:?]
              at org.apache.activemq.artemis.jdbc.store.logging.LoggingResultSet.updateBlob(LoggingResultSet.java:950) ~[!/:?]

              fnigro Francesco Nigro
              fnigro Francesco Nigro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: