ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From loester <loes.mert...@gmail.com>
Subject iBatis getTransaction error
Date Mon, 07 May 2007 14:35:21 GMT

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.


Mime
View raw message