You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am getting a NPE when using endpoint -> https://jira:8080/rest/raven/1.0/import/feature?projectKey={KEY}
I have tried using curl:
curl -H "Content-Type: multipart/form-data" -u user:user -F "file=@features.zip" "https://jira:8080/rest/raven/1.0/import/feature?projectKey=TOM"
and postman to no avail
shortened error:
java.lang.NullPointerException
at com.xpandit.raven.testimport.service.impl.TestImportServiceImpl.a(Unknown Source)
at com.xpandit.raven.testimport.service.impl.TestImportServiceImpl.b(Unknown Source)
at java.util.Optional.orElseGet(Optional.java: 267)
at com.xpandit.raven.testimport.service.impl.TestImportServiceImpl.b(Unknown Source)
at com.xpandit.raven.testimport.service.impl.TestImportServiceImpl.a(Unknown Source)
at com.xpandit.raven.testimport.service.impl.TestImportServiceImpl.a(Unknown Source)
at com.xpandit.raven.rest.internal.b.a.a(Unknown Source)
at sun.reflect.GeneratedMethodAccessor37445.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43)
at java.lang.reflect.Method.invoke(Method.java: 498)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java: 192)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java: 83)
at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java: 53)
at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java: 34)
at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java: 53)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java: 110)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java: 190)
Feature: test
Scenario: Subscribe to topic
Given I subscribe to "Fact" topic
When I send a fact to ActiveMQ
Then it is successfully created
HOWEVER
this endpoint works on one occasion only - when I add an existing test id to the feature file, e.g.
Feature: test
@TOM-1
Scenario: Subscribe to topic
Given I subscribe to "Fact" topic
When I send a fact to ActiveMQ
Then it is successfully created
I remember this whole process used to work before and I was able to create a new test issue via this api successfully so I have no clue what is wrong now and the error is no help at all. By the way, I am able to create test issue via JIRA api successfully but there is something wrong with XRay, I believe