NullPointerException when creating a review for a file from Perforce
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
- Go to
FishEye/Crucible Administration > Repositories
and open the repository configuration. - At
SCM Details
set the option Disable Multiple Print. - At
Maintenance
, underRepository Source Index
, click Start forRe-index
. This will rebuild the indexes for this repository from scratch.
Last modified on Jul 31, 2018
Powered by Confluence and Scroll Viewport.