java.util.UnknownFormatConversionException: Conversion = '-'

Hibernate JIRA | Alexandre Gattiker | 5 years ago
  1. 0

    java.util.UnknownFormatConversionException: Conversion = '-' at java.util.Formatter.checkText(Formatter.java:2503) at java.util.Formatter.parse(Formatter.java:2485) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at org.jboss.logging.Slf4jLocationAwareLogger.doLogf(Slf4jLocationAwareLogger.java:85) at org.jboss.logging.Logger.debugf(Logger.java:554) at org.hibernate.internal.CoreMessageLogger_$logger.debugf(CoreMessageLogger_$logger.java:3784) at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:118) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:128) at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1057) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1109) at org.hibernate.internal.QueryImpl.list(QueryImpl.java:100) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:280) at org.hibernate.ejb.criteria.CriteriaQueryCompiler$3.getSingleResult(CriteriaQueryCompiler.java:264) Cause: org.hibernate.internal.util.EntityPrinter.toString(Iterator) calls LOG.debugf( toString( iterator.next() ) ); should be LOG.debug( toString( iterator.next() ) ); To reproduce, use an entity for which toString contains the substring "%-".

    Hibernate JIRA | 5 years ago | Alexandre Gattiker
    java.util.UnknownFormatConversionException: Conversion = '-'
  2. 0

    java.util.UnknownFormatConversionException: Conversion = '-' at java.util.Formatter.checkText(Formatter.java:2503) at java.util.Formatter.parse(Formatter.java:2485) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at org.jboss.logging.Slf4jLocationAwareLogger.doLogf(Slf4jLocationAwareLogger.java:85) at org.jboss.logging.Logger.debugf(Logger.java:554) at org.hibernate.internal.CoreMessageLogger_$logger.debugf(CoreMessageLogger_$logger.java:3784) at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:118) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:128) at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1057) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1109) at org.hibernate.internal.QueryImpl.list(QueryImpl.java:100) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:280) at org.hibernate.ejb.criteria.CriteriaQueryCompiler$3.getSingleResult(CriteriaQueryCompiler.java:264) Cause: org.hibernate.internal.util.EntityPrinter.toString(Iterator) calls LOG.debugf( toString( iterator.next() ) ); should be LOG.debug( toString( iterator.next() ) ); To reproduce, use an entity for which toString contains the substring "%-".

    Hibernate JIRA | 5 years ago | Alexandre Gattiker
    java.util.UnknownFormatConversionException: Conversion = '-'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error in SQL Developer

    Stack Overflow | 3 years ago | stammaneni
    java.util.UnknownFormatConversionException: Conversion = '0'

  1. serious2monkeys 1 times, last 2 weeks ago
  2. Ajeet 1 times, last 3 months ago
  3. dmitry 2 times, last 7 months ago
  4. mrPet 1 times, last 8 months ago
14 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.util.UnknownFormatConversionException

    Conversion = '-'

    at java.util.Formatter.checkText()
  2. Java RT
    String.format
    1. java.util.Formatter.checkText(Formatter.java:2503)
    2. java.util.Formatter.parse(Formatter.java:2485)
    3. java.util.Formatter.format(Formatter.java:2414)
    4. java.util.Formatter.format(Formatter.java:2367)
    5. java.lang.String.format(String.java:2769)
    5 frames
  3. JBoss Logging 3
    Logger.debugf
    1. org.jboss.logging.Slf4jLocationAwareLogger.doLogf(Slf4jLocationAwareLogger.java:85)
    2. org.jboss.logging.Logger.debugf(Logger.java:554)
    2 frames
  4. Hibernate
    QueryImpl.list
    1. org.hibernate.internal.CoreMessageLogger_$logger.debugf(CoreMessageLogger_$logger.java:3784)
    2. org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:118)
    3. org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:128)
    4. org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:55)
    5. org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1057)
    6. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1109)
    7. org.hibernate.internal.QueryImpl.list(QueryImpl.java:100)
    7 frames
  5. Hibernate EJB
    CriteriaQueryCompiler$3.getSingleResult
    1. org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:280)
    2. org.hibernate.ejb.criteria.CriteriaQueryCompiler$3.getSingleResult(CriteriaQueryCompiler.java:264)
    2 frames