-
Bug
-
Resolution: Won't Fix
-
High
-
None
-
5.10.4, 5.10.8, 6.0.2
-
19
-
Severity 2 - Major
-
Summary
Confluence XML-RPC function getBlogEntry does not always return the full exception message if the ID requested is a page
Environment
- Confluence 5.10+
Steps to Reproduce
- Install Confluence
- Enable XML-RPC from Administration -> Further Configuration
- Send multiple requests for getBlogEntry
Expected Results
Every time Confluence will reply with the below error
<Fault 0: 'java.lang.Exception: java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost'>
Actual Results
After multiple attempts, the returned error looks like this:
<?xml version="1.0"?><methodResponse><fault><value><struct><member><name>faultString</name><value>java.lang.Exception: java.lang.ClassCastException</value></member><member><name>faultCode</name><value><int>0</int></value></member></struct></value></fault></methodResponse>
Note the difference:
java.lang.Exception: java.lang.ClassCastException
java.lang.Exception: java.lang.ClassCastException: com.atlassian.confluence.pages.Page cannot be cast to com.atlassian.confluence.pages.BlogPost
Workaround
- The problem on the Confluence side is caused due to JVM does JIT optimisation and suppresses stack-trace for frequent errors.
- Restart of the Confluence temporary solves the problem.
- Disable JIT optimization in Confluence, add to JVM parameter:
-XX:-OmitStackTraceInFastThrow
- causes
-
JRASERVER-63769 Jira failing to load Confluence page link titles when viewing issues
- Closed
- relates to
-
CONFSERVER-45765 XML-RPC call getBlogEntry should not throw an exception if we are requesting a Page
- Closed