Forums Register Login

Strange Hibernate exception with CGLIB

+Pie Number of slices to send: Send
Hi,
We are suddenly receiving the following exception in our production app when executing a named query which simply loads a collection of Org objects:


We have the vrsnNbr column defined as not null in the database.

Here is the mapping file:


After googling for many hours I cannot seem to make sense of this exception. Any ideas would be welcomed!

Thanks-
+Pie Number of slices to send: Send
I found out the cause to this issue. It is not the same issue most people are experiencing, according to google. Maybe it will help somebody.

Our named query was returning NULL for a not-null column in a result set. We had to look at the sql hibernate was generating to determine this.

When we ran the sql manually in Sql Developer and sure enough we saw the NULL. This is an Oracle bug and our DBAs have opened a trouble ticket with Oracle.

Thanks-
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2716 times.
Similar Threads
Joining tables
Hibernate Error - "exception setting property value with CGLIB"
1:M lost getting lists
Hibernate problem
PropertyAccessException using spring and hibernate, any clues?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:09:33.