java.lang.IllegalArgumentException: can't parse argument number: 18=false

QOS.ch JIRA | Rodolfo Udo Labsch | 1 year ago
  1. 0

    If you try executing the following code with jul-to-slf4j you get a NumberFormatException, whereas with java.util.logging you get a normal logged message. I.e.: Logger.getLogger("test").log(Level.INFO, "abcd {18=false} {0}", "test"); Result with java.util.logging: Nov 06, 2015 12:42:03 PM Main main INFORMAÇÕES: abcd {18=false} {0} Result with jul-to-slf4j: java.lang.IllegalArgumentException: can't parse argument number: 18=false at java.text.MessageFormat.makeFormat(MessageFormat.java:1420) at java.text.MessageFormat.applyPattern(MessageFormat.java:479) at java.text.MessageFormat.<init>(MessageFormat.java:363) at java.text.MessageFormat.format(MessageFormat.java:835) at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297) at java.util.logging.Logger.log(Logger.java:616) at java.util.logging.Logger.doLog(Logger.java:641) at java.util.logging.Logger.log(Logger.java:685) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at java.text.MessageFormat.makeFormat(MessageFormat.java:1418) at java.text.MessageFormat.applyPattern(MessageFormat.java:479) at java.text.MessageFormat.<init>(MessageFormat.java:363) at java.text.MessageFormat.format(MessageFormat.java:835) at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297) org/slf4j/bridge/SLF4JBridgeHandler.java:140 Seems to use MessageFormat directly to parse parameters. But java.util.logging uses java.util.logging.SimpleFormatter for a different handling of parameters.

    QOS.ch JIRA | 1 year ago | Rodolfo Udo Labsch
    java.lang.IllegalArgumentException: can't parse argument number: 18=false
  2. 0

    If you try executing the following code with jul-to-slf4j you get a NumberFormatException, whereas with java.util.logging you get a normal logged message. I.e.: Logger.getLogger("test").log(Level.INFO, "abcd {18=false} {0}", "test"); Result with java.util.logging: Nov 06, 2015 12:42:03 PM Main main INFORMAÇÕES: abcd {18=false} {0} Result with jul-to-slf4j: java.lang.IllegalArgumentException: can't parse argument number: 18=false at java.text.MessageFormat.makeFormat(MessageFormat.java:1420) at java.text.MessageFormat.applyPattern(MessageFormat.java:479) at java.text.MessageFormat.<init>(MessageFormat.java:363) at java.text.MessageFormat.format(MessageFormat.java:835) at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297) at java.util.logging.Logger.log(Logger.java:616) at java.util.logging.Logger.doLog(Logger.java:641) at java.util.logging.Logger.log(Logger.java:685) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at java.text.MessageFormat.makeFormat(MessageFormat.java:1418) at java.text.MessageFormat.applyPattern(MessageFormat.java:479) at java.text.MessageFormat.<init>(MessageFormat.java:363) at java.text.MessageFormat.format(MessageFormat.java:835) at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297) org/slf4j/bridge/SLF4JBridgeHandler.java:140 Seems to use MessageFormat directly to parse parameters. But java.util.logging uses java.util.logging.SimpleFormatter for a different handling of parameters.

    QOS.ch JIRA | 1 year ago | Rodolfo Udo Labsch
    java.lang.IllegalArgumentException: can't parse argument number: 18=false
  3. 0

    [SLF4J-337] jul-to-slf4j inconsistent message format - QOS.ch JIRA

    qos.ch | 3 months ago
    java.lang.IllegalArgumentException: can't parse argument number: 18=false
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Debug logging causing exception when mapping an entity class [moved]

    GitHub | 4 years ago | jyemin
    java.lang.IllegalArgumentException: can't parse argument number: interface com.google.code.morphia.annotations.Id=@com.google.code.morphia.annotations.Id()

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      can't parse argument number: 18=false

      at java.text.MessageFormat.makeFormat()
    2. Java RT
      MessageFormat.format
      1. java.text.MessageFormat.makeFormat(MessageFormat.java:1420)
      2. java.text.MessageFormat.applyPattern(MessageFormat.java:479)
      3. java.text.MessageFormat.<init>(MessageFormat.java:363)
      4. java.text.MessageFormat.format(MessageFormat.java:835)
      4 frames
    3. JUL to SLF4J bridge
      SLF4JBridgeHandler.publish
      1. org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264)
      2. org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220)
      3. org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297)
      3 frames
    4. Java RT
      MessageFormat.format
      1. java.util.logging.Logger.log(Logger.java:616)
      2. java.util.logging.Logger.doLog(Logger.java:641)
      3. java.util.logging.Logger.log(Logger.java:685)
      4. java.lang.Integer.parseInt(Integer.java:492)
      5. java.lang.Integer.parseInt(Integer.java:527)
      6. java.text.MessageFormat.makeFormat(MessageFormat.java:1418)
      7. java.text.MessageFormat.applyPattern(MessageFormat.java:479)
      8. java.text.MessageFormat.<init>(MessageFormat.java:363)
      9. java.text.MessageFormat.format(MessageFormat.java:835)
      9 frames
    5. JUL to SLF4J bridge
      SLF4JBridgeHandler.publish
      1. org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264)
      2. org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220)
      3. org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297)
      3 frames