NullPointerException when creating a review for a file from Perforce

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

When creating a review for a file that comes from a Perforce repository Fisheye/Crucible throws a NullPointerException and the following appears in the atlassian-fisheye.log

2015-04-29 14:00:00,000 WARN  [qtp1491126818-31907 ] fisheye StreamIndexedLineReader-guardLineNumber - unknown line number 13 only know about 12 in P4:Perforce:Repo/path/to/file
2015-04-29 14:00:00,001 ERROR [qtp1491126818-31918 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.NullPointerException" (javax.servlet.ServletException) while processing "/cru/createDialog.do" (Referer:"https://fisheye.corp.alexa.com/browse/Perforce/Repo/path/to/file")
javax.servlet.ServletException: java.lang.NullPointerException

Cause

This issue is usually due to mixed line endings which confuses Fisheye.

Resolution

  1. Go to FishEye/Crucible Administration > Repositories and open the repository configuration.
  2. At SCM Details set the option Disable Multiple Print.
  3. At Maintenance, under Repository Source Index, click Start for Re-index. This will rebuild the indexes for this repository from scratch.

Last modified on Jul 31, 2018

Was this helpful?

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