Resolved. It seems I was trying to access the TurbineResources before
initialization.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus ?or Torfason
> Sent: 21. september 2000 17:17
> To: Turbine
> Subject: NullPointerException when initializing PoolBrokerService
>
>
>
> I'm getting a NullPointerException at TurbineResources.java:377
> when trying
> to get DBConnection accorting to the javadoc:
>
> DBConnection db =
> PoolBrokerService.getInstance().getConnection(driver, url,
> username, password);
>
> The exception occurs on this line
>
>
> return getGeneric().getBoolean(name, def); // Here,
>
>
> Seems like getGeneric() returns null. What could this be?
>
>
>
>
> java.lang.NullPointerException
> at
> org.apache.turbine.services.resources.TurbineResources.getInt(Turb
> ineResourc
> es.java:377)
> at
> org.apache.turbine.util.db.pool.ConnectionPool.<init>(ConnectionPo
> ol.java:14
> 4)
> at
> org.apache.turbine.services.db.PoolBrokerService.getConnection(Poo
> lBrokerSer
> vice.java:220)
> at
> com.handpoint.util.db.ConnectionPoolImpl.testTurbineConnectionPool
> ing(Connec
> tionPoolImpl.java:409)
> at
> com.handpoint.util.db.ConnectionPoolImpl.<init>(ConnectionPoolImpl
> .java:97)
> at
> com.handpoint.infopoint.services.ConnectionPoolService.service(Con
> nectionPoo
> lService.java:43)
> at
> com.handpoint.infopoint.services.InfoPointService$1.run(InfoPointS
> ervice.jav
> a:96)
> at java.lang.Thread.run(Thread.java:479)
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]