Copying issues with external links results in 500 Internal Server Error

Lyn January 13, 2016

When I try to copy a JIRA issue to another JIRA instance using JIRA to JIRA remote copy, I get a 500 internal server error (Java Nullpointer Exception) when the issue has a link pointing to an external site. The issue is still copied, however the links are not copied over to the new issue.

As soon as I remove the external link from the source issue and try to copy again, no error occurs.

java.lang.NullPointerException
java.lang.NullPointerException
	at com.atlassian.cpji.util.IssueLinkCopier$3.apply(IssueLinkCopier.java:61)
	at com.atlassian.cpji.util.IssueLinkCopier$3.apply(IssueLinkCopier.java:57)
	at com.google.common.collect.Iterators$7.computeNext(Iterators.java:649)
	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
	at com.atlassian.cpji.util.IssueLinkCopier.copyRemoteIssueLinks(IssueLinkCopier.java:84)
	at com.atlassian.cpji.util.IssueLinkCopier.copyLocalAndRemoteLinks(IssueLinkCopier.java:77)
	at com.atlassian.cpji.action.CopyIssueToInstanceAction.copyAndCreateIssueLinks(CopyIssueToInstanceAction.java:252)
	at com.atlassian.cpji.action.CopyIssueToInstanceAction.doExecute(CopyIssueToInstanceAction.java:227)
	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:88)
	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225)
	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154)
	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:87)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at com.atlassian.jira.web.filters.XContentTypeOptionsNoSniffFilter.doFilter(XContentTypeOptionsNoSniffFilter.java:22)
	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70)
	at com.atlassian.jira.onboarding.postsetup.ui.PostSetupAnnouncementsFilter.doFilter(PostSetupAnnouncementsFilter.java:61)
	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:78)

3 answers

0 votes
SK1975 August 25, 2019

J2J Issue Copy 6.0.0 on Jira Server 8.3.2 results with the same error if an issue has "Web Link" defined. Any solution to this? :(

0 votes
Doug June 20, 2016

We just experienced this exact same error. The issue was copied three times, but gave an error each time making the user think the copy did not work. Also, the external link was not copied over.

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 13, 2016

Try to check that on JIRA instance you copy to you have requared link type

Lyn January 13, 2016

Yes, the link type (web link) is also available on the jira instance we are copying to.

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2016

This link to external site is a standard JIRA URL field or provided by some plugin?

Doug June 21, 2016

For me it is a standard JIRA Web Link on JIRA 7.0.10.

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2016

Before coping try to execute integrity check. Sometimes it helps.

Doug June 30, 2016

Integrity Checker did not find anything on either JIRA instance. We run the Integrity Checker once per month.

IshanL
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 22, 2016

Have you overcome the issue? We face the same.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events