When I delete a testCase , I met a exception

First , I bulk import some testCases and testFolders into JIRA

The testFolder have a link to testCase.

And later , I bulk delete some testFolder in jira.

Now , I meet an issue :

when I want to delete a testCse , I met a exception below :

java.lang.NullPointerException
java.lang.NullPointerException
	at com.atlassian.jira.issue.IssueFactory$1.transform(IssueFactory.java:79)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:632)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:610)
	at org.apache.commons.collections.CollectionUtils.collect(CollectionUtils.java:575)
	at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexIssueObjects(DefaultIndexManager.java:362)
	at com.atlassian.jira.issue.index.DefaultIndexManager.reIndex(DefaultIndexManager.java:382)
	at com.atlassian.jira.issue.index.DefaultIndexManager.reIndex(DefaultIndexManager.java:375)
	at sun.reflect.GeneratedMethodAccessor1258.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83)
	at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
	at com.sun.proxy.$Proxy131.reIndex(Unknown Source)
	at com.atlassian.jira.issue.link.DefaultIssueLinkManager.reindexLinkedIssues(DefaultIssueLinkManager.java:149)
	at com.atlassian.jira.issue.link.DefaultIssueLinkManager.removeIssueLinkInternal(DefaultIssueLinkManager.java:240)
	at com.atlassian.jira.issue.link.DefaultIssueLinkManager.deleteIssueLinksFromIssue(DefaultIssueLinkManager.java:332)
	at com.atlassian.jira.issue.link.DefaultIssueLinkManager.removeIssueLinksInternal(DefaultIssueLinkManager.java:311)
	at com.atlassian.jira.issue.link.DefaultIssueLinkManager.removeIssueLinksNoChangeItems(DefaultIssueLinkManager.java:288)
	at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.removeIssueLinks(DefaultIssueDeleteHelper.java:177)
	at com.atlassian.jira.issue.managers.DefaultIssueDe

And in jira log, it shows

/browse/CMCGEN-4711[jira.issue.link.LinkCollectionImpl] Issue[id=50225] links to a non-existing issue!

Can someone know why this happen? And how can I fix this?

1 answer

1 accepted

1 vote

Xin,

Apparently you are having some data problems. Please try to run the Jira integrity checker and let us know the results.

https://confluence.atlassian.com/display/JIRA/Using+the+Database+Integrity+Checker

Cheers,

Luciano

Thank you very much ,I have fixed the issue by this tool , thank you again

Great I could help! :)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,329 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot