티스토리 뷰

[2010/11/25 14:00:10.968] Caused by: com.ibatis.common.beans.ProbeException:
Error getting ordinal list from JavaBean.
Cause java.lang.NumberFormatException: For input string: ""
....





[발생위치]
<iterate property="answers"  open="" close="" conjunction="," >
#answersMap[]#
</iterate>)




[원인]

<iterate property="answers"  open="" close="" conjunction="," >
#answersMap[]#
</iterate>)


property명은 answers라고 선언하고선
#answersMap[]# 라고 쓰니...당연 오류..
헌데 오류메시지는 전혀 예측할 수 없는 엉뚱한 부분이라..



 protected Object getIndexedProperty(Object object, String indexedName) {
...
int i = Integer.parseInt(indexedName.substring(indexedName.indexOf('[') + 1, indexedName.indexOf(']')));

해당 위치의 값이 []안에있는 숫자값이 아니라 문자값이 들어있음

....}



댓글