Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2668

Wrong formatting Strings in class LoggingResultSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • Broker
    • None

    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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m