Page 1 of 1
FYI Java 8 and Jackson and Hibernate
Posted: Wed Aug 06, 2014 3:41 pm
by RapidTransit
Compiling to target 1.7 bytecode with the latest JDK 1.8 using latest version of Jackson, trying to serialize a Hibernate entity seems to crash the JVM.

Re: FYI Java 8 and Jackson and Hibernate
Posted: Wed Aug 06, 2014 4:05 pm
by phillipuniverse
Ouch; what's the exception? Can you open something on GitHub to track it (
https://github.com/BroadleafCommerce/Br ... rce/issues)?
Re: FYI Java 8 and Jackson and Hibernate
Posted: Thu Aug 07, 2014 6:24 am
by RapidTransit
It's a StackOverflowException but there's was no property which would cause infinite recursion. Simply downgrading the JVM fixed the problem. The even funnier part was other libraries I built Hikari and Jade4J would not work either once I downgraded even though they targeted 1.7. Just be weary of 1.8 for now I guess
Re: FYI Java 8 and Jackson and Hibernate
Posted: Thu Aug 07, 2014 6:42 am
by RapidTransit
I actually came across this while searching for something completely unrelated, about Java 8 breaking things
http://www.infoq.com/news/2014/08/Java8 ... s_homepage
Re: FYI Java 8 and Jackson and Hibernate
Posted: Thu Aug 07, 2014 2:01 pm
by phillipuniverse
Ouch, thanks Oracle.
Just BTW, in the spring4 branch on the framework (slated for 3.2) we have upgraded Jackson to the latest version since Spring officially dropped support for the non-fasterxml versions of Jackson with Spring 4.