Yes, I do. I am using the iBATIS Developer Guide as a reference on this.
Would specifying this in my config file dictate something my code should
reference?
Andrew
<transactionManager type="JDBC">
<dataSource type="DBCP">
...
-----Original Message-----
From: Sheehan, Andrew
Sent: Monday, April 25, 2005 11:38 AM
To: 'Brandon Goodin'
Subject: RE: NullPointerException coming from StandardDaoManager
Yes, I do. I am using the iBATIS Developer Guide as a reference on this.
Would specifying this in my config file dictate something my code should
reference?
Andrew
<transactionManager type="JDBC">
<dataSource type="DBCP">
...
-----Original Message-----
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 11:31 AM
To: [email protected]
Subject: Re: NullPointerException coming from StandardDaoManager
do you have a transactionManager configured for your context?
Brandon
On 4/25/05, Sheehan, Andrew <[EMAIL PROTECTED]> wrote:
>
>
>
> Has anyone seen this issue?
>
>
>
> I am receiving a NullPointerException within the
> [com.ibatis.dao.engine.impl.]StandardDaoManager class when It tries to
> invoke getTransaction() on my DAO. The
>
> exception is occuring below: (source is from StandardDaoManager.java)
>
>
>
> public DaoTransaction getTransaction(Dao dao) {
>
> DaoImpl impl = (DaoImpl) daoImplMap.get(dao);
>
> return impl.getDaoContext().getTransaction(); <--
NullPointerException
>
> }
>
>
>
> In this particular case, I do not have any required transactions setup for
> this DAO; just a simple select (like 'select count(1) from dual'...) I
> have checked my DaoConfig object - it appears to be fine. I'm trying to
> figure out if it has to do with my sqlMap declaration in my
> sql-map-config.xml file, or is that my DaoConfig loaded, but incorrectly,
or
> ....
>
>
>
> Does anyone have any pointers on this?
>
>
>
> Thanks.