Multiple 'this operation breaks' warning messages in logs

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following error messages appear in the logs:

Feb 18, 2008 2:00:00 AM net.sf.hibernate.impl.SessionImpl narrowProxy
WARNING: Narrowing proxy to class com.atlassian.confluence.pages.BlogPost - this operation breaks ==

Cause

This is a harmless warning from Hibernate and has already been raised as an issue at CONF-11001.

Resolution

These warnings can be suppressed:

  1. Open your confluence/WEB-INF/classes/log4j.properties file and find this line:

    # suppress warnings from the SessionImpl (like Narrowing proxy to class com.atlassian.confluence.pages.Page - this operation breaks ==)
    log4j.logger.net.sf.hibernate.impl.SessionImpl=ERROR, confluencelog
    
  2. Underneath that line, add the following line:

    log4j.additivity.net.sf.hibernate.impl.SessionImpl=false
    

    This additional line will stop these warnings from being logged to standard out, such as the catalina.out file. They already do not get sent to your atlassian-confluence.log file)

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.