Can you provide the DAOMap.xml, the sqlmap conig file, and the employee sql map.
Larry
On 5/7/07, loester <[EMAIL PROTECTED]> wrote:
When executing the following code using MySql as a backend...
Reader reader=
Resources.getResourceAsReader("DAOMap.xml");
DaoManager daoManager =
DaoManagerBuilder.buildDaoManager(reader);
EmpDAO empDAO = new EmpDAOImpl(daoManager);
empDAO.deleteByPrimaryKey(Integer.valueOf(9000));
The following exception is thrown:
Exception in thread "main" java.lang.NullPointerException
at
com.ibatis.dao.engine.impl.StandardDaoManager.getTransaction(StandardDaoManager.java:108)
at
com.ibatis.dao.client.template.SqlMapDaoTemplate.getSqlMapExecutor(SqlMapDaoTemplate.java:61)
at
com.ibatis.dao.client.template.SqlMapDaoTemplate.delete(SqlMapDaoTemplate.java:185)
at dao.EmpDAOImpl.deleteByPrimaryKey(EmpDAOImpl.java:113)
at test.Test.main(Test.java:27)
Any idea on what may be the cause?
--
View this message in context:
http://www.nabble.com/iBatis-getTransaction-error-tf3704094.html#a10358472
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.