cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Mitchell <bmitc...@niac.usra.edu>
Subject Re: PosgreSQL and Modular DB Actions.
Date Tue, 15 Oct 2002 23:26:18 GMT
Antonio Gallardo Rivera wrote:

>Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but 
>with PostgreSQL 7.2.
>
>I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat 
>Linux 7.3.
>
>Someone make it work?
>
>I am having problems with:
>
><table name="groups">
>      <keys>
>      <key name="gid" type="int" autoincrement="true">
>            <mode name="auto"  type="autoincr"/>
>
I got it to work with Sybase. Above, the mode name="auto", by default is 
configured in <cocoon>/WEB_INF/cocoon.xconf as 
org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. 
I had to add a description for the ManualAutoIncrementModule.

>
>         </key>
>      </keys>
>      <values>
>         <value name="gname" type="string"/>
>      </values>   
></table>
>
>The problem is that always it trought me a exception that tell:
>
>java.sql.SQLException: ERROR:  ExecAppend: Fail to add null value in not null 
>attribute gname
>
>What I am doing wrong?
>
>Antonio Gallardo
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>

-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message