Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get an ObjectModifiedException when trying to commit a transaction?

0
10 Posted

Why do I get an ObjectModifiedException when trying to commit a transaction?

0

The dirty checking engine will throw an ObjectModifiedException when the values in the cache and in the database are different. This can happen when someone else changed the database content, but also when type mapping is not reversible. For example, if a java timestamp (java.util.Date) is stored as a DATE, the time part is lost and the dirty checking will fail. Oracle cannot tell the difference between an empty String and a null value: if an attribute value is an empty String, dirty checking will also fail. Some precision loss sometimes occur with floating point numbers. To avoid this, always use reversible mapping conversions. If this is not possible, mark the fields with dirty=”ignore” in the mapping file. I’m receiving a java.sql.SQLException: ORA-01461 When using Weblogic Portal 4.0 with Oracle I am receiving the following error: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column According to Weblogic Release Notes, this error can remedied b

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123