-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate logging in console with WARN HHH000174
PostPosted: Fri Sep 05, 2014 10:08 am 
Newbie

Joined: Fri Sep 05, 2014 9:43 am
Posts: 1
hello,
I have a system with Hibernate 4.1.7 and Spring 1.3.4 jpa. When I run myEntity.findOne(id), the hibernate WARN logging in console:
Code:
[main]; WARN; org.hibernate.dialect.function.TemplateRenderer; - HHH000174: Function template anticipated four arguments, but arguments first encountered.

Find out about some possible solutions in but could not solve my problem in http://jira.xwiki.org/browse/XWIKI-9215, https://hibernate.atlassian.net/browse/HHH-6280.
I am checking the code logging...

Code:
@SuppressWarnings({ "UnusedDeclaration" })
   public String render(List args, SessionFactoryImplementor factory) {
      int numberOfArguments = args.size();
      if ( getAnticipatedNumberOfArguments() > 0 && numberOfArguments != getAnticipatedNumberOfArguments() ) {
         LOG.missingArguments( getAnticipatedNumberOfArguments(), numberOfArguments );
      }
      StringBuilder buf = new StringBuilder();
      for ( int i = 0; i < chunks.length; ++i ) {
         if ( i < paramIndexes.length ) {
            final int index = paramIndexes[i] - 1;
            final Object arg =  index < numberOfArguments ? args.get( index ) : null;
            if ( arg != null ) {
               buf.append( chunks[i] ).append( arg );
            }
         }
         else {
            buf.append( chunks[i] );
         }
      }
      return buf.toString();
   }


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.