See below.

> DC>Caused by: org.exolab.castor.jdo.PersistenceException: Nested error:
> DC>java.lang.NullPointerException
> DC>        at org.exolab.castor.persist.TransactionContext.create(Unknown
Source)
> DC>        at org.exolab.castor.jdo.engine.DatabaseImpl.create(Unknown
Source)
> DC>        at
com.xmlmodeling.portal.data.PortalUser.insert(PortalUser.java:41)
> DC>
> DC>The Java classes were generated from an XML Schema using Castor source
> DC>generator, so they are a bit verbose to copy relevant parts.  Here is the
> DC>mapping.xml for the two classes involved in the inheritance.  I'm
attempting to
> DC>insert the subclass, PortalUser.
>
> The NullPointerException stack trace says that PortalUser.java, line
> #41 is the problem. What's on that line? When debugging this type of
> exception, without the relevant code it's difficult to speculate.
>

That line simply calls "db.insert(this)", then the NPE occurs within
TransactionContext.create()

>
> What database are you using? The reason I ask is that there is a problem with
> either Oracle or the Oracle JDBC drivers and the way timestamps are handled.
> The trouble is with handling of the nanoseconds. This is what could cause the
> date fields to be off resulting in the ObjecModifiedException.
>

I'm using SQL Server.  But your comment about dates prompts a thought that I
may be using java.util.Date in my Java apps and this is causing some difference
with the timestamp format in the database.

Thanks,
  Dave

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to