You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mathias Wiegard <Ma...@student.uni-ulm.de> on 2003/10/10 18:18:27 UTC

Custom DB-Generator crashes

Hi,
I wrote a custom db-generator (extends Composer Generator) where I'm
connecting to a mysql-database to generate SAX-Events for a consumer.
Exactly after 10 times using a pipeline  with the generator (the consumer is
simply a xml-serializer) cocoon is hanging up. I implemented the connection
release of the db-connection after every use in a "finally"-block. But I'm
only releasing the db-selector in the dispose-method. Could there be the
problem? Does this problem sound familiar to someone of you guys? Any
Suggestions?
Mat


Mathias Wiegard
Sedanstraße 67
89077 Ulm
GERMANY

Fon: +49 (0731) 6031938

Email: mathias.wiegard@student.uni-ulm.de


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


Re: Custom DB-Generator crashes

Posted by Frank Taffelt <fr...@interface-business.de>.
it think you have to close your db connection.

hth,
Frank

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


Re: Custom DB-Generator crashes

Posted by Geoff Howard <co...@leverageweb.com>.
Mathias Wiegard wrote:
> Hi,
> I wrote a custom db-generator (extends Composer Generator) where I'm
> connecting to a mysql-database to generate SAX-Events for a consumer.
> Exactly after 10 times using a pipeline  with the generator (the consumer is
> simply a xml-serializer) cocoon is hanging up. I implemented the connection
> release of the db-connection after every use in a "finally"-block. But I'm
> only releasing the db-selector in the dispose-method. Could there be the
> problem? Does this problem sound familiar to someone of you guys? Any
> Suggestions?

Can you give more information on exactly what Cocoon "does" what is 
printed out to screen/standard out (if anything) and what is in the 
cocoon logs?

Geoff


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