You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Benjamin Graf (Jira)" <ji...@apache.org> on 2020/03/19 17:04:00 UTC

[jira] [Created] (ARTEMIS-2668) Wrong formatting Strings in class LoggingResultSet

Benjamin Graf created ARTEMIS-2668:
--------------------------------------

             Summary: Wrong formatting Strings in class LoggingResultSet
                 Key: ARTEMIS-2668
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2668
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 2.11.0
            Reporter: Benjamin Graf


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

e.g.
{noformat}
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) ~[!/:?]
{noformat}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)