<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    于 2010年12月16日 03:27, Michael B Allen 写道:
    <blockquote
      cite="mid:AANLkTi=u=7=EHyyPfc0p_Zmm9bOBDu85UGXXOZdF7oA1@mail.gmail.com"
      type="cite">
      <pre wrap="">On Tue, Dec 14, 2010 at 10:30 PM, ntrees.hu <a class="moz-txt-link-rfc2396E" href="mailto:ntrees.hu@gmail.com">&lt;ntrees.hu@gmail.com&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,all

I'm working at an application in Android with jcifs. But I get an error like
this:

W/System.err( 8799): java.net.SocketException: Transport endpoint is not
connected
W/System.err( 8799):    at
org.apache.harmony.luni.platform.OSNetworkSystem.shutdownOutputImpl(Native
Method)
W/System.err( 8799):    at
org.apache.harmony.luni.platform.OSNetworkSystem.shutdownOutput(OSNetworkSystem.
java:644)
W/System.err( 8799):    at
org.apache.harmony.luni.net.PlainSocketImpl.shutdownOutput(PlainSocketImpl.java:
450)
W/System.err( 8799):    at java.net.Socket.shutdownOutput(Socket.java:838)
W/System.err( 8799):    at
jcifs.smb.SmbTransport.doDisconnect(SmbTransport.java:351)
W/System.err( 8799):    at
jcifs.util.transport.Transport.disconnect(Transport.java:210)
W/System.err( 8799):    at
jcifs.util.transport.Transport.loop(Transport.java:122)
W/System.err( 8799):    at
jcifs.util.transport.Transport.run(Transport.java:258)
W/System.err( 8799):    at java.lang.Thread.run(Thread.java:1096)

It looks like enter a dead loop, and print the error message endless. And i have
no idea what has happened. The version of jcifs I used is 1.3.15. is anyone
could give me a help ?
</pre>
      </blockquote>
      <pre wrap="">
Hi ntrees,

This is a low-level socket error. When JCIFS tries to close the
socket, the JVM socket code is reporting that the socket is not
connected. This exception should just be ignored and obviously it is
by the stock non-embedded JVM. You could modify the JCIFS code to
isolate and ignore this particular exception.

Mike

</pre>
    </blockquote>
    Hi, Mike<br>
    <br>
    Thanks for your replay. Maybe I want to kown why JCIFS allways tries
    to close the not connected socket ?<br>
    Do you think is a Bug ? Because it print the exception message
    *endlessly*  and *quickly* ! I think it will consume more system's
    resources. <br>
    <br>
    Best Regards!<br>
    ntrees<span class="Apple-style-span" style="border-collapse:
      separate; color: rgb(0, 0, 0); font-family:
      Arial,Helvetica,sans-serif; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: 2; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px; font-size:
      medium;"><span class="Apple-style-span" style="font-size: 28px;
        font-weight: bold; line-height: 28px;"></span></span>
  </body>
</html>