I now have insert working.  I had not assigned values to every field before
inserting.  Although this should be OK (those unassigned fields allowed nulls),
it may be related to the update() propblem.  If I assign a default value to all
fields with primitive type or Date type, then it seems to work.

Thanks,
  Dave

----- Original Message -----
From: "Dave Carlson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 12:08 PM
Subject: Re: [castor-dev] errors with insert and update, JDO inheritance

> However, I still get the null pointer when calling insert().
>
> Here is a bit more on the error:
>
> Caused by: org.exolab.castor.jdo.PersistenceException: Nested error:
> java.lang.NullPointerException
>         at org.exolab.castor.persist.TransactionContext.create(Unknown
Source)
>         at org.exolab.castor.jdo.engine.DatabaseImpl.create(Unknown Source)
>         at com.xmlmodeling.portal.data.PortalUser.insert(PortalUser.java:41)
>

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

Reply via email to