NullPointerException when creating review from AccuRev repository

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

A NullPointerException happens when creating a review adding content from an AccuRev repository and leaving the title of the review blank.

Steps to Reproduce:

  1. Click on Create Review. It takes directly to the Add Content menu.
  2. Click on Browse changesets and choose some changeset from an AccuRev repository.
  3. Click in Done to create the review.

The following appears in the atlassian-fisheye.log:

2014-12-04 10:00:00,000 WARN  [qtp16353814-6568 ] fisheye TxHelper-rollbackTxIfNotCommitted - Rolled back transaction started from:
java.lang.Throwable: (Stacktrace at transaction start)
(...) 
2014-12-04 10:14:30,917 ERROR [qtp16353814-6568 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.NullPointerException" (javax.servlet.ServletException) while processing "/cru/editRevisionsAjax.do" (Referer:"http://localhost:8060/cru/CR-1/edit-changelog/repo/")
javax.servlet.ServletException: java.lang.NullPointerException
(...)
Caused by: java.lang.NullPointerException

Cause

If you use the AccuRev plugin this is most likely a bug and you should reach out to  AccuRev Support for further information. If you do not have AccuRev you may be running into the following bug:  CRUC-7259 - Getting issue details... STATUS

If you do not have AccuRev please follow the resolution and workarounds listed on the bug ticket, if you do have AccuRev continue reading this page. 

Workaround

Workaround 1: Before clicking in Done to create the review, click in Edit Details and add a title to the review.

Workaround 2: Add the repository as a native repository (FishEye/Crucible Administration > Repositories > 'Native Repository access' tab > Add Repository) and create the review from this repository.

Resolution

Version 2014.4-SNAPSHOT of the AccuRev plugin resolves this issue. Please upgrade the plugin in your Fisheye/Crucible instance.

Last modified on Jul 31, 2018

Was this helpful?

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