Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Insert Error

I would guess that one of your related objects has a reference to this null
object.

If you enable logging on finest you should get an idea of what objects were
written to get to this object.

Otherwise you can try debugging by updating each lower level object to see
which has the issue, or inspecting them, or putting a breakpoint in the
exception.


khaskett wrote:
> 
> I'm trying to track down an issue with my application.  We have several
> nested domain objects that get updated during a lengthy process.  At the
> end we call the .update on a high level object.  In most cases this seems
> to work fine.  But in some scenarios, we get a database error. Here is the
> error -
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 1.2.0.v20091016-r5565):
> org.eclipse.persistence.exceptions.DatabaseException Internal Exception:
> java.sql.SQLException: [SQL0407] Null values not allowed in column or
> variable TRANS00004. Error Code: -407 Call: INSERT INTO CP_TRANSACTION 
> 
> This is the top level domain, and it looks like it is trying to create a
> new instance of this Domain object.  But during the process we never
> create this instance. 
> 
> Is there a way to track down the domain object instance that initiates
> this creation?  I have put breakpoints in the Domain object itself in the
> default constructor and they do not go through this method.  Any other
> suggestions?  Because it is such a lengthy process I have not figured out
> what path it is taking that seems to cause this.
> 
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://old.nabble.com/Insert-Error-tp27710955p27747891.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top