Uploaded image for project: 'Hibernate ORM'
  1. HHH-12627

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.0.Final
    • Fix Version/s: 5.3.1
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Hello,

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

      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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: