Multiple 'this operation breaks' warning messages in logs
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:
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
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 youratlassian-confluence.log
file)