Educating the world

Our blog has over 10,000 readers a month

Tags: hibernate

Hibernate exception - attempted to assign id from null one-to-one property

April 26th, 2012
This was a tricky one to solve! Tricky because the exception doesn't happen at the point of error - it happens down the line at the time you try to commit a transaction. This is one of those error messages you just need to know. Here is the top of the exception's stack trace. Almost all of the rest of the stack trace is inside hibernate and doesn't give you any kind of clue as to the cause. more »

Active Spring transaction synchronization or active JTA

January 30th, 2012
During Spring development I got this exception, but there was almost no reference to what caused it. So after a lot of searching I found out the cause and thought I'd blog it for others struggling with the same problem. more »

BeanCreationException NoClassDefFoundError org/hibernate/usertype/UserType during Tomcat start up

July 6th, 2011
I have just spent the last 2 days looking for why my Spring container (under Tomcat) was getting ClassNotFoundException and NoClassDefFoundError during start up. There is so much mis-leading stuff in the Internet. I had 2 projects in Eclipse: the cor… more »

LazyInitializationException in servlet

November 29th, 2008
Problem: Web traffic is coming through Tomcat to one of your servlets. Your servlet accesses a couple of hibernate objects but when it tries to load a lazy proxy you get: org.springframework.web.util.NestedServletException: Request processing faile… more »

java.util.UUID primary keys in hibernate

November 1st, 2008
Surprisingly Hibernate 3 does not support UUID's. I think the main reason for this is that UUID is not yet an ANSI database type. Each database manufacturer has implemented it in a different way, stored it as a slightly different type and has a driver (o… more »