sudhakarvm
2018-07-19 14:45:56 UTC
I am facing problem while json is generated from my JPA model object using
default JSON provider Johnzon.
This JPA entity class B has @ManyToOne relationship with other entity A.
Since A also includes B as @OneToMany member with List datatype. Because of
this Johnzon is going in infinite loop to prepare the json and I am getting
following exception:
/Caused by: javax.json.stream.JsonGenerationException: Invalid json
at
org.apache.johnzon.core.JsonGeneratorImpl.close(JsonGeneratorImpl.java:437)/
JPA (using eclipselink) is returning correct results. Any suggestions for
this issue please.
Thanks in advance
Sudhakar
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
default JSON provider Johnzon.
This JPA entity class B has @ManyToOne relationship with other entity A.
Since A also includes B as @OneToMany member with List datatype. Because of
this Johnzon is going in infinite loop to prepare the json and I am getting
following exception:
/Caused by: javax.json.stream.JsonGenerationException: Invalid json
at
org.apache.johnzon.core.JsonGeneratorImpl.close(JsonGeneratorImpl.java:437)/
JPA (using eclipselink) is returning correct results. Any suggestions for
this issue please.
Thanks in advance
Sudhakar
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html