Error Getting Ordinal List From Javabean
help others 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: "" osdir.com | 12 months ago 1 mark java.ibatisdb.user - Re: Result map problems... - msg#00227 - Recent Discussion OSDir.com osdir.com | 12 months ago 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: "" find similars com.ibatis.common 1 Root Cause Analysis 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: "" at com.ibatis.common.beans.BaseProbe.getIndexedProperty() 0 similar com.ibatis.common ComplexBeanProbe.getObject com.ibatis.common.beans.BaseProbe.getIndexedProperty(BaseProbe.java:80) com.ibatis.common.beans.ComplexBeanProbe.getProperty(ComplexBeanProbe.java:297) com.ibatis.common.beans.ComplexBeanProbe.getObject(ComplexBeanProbe.java:197) 0 similar 3 frames About Us Explore Tour Blog Privacy Policy Terms Of Use ©2016 Samebug, Inc. This site uses cookies, as explained in our cookie policy. If you agree to our use of cookies, please close this message and continue to use this site. Accept & Close
♦ Locked 1 message Joe123 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: “” Hello I am getting the following exception when trying to exectue an iterator in ibatis: Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: "" at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java: 110) https://samebug.io/exceptions/528980/com.ibatis.common.beans.ProbeException/error-getting-ordinal-list-from-javabean-cause?soft=false at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java: 457) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java: 90) at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java: 66) Below is the query in ibatis: BEGIN
within is literal text. An XML parser won't parse any elements the CDATA section might contain. -----Ursprüngliche Nachricht----- Von: Prashanth Sukumaran Gesendet: Freitag, 23. September 2005 17:56 An: Betreff: https://qnalist.com/questions/2415529/aw-probeexception-error-getting-ordinal-list-from-javabean Re: ProbeException: Error getting ordinal list from JavaBean Hi Team, I had this problem as the Query i wrote was within CDATA. When i removed the CDATA it works fine. Why http://okky.kr/seq/137323 is this a problem? What kind of logic is there in IBatis to convert a String to Integer when it is in CDATA? Thanks Prashanth. Prashanth Sukumaran wrote: Hi, I am error getting getting a ProbeException when using an iterate tag in sql maps over a list of string objects. Why does this throw an error when the data is a String. Also why is IBatis trying to convert it to an Integer. I have another query working the same when the List of String is in a Bean. The only difference i see is here error getting ordinal the list is in a Map. Please note that i am just testing the functionality to work for the List. Later i will pass a List of invoiceNum to this method. public InvoiceDetailBean getInvoiceDetail(String invoiceNum) throws SystemException { Map map = new HashMap(); List invoiceNumList = new ArrayList(); invoiceNumList.add(invoiceNum); map.put("invoiceNum", invoiceNumList); List list = null; try { list = queryForList("getInvoiceDetail", map); } catch (DaoException de) { // throw the exception about transaction failed throw new SystemException(de, "Unable to retrieve Invoice Detail for "+invoiceNum); } return list; }
를 쓰고 있는데 책에 있는 내용대로 잘 안되서 질문드립니다. 일단 요지는 map에 String 으로 3개의 값이 들어가 있고 iBatis 의 쿼리에서 WHERE 컬럼 IN (map1, map2, map3) 과 같은 형식으로 쓰려고 합니다. 아래는 소스입니다. service.java Map params = new HashMap();params.put("table1", "TB_BOARD");params.put("table2", "TB_AGENT");params.put("table3", "TB_CODE");List list = codeDao.getTableObject(params); CodeDao.java 에서는 매핑된 iBatis resource를 콜 합니다. public List getTableObject(Map params) throws Exception {return getList("getTableObject", params);} iBatis 부분은 dynamic 부분부터가 실제 제가 쓰는 부분인데 결과적으로 iterate로 IN절에 map으로 들어온 params 가 들어가야 하는데 계속 에러가 발생합니다. ERRORCause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: "" 참고로 들어오는 값을 직접 #params[]#에 세팅하면 잘 나옵니다. resultClass쪽에 잘 받아서 화면에 나오는걸 확인을 했고, 제 생각으로는 params로 변환할때 뭔가가 잘 안되는거 같은데 혹시 비슷한 문제로 고민해보셨던 분의 조언 부탁드립니다. 참고로 ibatis버전은 ibatis-2.3.4.jar 입니다. ps. #params[]# 대신에 $ 도 써보고 #[]#도 해봤습니다만 잘 안됩니다. 궁극적으로는 String 배열을 넘겨서 String 배열 값만 찍어주고 싶은데 그게 계속 안되다보니 결국 map을 이용하는걸로 다소 바꿔놨습니다. String[] 값을 IN 절에서 찍는게 더 맞는 방법이네요. 0 0 답변 2 do 2009-05-07 11:59:12.0 ArrayList에 넣는건 어떨까요?? map은 안써봐서 모르겠는데.. 0 Q u i c K 2009-05-07 13:11:42.