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
Accepted answer

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,226 views 5 10
Read article

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