Your constructor is package-level accessible, change it to public:
public class OrderIbatisDao extends SqlMapDaoTemplate implements
IOrderDao{
_public_ OrderIbatisDao(DaoManager daoManager){
super(daoManager);
}
}
-----Original Message-----
From: levan Dvalishvili [mailto:[EMAIL PROTECTED]
Sent: dinsdag 30 mei 2006 7:42
To: [email protected]
Subject: 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.