We're updating the issue view to help you get more done. 

Caching debug log error: java.util.MissingFormatArgumentException: Format specifier '%s'

Description

Hello,

with org.hibernate.cache=DEBUG logging, I get an exception.
Workaround: set org.hibernate.cache=INFO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Caused by: java.util.MissingFormatArgumentException: Format specifier '%s' at java.util.Formatter.format(Formatter.java:2519) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2940) at org.jboss.logging.Slf4jLocationAwareLogger.doLogf(Slf4jLocationAwareLogger.java:81) at org.jboss.logging.Logger.debugf(Logger.java:725) at org.hibernate.cache.spi.support.AbstractReadWriteAccess.get(AbstractReadWriteAccess.java:67) at org.hibernate.engine.internal.CacheHelper.fromSharedCache(CacheHelper.java:32) at org.hibernate.event.internal.DefaultLoadEventListener.getFromSharedCache(DefaultLoadEventListener.java:652) at org.hibernate.event.internal.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:596) at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:463) at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:220) at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:263) at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:122) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:90) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1255) at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1138) at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:682) at org.hibernate.type.EntityType.resolve(EntityType.java:464) at org.hibernate.type.ManyToOneType.resolve(ManyToOneType.java:239) at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:172) at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129) at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1151) at org.hibernate.loader.Loader.processResultSet(Loader.java:1010) at org.hibernate.loader.Loader.doQuery(Loader.java:948) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:340) at org.hibernate.loader.Loader.doList(Loader.java:2689) at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2536) at org.hibernate.loader.Loader.list(Loader.java:2498) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:504) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:395) at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:221) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1506) at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1538) at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1506)

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Selaron

Components

Fix versions

Affects versions

5.3.0.Final

Priority

Major