Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.StackOverflowError when Json build

Vladimir Goncharov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2021

I have a problem when Im tried to create Json from REST Endpoint. Map with result is correct and I can log it (screen 1, log before Json build), but REST return a error:

{"message":null,"stack-trace":"java.lang.StackOverflowError\n\tat org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2121)\n\tat
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)\n\tat org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)\n\tat
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)\n","status-code":"INTERNAL_SERVER_ERROR"}

 pic_16_08_2021_17-20.pngpic_16_08_2021_17-20_1.png

1 answer

1 accepted

3 votes
Answer accepted
Nir Haimov
Community Champion
August 16, 2021

Hi @Vladimir Goncharov 

What values (type of values) you have in your map?

This error usually happen when one of the variables in the map is Jira object (for example: user, group, project, issue and so on)

Instead of jira object, build custom object only with the derails you actually need

Vladimir Goncharov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2021

Thank you very much, Im tried put in result Map a LazyLoadedOption object

Nir Haimov
Community Champion
August 17, 2021

So yes, as i said, don't put any object came from Jira, build your own object only with the details you actually need from the Jira object

Suggest an answer

Log in or Sign up to answer