I have changed the demo app schema building xml files to the following :

<database>
  <table name="RDF" idMethod="idBroker">
    <column name="RDF_ID" required="true" primaryKey="true" type="INTEGER"/>
...

<database> 
  <table name="TURBINE_PERMISSION" idMethod="idbroker">
    <column name="PERMISSION_ID" required="true" primaryKey="true"
type="INTEGER"/> ....



As a result I no longer get the error mesage :

ORA-01400: cannot insert NULL into ("TURBINE"."RDF"."RDF_ID")

and I can successfully insert rows into the user/group/roles/permission
tables.



However I am still having problems inserting into the RDF table.  I get the
following message :

        Exception:  java.lang.reflect.InvocationTargetException
        Stack Trace follows:
        java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
        at org.apache.turbine.om.peer.BasePeer.doInsert(BasePeer.java:742)

which corresponds to this line of code :

            // If the keyMethod is SEQUENCE or IDBROKERTABLE, get the id
            // before the insert.    
            if (keyGen.isPriorToInsert())


Does anyone recognize this problem?  Is there something that Im not doing?

Thanks in advance.
Heather


-----Original Message-----
From: Heather Boyd [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2001 11:04
To: '[EMAIL PROTECTED]'
Subject: Oracle and newapp - again




I am new to Turbine and am trying to use the newapp demo program (with
oracle8.1.7).

When I try and do the example insert.  I get :

ORA-01400: cannot insert NULL into ("TURBINE"."RDF"."RDF_ID")

There is a row in the id_table table that corresponds to the rdf table.
I believe that this is necessary for the idbroker approach and that the
idbroker approach is the default.

I any ideas gratefully appreciated.

Thanks
Heather


PS. Im using tdk2.1b4.

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

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

Reply via email to