From: <th...@us...> - 2004-01-15 15:48:19
|
Update of /cvsroot/jaxme/JaxMe/src/runtime/de/ispsoft/jaxme/tamino In directory sc8-pr-cvs1:/tmp/cvs-serv9174/src/runtime/de/ispsoft/jaxme/tamino Modified Files: InoResponseHandlerNoNs.java Log Message: bugfix in cursor based tamino query (ignoring errorcode8306) Index: InoResponseHandlerNoNs.java =================================================================== RCS file: /cvsroot/jaxme/JaxMe/src/runtime/de/ispsoft/jaxme/tamino/InoResponseHandlerNoNs.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- InoResponseHandlerNoNs.java 13 Jan 2004 12:00:16 -0000 1.4 +++ InoResponseHandlerNoNs.java 15 Jan 2004 15:48:13 -0000 1.5 @@ -158,7 +158,10 @@ } else if (INO_RESPONSE2_URI.equals(namespaceUri)) { if ("message".equals(localName)) { String retval = attr.getValue(INO_RESPONSE2_URI, "returnvalue"); - if (retval == null || !retval.equals("0")) { + // The errorcode 8306 means that the cursor position is wrong + // ==> no data are found. This is not terrible therefore no exception + // is to be thrown + if (retval == null || !(retval.equals("0") || retval.equals("8306"))) { inoErrorCode = retval; inoErrorMessage = new StringBuffer(); inInoMessage = true; |