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

[LTS] Wrong formatting Strings in class LoggingResultSet

    XMLWordPrintable

Details

    • Bug
    • Status: Ready for Review
    • Minor
    • Resolution: Unresolved
    • AMQ 7.4.4.CR1
    • None
    • jdbc

    Description

      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) ~[!/:?]

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: