db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Usselmann, Vitali" <Usselm...@elkware.com>
Subject save() / doInsert() does not work after migrating to 3.1
Date Tue, 23 Sep 2003 10:16:31 GMT


Hi, 

I use MySql with autoincementing PK's.
After migrating to 3.1 I got a strange error, saving or 
inserting objects results in a NullpointerException, while
reading objects from the database works fine.

when calling doInsert( myDBObject )
ERROR:  : java.lang.NullPointerException 	at
org.apache.torque.util.BasePeer.doInsert(BasePeer.java:697)

BasePeer:
...
696:        TableMap tableMap = dbMap.getTable(tableName);
697:        Object keyInfo = tableMap.getPrimaryKeyMethodInfo();
...



when calling myDBObject.save() it crashes in
    public void save() throws Exception
    {
862:          save(DBObjectPeer.getMapBuilder()
                .getDatabaseMap().getName());
      }
getMapBuilder() returns null.
ERROR:  : java.lang.NullPointerException 	at
com.elkware.rumsfeld.db.BaseDBRegion.save(BaseDBRegion.java:862)

What is causing these Exceptions?
Did I misconfigure something?

Regards,
Vitali



--
usselmann@elkware.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message