When Creating an Inline Comment the Message "Could not save the comment" Appears

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


When creating an inline comment the message Could not save the comment appears.

The following appears in the atlassian-confluence.log

2017-04-21 08:28:13,000 ERROR [http-nio-8443-exec-45] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: Unexpected error
 -- referer: https://confluence.mycompany.com/pages/viewpage.action?pageId=12345678 | url: /rest/inlinecomments/1.0/comments | traceId: 369ce54081a42b82 | userName: 20556732
java.lang.RuntimeException: Unexpected error
Caused by: javax.xml.transform.TransformerException: java.lang.RuntimeException: Namespace for prefix 'ri' has not been declared.
Caused by: java.lang.RuntimeException: Namespace for prefix 'ri' has not been declared.



  • Confluence is being used with Wily Introscope Profiler with Java parameter



Wily Introscope Profiler inserts extra code to the JVM that uses the same XML namespace.


Remove -javaagent:/path/to/wily/Agent.jar from the Java command line. This is usually in setenv.sh or for Windows in the tomcat GUI.


Last modified on Jun 1, 2017

Was this helpful?

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