Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-DdebugModels returns StackOverFlowException #883

Closed
emreakca opened this issue Aug 23, 2018 · 3 comments
Closed

-DdebugModels returns StackOverFlowException #883

emreakca opened this issue Aug 23, 2018 · 3 comments

Comments

@emreakca
Copy link

emreakca commented Aug 23, 2018

Description

Hey, can someone help me with this issue: when i try to -DdebugModels, i get an StackOverFlowErrorException. Generating the client works without problems, so does
-DdebugOperations...
Had someone the same error or know a fix? Or a suggestion on how I can find the cause?

error
com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.ArrayList[0]->org.openapitools.codegen.CodegenModel["parentModel"]
openapi-generator version

3.1 & 3.2.3

Command line used for generation

java -DdebugModels -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i http://localhost:8080/openapi.json -g java

@jmini
Copy link
Member

jmini commented Aug 24, 2018

Maybe this is a duplicate of #241 ?

@wing328
Copy link
Member

wing328 commented Aug 27, 2018

UPDATE: I've filed #903 to fix the issue.

Please take a look when you've time.

@wing328
Copy link
Member

wing328 commented Aug 27, 2018

#903 has been merged into master. Please try the latest (SNAPSHOT, docker images, etc) when you've time

@wing328 wing328 closed this as completed Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants