java.util.UnknownFormatConversionException: Conversion = '-'

Hibernate JIRA | Alexandre Gattiker | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 6 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 | 6 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 | 4 years ago | stammaneni
    java.util.UnknownFormatConversionException: Conversion = '0'

  1. osvzs 2 times, last 1 month ago
  2. Dunmer 4 times, last 1 month ago
  3. serious2monkeys 1 times, last 5 months ago
  4. Ajeet 1 times, last 8 months ago
  5. dmitry 2 times, last 12 months ago
1 more registered users
15 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