Skip to content

Category Archives: Exceptions

Understanding org.hibernate.TransientObjectException: object references an unsaved transient instance – save the transient instance before flushing:

Debugging Hibernate exceptions for users not so familiar with Hibernate can be frustrating. The following exception is a common source of error:- Lets try to understand the error with a use case first. The most common scenario when this exception occurs is while trying to save a collection object (but calling save/persist on parent) Consider [...]

Understanding java.lang.OutOfMemoryError: PermGen space

This error has been floated on every other forum. They say, it’s an incomplete garbage collection sweep where resources are not properly released upon unload/restart. The ubiquitous solution “seems” to be – Increase your heap size! I started reading more about it and this is what I gather from a lot of forums and articles: [...]

Debugging java.sql.BatchUpdateException

If you ever encountered a BatchUpdateException, you probably realized how frustrating it is to debug the same. Unlike a jdbc exception where the stacktrace is fine grained to database errors, Batch exceptions encapsulate all the errors within and throw this rather “useless” message. There is nothing you can do about it unless you want to [...]

Unable to install breakpoint due to missing line numbers

I came across the most bizarre error today which wasted 2 hrs of my time. While debugging the webapp via eclipse, whenever I try to set a breakpoint, I got this error: – “Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes.” I tried downloading another [...]