-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
bepling wrote:
> > public class CqtdbConnect extends HttpServlet
> > {
> > DbConnectionBroker myBroker;
> >
> >
> > public void init (ServletConfig config) throws ServletException {
> > super.init(config);
> > // This sets up a connection broker with a minimum pool size of 10
> > // and a maximum of 20. The log file is created in
>H:\Projects\CqtdbTest\connection.log
> > // Pool connections will be restarted once a day.
> >
> > try {myBroker = new DbConnectionBroker(
>"oracle.jdbc.driver.OracleDriver",
> >
>"jdbc:oracle:thin:@xxx.xxx.xx.xxx:1523:cqtdb",
> > "username", "password", 10, 20,
> >
>"H:\\Projects\\CqtdbTest\\connection.log", 0.01);
> > }
> >
> > catch (IOException e5) {
System.out.println( "Exception: " +e ); might help.
}
> >
> > //{{INIT_CONTROLS
> > //}}
> > }
> >
> > // return the connection to the broker
> LINE 75 >>>>>>>> myBroker.freeConnection(conn);
> > }
> >
>
> The jserv.log shows the error to be at line 75 but I believe it starts
> at the init section.
> The reason being is when a connection pool is started it should write
> something to connection.log.
> Well connection.log is empty after I try to run this using jserv.
> It is not empty when run under Visual Cafe using servletrunner.
The error occurs in Lin 75. myBroker == null
So the reason for the error is that there is a IOException thrown, which
you catch but dont print.
Stefan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]