You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by levan Dvalishvili <ad...@amostudio.com> on 2006/05/30 07:41:39 UTC
InstantiationException on my OrderIbatisDaowhen instantiating ,please help
I have looked all over the email-archives + consulted goole, finally gave up
... ;(
cant quite find an answer..
For some reason :
daoManager = DaoManagerBuilder.buildDaoManager(reader);
throws exception I don't know what can be the reason ...
---- stack trace ---------------
Caused by: java.lang.RuntimeException: Could not initialize DaoConfig.
Cause: com.ibatis.dao.client.DaoException: Error while configuring
DaoManager. Cause: com.ibatis.dao.client.DaoException: Error configuring
DAO. Cause: java.lang.InstantiationException:
com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao
Caused by: java.lang.InstantiationException:
com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao
Caused by: com.ibatis.dao.client.DaoException: Error configuring DAO.
Cause: java.lang.InstantiationException:
com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao
Caused by: java.lang.InstantiationException:
com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao
---- end of stack trace ----------------
Is it something to do with instantiating my OrderIbatisDao, but
OrderIbatisDao seems quite normal,
As a fact I totally stripped it to see if it still breaks and I narrowed it
down to this :
public interface IOrderDao extends Dao{} // I tried without extends Dao
first same error
public class OrderIbatisDao extends SqlMapDaoTemplate implements IOrderDao{
OrderIbatisDao(DaoManager daoManager){
super(daoManager);
}
}
Still getting same error, I checked and xml resources dao.xml and
sql-map-config.xml files get loaded correctly .
------------------------
Now I am going to re-read DAO dev-guide maybe there can be the answer.
Every suggestion would be greatly appreciated; maybe someone already had
this kind of issue before.
Best Regards
Levan.