Hi,
I'm in the middle of incorporating iBATIS into my Struts project, but
am having slight trouble in getting it to work.
The problem starts when I call sqlMap.startTransaction() from within
my BaseDAO file as I get a null pointer exception... Yet when I print
out the value of sqlMap I get something like
"[EMAIL PROTECTED]" - not null as
I would have expected given the null pointer error. Sadly I do not
know of any methods I can call that show the state of the sqlMap.
Having made various small alterations to the code to try and get it to
work I eventually tried removing the line to start the transaction...
However this resulted in the following error:
com.ibatis.sqlmap.client.SqlMapException: There is no statement named
insertModule in this SqlMap.
...SqlMapExecutorDelegate.getMappedStatement(SqlMapExecutorDelegate.java:288)
...SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:491)
...SqlMapSessionImpl.update(SqlMapSessionImpl.java:89)
...SqlMapClientImpl.update(SqlMapClientImpl.java:61)
...com.xyz.BaseDAO.update(BaseDAO.java:101)
<snip/>
This leaves me at a point where I'm not certain if this means there is
a problem with my XML config file (ie. it's looking, but can't find
the statement), or if it looking in an empty object - though I'm
guessing (hoping) that fixing the first null pointer error should make
it all work fine.
Any help / suggestions apreciated.
Tim Christopher
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]