Bug Report: The Method queryWithRowHand
---------------------------------------

                 Key: IBATIS-543
                 URL: https://issues.apache.org/jira/browse/IBATIS-543
             Project: iBatis for Java
          Issue Type: Bug
         Environment: TomCat 5.0 , IE 6.0, Windows 2003,Eclipse 3.2
            Reporter: jcore_XiaTian


您好,ibatis:
      The interface : RowHandler.java

package com.ibatis.sqlmap.client.event;
public interface RowHandler {
 void handleRow(Object valueObject);
}

不支持抛除Exception停止迭代,这样更加方便设计回调模式的程式,否则在IE下,导出数据到输出流,如果IE里取消就回发生:
In addition to the cast does not support the Exception to stop iteration, so 
more convenient callback model of the design program, or in IE, export the data 
to the output stream, if canceled, IE took place on the back:

ClientAbortException:  java.net.SocketException: Connection reset by peer: 
socket write error
        at 
org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:416)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:356)
        at 
org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer.java:444)
        at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:431)
        at 
org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java:108)
        at 
org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java:102)
        at 
com.yinhai.xui.plugin.xuiplugin.TextExportData.doOutputRowData(TextExportData.java:82)
        at 
com.yinhai.xui.taglib.colleciton.export.CollectionDataExport.handleRow(CollectionDataExport.java:218)
        at test.collection.ExportTest.doExport(ExportTest.java:42)
        at 
com.yinhai.xui.taglib.colleciton.export.CollectionDataExport.doExport(CollectionDataExport.java:162)
        at 
com.yinhai.xui.taglib.colleciton.export.ExportDataServlet.service(ExportDataServlet.java:142)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
        at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)
2008-10-09 13:26:01,718 ERROR [http80-Processor25] - ClientAbortException:  
java.net.SocketException: Connection reset by peer: socket write error


,它应该为[It should be]:
package com.ibatis.sqlmap.client.event;
public interface RowHandler {
 void handleRow(Object valueObject) throws Exception;
}


祝开心、幸福、健康


夏天 《JavaScript高级应用与实践》("javaScript and practice of advanced applications")
http://code.google.com/p/json-rpc-for-java/

QQ: 1160 2011  
MSN: [EMAIL PROTECTED]
Email:[EMAIL PROTECTED]
Home:http://m9m.3322.org/

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to