Hibernate query deprecation warnings in Confluence 6 logs

XMLWordPrintable

    • 42
    • Severity 3 - Minor
    • 4

      Summary

      Hibernate query deprecation warnings in Confluence 6 logs

      Environment

      • Confluence 6
      • Synchrony enabled

      Steps to reproduce

      After startup the following message is printed to the atlassian-confluenc.log:

      2017-03-13 16:53:32,450 WARN [http-nio-443-exec-23] [hql.internal.ast.HqlSqlWalker] generatePositionalParameter [DEPRECATION] Encountered positional parameter near line 1, column 131 in HQL: [SELECT mem.parentGroup.name FROM com.atlassian.crowd.embedded.hibernate2.HibernateMembership mem WHERE mem.userMember.lowerName = ? and mem.parentGroup.directory.id = ? ORDER BY mem.parentGroup.lowerName]. Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
      

      Notes

      Error seems to be benign as Synchrony still works, this is a logging issue.

      Workaround

      Adding the following to log4j.properties will suppress those messages

      log4j.logger.org.hibernate.hql.internal.ast=ERROR
      

            Assignee:
            Dhruv Phadnis (Inactive)
            Reporter:
            Daniel Ponzio
            Votes:
            40 Vote for this issue
            Watchers:
            69 Start watching this issue

              Created:
              Updated:
              Resolved: