This is a really ugly exception thrown by Oracle from the bowels of Hibernate. In my case I had just added a table to the mapping so I at least had some idea where to look.
Looking at the integer values in the table I went through and verified each as correct in the db, mapping, entity and sequence. No luck there.
Poking around the internet though told me the error probably had nothing to do with a LONG mapping and could be ANY size mapping on any field. It’s a generic sizing error.
Luckily the table I created only had a few fields so I was able to narrow done the problem pretty quickly. In my case a VARCHAR2(4000) was attempted to be stored with much more. So, the String in the Java entity had to be controlled to make sure it was small enough.
It’s not much, but thought I would pass the info along and maybe save you some time.

Comments
Leave a comment Trackback