当前位置: 代码迷 >> Android >> 控制台(Console)出错:java.io.IOException: Broken pipe
  详细解决方案

控制台(Console)出错:java.io.IOException: Broken pipe

热度:417   发布时间:2016-04-28 00:55:03.0
控制台(Console)报错:java.io.IOException: Broken pipe

 

控制台(Console)输出:

 

java.io.IOException: Broken pipe

at sun.nio.ch.FileDispatcherImpl.write0(Native Method)

at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)

at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)

at sun.nio.ch.IOUtil.write(IOUtil.java:65)

at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)

at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)

at com.android.ddmlib.Client.sendAndConsume(Client.java:675)

at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:342)

at com.android.ddmlib.Client.requestAllocationStatus(Client.java:521)

at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:831)

at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:799)

at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:759)

at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:648)

at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44)

at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:576)

 

 

 

 

真机运行报错:java.io.IOException: Broken pipe ,logcat断开连接。

 

网上找的原因:http://stackoverflow.com/questions/16700292/java-io-exception-broken-pipe

 

  相关解决方案