eclipse java io异常断管

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16700292/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:33:52  来源:igfitidea点击:

java io exception Broken Pipe

javaandroideclipseioexception

提问by Cheney Hester

I am writing an Android application in Eclipse and have had some issues between git(SourceCode) and eclipse. After resolving one such issue which is essentially that every time i pull from git eclipse loses the libraries, this error began to occur. It still lets me run all of the android applications without crashing but it makes debugging my applications almost impossible as it is constantly popping up this text (about every 2-3 seconds while running an app). I do not know what other information would be helpful to provide. I read another thread about this possibly resulting from infinite recursion but since the applications are running perfectly I don't think that it is an issue I am equipped to fix.

我正在 Eclipse 中编写一个 Android 应用程序,并且在 git(SourceCode) 和 eclipse 之间遇到了一些问题。在解决了一个这样的问题后,基本上是每次我从 git eclipse 中拉取时都会丢失库,这个错误开始发生。它仍然可以让我运行所有 android 应用程序而不会崩溃,但它使调试我的应用程序几乎不可能,因为它不断弹出此文本(运行应用程序时大约每 2-3 秒)。我不知道提供哪些其他信息会有所帮助。我阅读了另一个线程,这可能是由无限递归引起的,但由于应用程序运行良好,我认为这不是我有能力解决的问题。

Below is the output from the console:

下面是控制台的输出:

[2013-05-22 15:32:19 - ddmlib] Broken pipe
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)
at sun.nio.ch.IOUtil.write(IOUtil.java:40)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:336)
at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
at com.android.ddmlib.Client.sendAndConsume(Client.java:607)
at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
at com.android.ddmlib.Client.requestAllocationStatus(Client.java:453)
at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:835)
at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:803)
at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:763)
at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:652)
at com.android.ddmlib.DeviceMonitor.access0(DeviceMonitor.java:44)
at com.android.ddmlib.DeviceMonitor.run(DeviceMonitor.java:580)

采纳答案by Cheney Hester

The error eventually went away after a combination of rebooting, remaking and repulling from github... Pretty sure this is an eclipse problem.

在重新启动,重新制作和从 github 排斥的组合之后,错误最终消失了......很确定这是一个日食问题。

回答by ThomasW

Using the adb kill-servercommand addressed the problem for me.

使用该adb kill-server命令为我解决了这个问题。