[infinispan-dev] JBoss Logged and conversion formats failures
Sanne Grinovero
sanne at infinispan.org
Fri Oct 21 07:28:48 EDT 2011
We're failing on log messages; I'm having a look but wondering if it
rings a bell to someone?
It complains about illegal formats, while the format is correct:
In this case the stop method is passing a long, and converting it via %d
Caused by: java.util.IllegalFormatConversionException: d != java.lang.String
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661)
at java.util.Formatter.format(Formatter.java:2433)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at org.jboss.logging.Log4jLogger.doLogf(Log4jLogger.java:48)
at org.jboss.logging.Logger.logf(Logger.java:2097)
at org.infinispan.util.logging.Log_$logger.tracef(Log_$logger.java:650)
at org.infinispan.transaction.TransactionTable.stop(TransactionTable.java:134)
In this other case, it's a debug message passing an int value, again
formatted with %d :
Caused by: java.util.IllegalFormatConversionException: d != java.lang.String
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661)
at java.util.Formatter.format(Formatter.java:2433)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at org.jboss.logging.Log4jLogger.doLogf(Log4jLogger.java:48)
at org.jboss.logging.Logger.logf(Logger.java:2097)
at org.infinispan.util.logging.Log_$logger.debugf(Log_$logger.java:875)
at org.infinispan.interceptors.InterceptorChain.printChainInfo(InterceptorChain.java:71)
Using org.jboss.logging:jboss-logging:jar:3.0.1 and version 1.0.0.CR2
of jboss-logging-processor
More information about the infinispan-dev
mailing list