NullPointerException is thrown when trying to change Crucible project key
Symptoms
The following appears in the atlassian-fisheye-<date>.log
:
2009-09-15 10:04:08,890 ERROR [btpool0-283] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /fisheye/admin/updateProject.do
java.lang.NullPointerException
at com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey(DefaultJiraServerManager.java:394)
at com.cenqua.crucible.model.managers.impl.DefaultProjectManager.changeProjectKey(DefaultProjectManager.java:100)
at com.cenqua.crucible.actions.admin.project.ProjectDataFactory.updateProject(ProjectDataFactory.java:40)
at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:55)
at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:31)
at com.atlassian.fisheye.spi.TxTemplate.execute(TxTemplate.java:137)
at com.cenqua.crucible.actions.admin.project.UpdateProjectAction.execute(UpdateProjectAction.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Cause
This is a bug in Crucible - CRUC-2202Getting issue details... STATUS
Workaround
- Backup Fisheye/Crucible for rollback purposes
- Stop Fisheye
Run the following SQL command to clean the DB:
delete from cru_revpermaid where cru_review_id is null;
- Restart Fisheye/Crucible
Resolution
Upgrade to Fisheye/Crucible 2.10.0+
Last modified on Jul 31, 2018
Powered by Confluence and Scroll Viewport.