After upgrading to Confluence 4.0 plugins report "NoSuchMethodError"
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When upgrading to Confluence 4.0 some pages may not be accessible any more with following symptoms:
You are redirected to Page Not Found error
In the logs, you see something similar to:
1
2
3
4
5
6
7
2011-09-19 18:15:31,301 ERROR [TP-Processor1] [[Standalone].[localhost].[/confluence].[action]] log Servlet.service() for servlet action threw exception
-- referer: http://site/confluence/dashboard.action | url: /confluence/display/Space/Somespace | userName: hello
-------->java.lang.NoSuchMethodError: com.atlassian.confluence.core.ContentEntityObject.getContent()Ljava/lang/String;
at net.customware.confluence.plugin.pageapproval.PageApprovalSpaceViewPageAction.execute(PageApprovalSpaceViewPageAction.java:58)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
Notice the source of the error is generated by: ContentEntityObject.getContent();
Cause
The atlassian plugin is making an invalid remote procedure (ContentEntityObject.getContent()) call to view the page's wiki markup content. Confluence 4.0 no longer stores the page internally as wikimarkup but instead XHTML. This is also known to be caused by incompatibility issue of Page Approval Plugin.
Workaround
The workaround is to temporarily disabling the plugin (eg. Page Approval Plugin) until a 4.0 compatible version is available.
Alternatively you can disable the macro from the Universal Plugin Manager.
If you would like check if a particular macro is being used before upgrading to 4.0 (e.g. bookmarks macro) they can install macro usage plugin. This will help identify which pages use a particular macro.
Resolution
Please contact the plugin provider for a Confluence 4.0 compatible update.
Was this helpful?