ibatis SQLMap文件中xml注释引起的ibatis iterate问题
ibatis运行时报错
ERROR: 17:10:10 (OrderSyncDAOImpl.java:91) {"id":0,"logMessage":"databaseError","logTime":null,"operFrom":-10,"operId":"SGSH","operName":-10,"operTo":-10,"save2Db":true}org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred in org/ibmp/oba/common/model/sqlmap/oa_v1_ordersync_SqlMap.xml. --- The error occurred while preparing the mapped statement for execution. --- Check the OrderSync.findOrderSync. --- Check the parameter map. --- Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in org/ibmp/oba/common/model/sqlmap/oa_v1_ordersync_SqlMap.xml. --- The error occurred while preparing the mapped statement for execution. --- Check the OrderSync.findOrderSync. --- Check the parameter map. --- Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""...................Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in org/ibmp/oba/common/model/sqlmap/oa_v1_ordersync_SqlMap.xml. --- The error occurred while preparing the mapped statement for execution. --- Check the OrderSync.findOrderSync. --- Check the parameter map. --- Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""...........................Caused by: java.lang.NumberFormatException: For input string: ""................................
看来解决问题除了一定的经验外,一点点运气,再有就是要看RP值够不够了。 1 楼 gurudk 2012-03-14 兄弟,太给力了,这个问题也困扰我们很久,实在想不通~ 2 楼 obullxl 2012-03-15 我一般不用<![CDATA ]]>这个节点,对于小于号<,直接使用<代替。