AutoFlush crashes because of erroneous debug statement
------------------------------------------------------
Key: HHH-6685
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6685
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 4.0.0.CR3
Reporter: Alexandre Gattiker
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 "%-".
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira