How can I track the error??  It is throwing a
"java.lang.reflect.InvocationTargetException" while trying to add an
entry via the "Insert Entry" link at the top op the page.
"/www_db/servlet/www_db/template/Insert.vm"



It looks like it wont insert the row because the id field is null - but
shouldn't it create one on it's own?

My test app is "www_db"

data from www_db-schema.xml

<database>
  <table name="RDF">
    <column name="RDF_ID" required="true" autoIncrement="true"
primaryKey="true" type="INTEGER"/>
    <column name="TITLE" size="255" type="VARCHAR"/>
    <column name="BODY" size="255" type="VARCHAR"/>
    <column name="URL" size="255" type="VARCHAR"/>
    <column name="AUTHOR" size="255" type="VARCHAR"/>
    <column name="DEPT" size="255" type="VARCHAR"/>
  </table>
</database>

data from turbine.log

        Exception:  java.lang.reflect.InvocationTargetException
        Stack Trace follows:
        java.lang.reflect.InvocationTargetException:
java.sql.SQLException: ERROR:  ExecAppend: Fail to add null value in not
null attribute rdf_id

        at org.postgresql.Connection.ExecSQL(Connection.java:533)
        at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
        at
org.postgresql.jdbc2.Statement.executeUpdate(Statement.java:78)
        at
org.postgresql.jdbc2.PreparedStatement.executeUpdate(PreparedStatement.j
ava:122)
        at
com.workingdogs.village.Record.saveWithInsert(Record.java:328)
        at com.workingdogs.village.Record.save(Record.java:185)
        at com.workingdogs.village.Record.save(Record.java:166)
        at
org.apache.turbine.om.peer.BasePeer.insertOrUpdateRecord(BasePeer.java:8
70)
        at
org.apache.turbine.om.peer.BasePeer.doInsert(BasePeer.java:774)
        at org.pxcm.www_db.om.BaseRdfPeer.doInsert(BaseRdfPeer.java:130)
        at org.pxcm.www_db.om.BaseRdfPeer.doInsert(BaseRdfPeer.java:353)
        at org.pxcm.www_db.om.BaseRdf.save(BaseRdf.java:270)
        at org.pxcm.www_db.om.BaseRdf.save(BaseRdf.java:240)
        at org.pxcm.www_db.om.BaseRdf.save(BaseRdf.java:226)
        at org.pxcm.www_db.modules.actions.SQL.doInsert(SQL.java:87)
        at java.lang.reflect.Method.invoke(Native Method)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to