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
      

            [CONFSERVER-51874] Hibernate query deprecation warnings in Confluence 6 logs

            No work has yet been logged on this issue.

              dphadnis@atlassian.com Dhruv Phadnis (Inactive)
              dponzio Daniel Ponzio
              Affected customers:
              40 This affects my team
              Watchers:
              69 Start watching this issue

                Created:
                Updated:
                Resolved: