cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Problem in mod-db again
Date Fri, 25 Oct 2002 14:37:22 GMT
On 25.Oct.2002 -- 08:14 AM, Antonio Gallardo Rivera wrote:
> Hello.
> 
> I am trying to insert permission into a table. The descriptor is:
> 
> <table name="permisos">
>   <keys>
>     <key name="usr_id" type="long">
>       <mode name="request-attr" type="all"
> parameter="org.apache.cocoon.components.modules.output.OutputModule:usuarios.usr_id[0]"/>

>     </key>
>    <key name="obj_id" type="long" set="master">
>        <mode name="request-param" parameter="obj_id" type="all"/>
>    </key>
>  </keys>
> </table>
> 
> The table-set is:
> 
> <table-set name="usuario_y_permisos">
>   <table name="usuarios"/>
>   <table name="permisos" others-mode="request-attr"/>
> </table-set>
> 
> The error I got is in the sitemap.log:
> 
> Thread-4/DatabaseAction: query: INSERT INTO permisos (usr_id, obj_id) VALUES 
> (?, ?)
> Thread-4/DatabaseAction: Trying to set column permisos.usr_id from 
> request-attr using getAttribute method
> Thread-4/DatabaseAction: Setting column permisos.usr_id [0] 5
> Thread-4/DatabaseAction: Trying to set column permisos.obj_id from 
> request-param using getAttributeValues method
> Thread-4/DatabaseAction: Setting column permisos.obj_id [0] 3
> Thread-4/DatabaseAction: Setting column permisos.obj_id [1] 2
> Thread-4/DatabaseAction: ====> row no. 0
> Thread-4/DatabaseAction: Setting column permisos.usr_id[0] to 5
> Thread-4/DatabaseAction: Rolling back transaction. Caused by null

Mmmh, it looks fine so far. Could you make it throw an exception
("<throw-exception>yes</throw-exception>" in config) and send me the
log? You are using a 2.1 CVS snapshot? JDK version? Database?

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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