<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>开心e点 &#187; Eclipse</title>
	<atom:link href="http://www.ebnd.cn/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ebnd.cn</link>
	<description>好好学习 天天向上</description>
	<lastBuildDate>Tue, 21 Jun 2011 15:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Eclipse 在 jdk1.6.0_14 下加断点调试经常停不下来</title>
		<link>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/</link>
		<comments>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 04:41:50 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=415</guid>
		<description><![CDATA[前阵碰到这个问题，一开始还以为是 Eclipse 的bug，导致调试无法进行，不知问题出在哪里。 在一段时间之后，终于忍受不了，google 了一把，找到了原因，是 jdk1.6.0_14 的bug导致的。 还比较复杂，大致Eclipse 在调试的过程中，假定已经创建好的线程ID是不变的，断点也绑定于某个线程，但是在 jdk1.6.0_14 中，这个ID值会被不可预知的改变，从而导致断点失效。 当时还没有修复，只好退回了 jdk1.6.0_13。 现在 jdk1.6.0_16 发布了，从release notes 来看，是专门解决这个问题的。记录之。 问题的相关链接： https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295 http://java.sun.com/javase/6/webnotes/6u16.html http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589 注：去年在 javaeye 写的一篇文章，搬到这里来。 相关文章三月 15, 2010 -- Eclipse 远程调试 “Failed to connect to remote vm” error (1)三月 6, 2011 -- Windows / Linux 下使用符号链接完全指南 (1)二月 22, 2011 -- 如何修改浏览器Cookie (1)一月 27, 2011 [...]]]></description>
			<content:encoded><![CDATA[<div>前阵碰到这个问题，一开始还以为是 Eclipse 的bug，导致调试无法进行，不知问题出在哪里。 </p>
<p>在一段时间之后，终于忍受不了，google 了一把，找到了原因，是 jdk1.6.0_14 的bug导致的。 <br />
还比较复杂，大致Eclipse 在调试的过程中，假定已经创建好的线程ID是不变的，断点也绑定于某个线程，但是在 jdk1.6.0_14 中，这个ID值会被不可预知的改变，从而导致断点失效。 </p>
<p>当时还没有修复，只好退回了 jdk1.6.0_13。 </p>
<p>现在 jdk1.6.0_16 发布了，从release notes 来看，是专门解决这个问题的。记录之。 </p>
<p>
问题的相关链接： </p>
<p><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137" target="_blank">https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137</a> <br />
<a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295" target="_blank">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295</a> <br />
<a href="http://java.sun.com/javase/6/webnotes/6u16.html" target="_blank">http://java.sun.com/javase/6/webnotes/6u16.html</a> <br />
<a href="http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589" target="_blank">http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589</a></div>
<p><br/></p>
<div><span style="color: #0000ff;">注：去年在 javaeye 写的<a href="http://moonese.javaeye.com/admin/blogs/450234">一篇文章</a>，搬到这里来。</span></div>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 15, 2010 -- <a href="http://www.ebnd.cn/2010/03/15/eclipse-remote-debug-error/" title="Eclipse 远程调试 “Failed to connect to remote vm” error">Eclipse 远程调试 “Failed to connect to remote vm” error</a> (1)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse 远程调试 “Failed to connect to remote vm” error</title>
		<link>http://www.ebnd.cn/2010/03/15/eclipse-remote-debug-error/</link>
		<comments>http://www.ebnd.cn/2010/03/15/eclipse-remote-debug-error/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 05:27:58 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=371</guid>
		<description><![CDATA[Eclipse 远程调试错误，发现是网络设置导致的，去掉代理以后就好了。]]></description>
			<content:encoded><![CDATA[<p>最近发现在 Eclipse 中进行远程调试别的主机上的应用的时候，总是连接不上调试端口，报 “Failed to connect to remote vm”, 如下图所示：</p>
<p><img src="http://img.f.hatena.ne.jp/images/fotolife/e/ebnd/20100315/20100315131441.png?1268630171" alt="Failed to connect to remote vm" /></p>
<p>因为以前都是可以的，所以百思不得其解，Google了半天，能找到的问题一般也都是因为对方没有开启远程调试端口，所以自然连不上，但是我这里显然不是这个情况。在困惑了好久以后，突然想到会不会是受到了 Eclipse 代理设置的影响？虽然觉得不太可能，因为我的理解是那个代理只是给 Eclipse 本身用的，并不是给通过 Eclipse 启动的应用程序用的。但是结果证明是这个原因：</p>
<p>代理设置之前：</p>
<p><img src="http://img.f.hatena.ne.jp/images/fotolife/e/ebnd/20100315/20100315131443.png?1268630560" alt="Network Connection is set to 'Manual'" /></p>
<p>去掉代理之后，远程调试就可以了。</p>
<p><img src="http://img.f.hatena.ne.jp/images/fotolife/e/ebnd/20100315/20100315131442.png?1268630543" alt="Network Connection is set to 'Direct'" /></p>
<p>也许有人会觉得无聊，好好的 Eclipse 为什么要设置个代理呢。<br />
没办法啊，两个原因，一个是公司的网络出去的话会有点困难的；另外一个就是有些Eclipse插件被墙掉了，比如Maven，所以不得已，只能设置代理来更新插件了。</p>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 23, 2010 -- <a href="http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/" title="Eclipse 在 jdk1.6.0_14 下加断点调试经常停不下来">Eclipse 在 jdk1.6.0_14 下加断点调试经常停不下来</a> (0)</li><li>十二月 3, 2009 -- <a href="http://www.ebnd.cn/2009/12/03/code-snippet-to-compare-two-versions/" title="代码：比较两个版本大小">代码：比较两个版本大小</a> (2)</li><li>九月 24, 2009 -- <a href="http://www.ebnd.cn/2009/09/24/no-unsigned-type-in-java/" title="Java 语言没有 unsigned 类型">Java 语言没有 unsigned 类型</a> (0)</li><li>九月 14, 2009 -- <a href="http://www.ebnd.cn/2009/09/14/free-rmi-port-in-java/" title="在 Java 程序中释放 RMI 端口">在 Java 程序中释放 RMI 端口</a> (0)</li><li>九月 10, 2009 -- <a href="http://www.ebnd.cn/2009/09/10/java-prime-number-check/" title="[转] Java Prime number check">[转] Java Prime number check</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/03/15/eclipse-remote-debug-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

