cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Using Connection Pool
Date Tue, 19 Dec 2000 11:53:44 GMT
First, someone stupidly decided that the XSP processor should init Turbine, 
so you have to put your processor after XSP in the cocoon.properties file. 
This is a bug.

"Per Steffensen" <steff@brics.dk> wrote:
>Im making my own processor and want to use Turbine Connection Pool. I 
>insert the following line in the init-method of my processor:
>
>DBConnection db = DBBroker.getInstance().getConnection("mypoolconn");
>
>I get an exception. The first lines of it is:
>
>java.lang.RuntimeException: Error while initializing My Processor engine: 
>java.lang.NullPointerException
>   at 
>org.apache.turbine.services.resources.TurbineResources.getString(TurbineResources.java:432)
>   at 
>org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:135)
>   at mts.MyProcessor.init(MyProcessor.java:65)
>   ...
>
>What can be wrong??? ("mypoolconn" should be alright since it works with 
>esql)
>
>Mvh Per Steffensen
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message