renderPanels NullPointerException Subversion RevisionIndexer
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
Summary
Symptoms
When linking a Subversion repository to JIRA, the "Commit" or "Activity" panel produces a Null Pointer Exception when trying to render the panel
The following appears in the atlassian-jira.log
:
1
2
3
4
2012-02-22 14:04:09,183 http-8080-1 ERROR adminuser 844x8x1 1werhst 192.168.1.194 /browse/SVNKIT-126 [webwork.util.ValueStack] METHOD: "renderPanels", exception: java.lang.NullPointerException
at com.atlassian.jira.plugin.ext.subversion.revisions.RevisionIndexer.getLogEntriesByRepository(RevisionIndexer.java:532)
at com.atlassian.jira.plugin.ext.subversion.issuetabpanels.changes.SubversionRevisionsTabPanel.getActions(SubversionRevisionsTabPanel.java:74)
Diagnosis
Run svnadmin verify
against the repository to ensure there are no machine-fixable errors.
Enable DEBUG logging of the Subversion plugin by editing the log4j.properties
file (under $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/
) by adding the following entry to the file:
1
2
3
# Subversion Debug logging
log4j.category.com.atlassian.jira.plugin.ext.subversion = DEBUG, console, filelog
log4j.additivity.com.atlassian.jira.plugin.ext.subversion = false
then restart JIRA to enable the change.
Cause
The Subversion repository is not providing data when the getLogEntriesByRepository
method is run. Running svnadmin verify
against the repository produces no errors or information (it considers the repository "clean and safe").
Solution
Resolution
Go to this Studio page – https://studio.plugins.atlassian.com/browse/SVN-359
Download the file – https://studio.plugins.atlassian.com/secure/attachment/20381/atlassian-jira-subversion-plugin-0.10.7-distribution.zip
Rename the
.zip
file to.jar
Shut down JIRA and replace the JAR in
$JIRA_INSTALL/atlassian-jira/WEB-INF/lib/
(or the appropriate Tomcat directory if using theWAR
archive).Start JIRA and synchronize your repository
You should see the following error messages if you have Debug logging for subversion enabled:
1
2012-03-15 11:55:03,968 http-8080-14 DEBUG adminuser 715x208x1 560qx7 192.168.1.193,172.16.1.190 /browse/SVNKIT-126 [ext.subversion.revisions.RevisionIndexer] NullPointerException - Failed to retrieve log entry for Rev 1234. Continuing to next revision.
Was this helpful?