NullPointerException When Trying to Configure Application links
症状
When trying to add the Jira URL in 'Confluence Admin >> Application Links', Confluence throws a NullPointerException. The following appears in the atlassian-confluence.log
:
Dec 1, 2011 10:05:59 AM com.sun.jersey.server.impl.application.WebApplicationImpl onException
SEVERE: Internal server error
java.lang.NullPointerException
at com.atlassian.confluence.applinks.ConfluenceInternalHostApplication.getId(ConfluenceInternalHostApplication.java:221)
...
or,
2012-08-30 15:02:45,327 ERROR [http-9090-1] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service
-- url: /rest/applinks/1.0/manifest | userName: anonymous
java.lang.NullPointerException
at com.atlassian.confluence.applinks.ConfluenceInternalHostApplication.getId(ConfluenceInternalHostApplication.java:226)
...
原因
Server ID of Confluence is either missing in the database or incorrectly set. This cause is covered more at Server ID Shows as $action.serverId, $action.sid or n.v.
ソリューション
- Confluence を停止します。
Fix the Server ID missing issue by performing the resolution steps at Server ID Shows as $action.serverId, $action.sid or n.v.
- Confluence を再起動します。
- Re-configure Application link
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.