If IBatis is throwing following exception then apart from usual suspects of correct dtd declaration in sql-map-config xml and sql-map xml files, one should also look at the insert sql definition in sql-map xml.
com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: java.util.NoSuchElementException
I had something like this in my insert query xml definition:
INSERT INTO TEST_T (ACCT_ID) VALUES (#acctId)
above mentioned sql statement throws com.ibatis.common.xml.NodeletException which is difficult to figure out.
In my case, error is due to not having closing hash (#) with acctId
If i change the insert statement to following then things work again, notice the closing # in #acctId#
INSERT INTO TEST_T (ACCT_ID) VALUES (#acctId#)
Hope that this is of some use to others who get this error.
Thursday, July 30, 2009
Wednesday, July 22, 2009
150 is the limit of human brain!
This article from July/August 2009 issue of IEEE Security & Privacy states that based on research, it has been found that 150 is the limit of human brain to recognize other people, personally.
It has been this way forever and military formations also follow this rule and so do other tribes.
More can be read here.
It has been this way forever and military formations also follow this rule and so do other tribes.
More can be read here.
Subscribe to:
Posts (Atom)