Q:

iBatis gives an error: "com.ibatis.sqlmap.client.SqlMapException"

I am making cache for iBatis. I am using cache-model with flushInterval, flushOnExecute lines and a property named reference-type. Then after deploy I get the mentioned error:

java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: There is no statement named ibatorgenerated_updateByPrimaryKeySelective in this SqlMap.`

A:

On FlushOnExecute element there was an attributestatement set with value 'some_query'. I had to use 'naming.some_query' wbecause I was using namespace 'naming'. Normally namespace usage is not needed all the times but this part needs it.

