<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WTP - Open Source</title>
	<atom:link href="http://xiajunshi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://xiajunshi.wordpress.com</link>
	<description>Welcome to my blog and give the suggestion - Xia Jun Shi</description>
	<lastBuildDate>Thu, 16 Apr 2009 14:47:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xiajunshi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>WTP - Open Source</title>
		<link>http://xiajunshi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xiajunshi.wordpress.com/osd.xml" title="WTP - Open Source" />
	<atom:link rel='hub' href='http://xiajunshi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Stack Traces for Bug 244862 &#8211; WTP</title>
		<link>http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/</link>
		<comments>http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 01:36:26 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=187</guid>
		<description><![CDATA[After I recieved the email from Peter Liu who mentioned Tahereh&#8217;s working bug 244862, I take a quick look. I followed Davoud&#8217;s introduction to reproduce it. I catch several stack traces for the bug 244862 in different scenarios even though I don&#8217;t what we can do to fix the bug. Anyway I posted them so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=187&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After I recieved the email from Peter Liu who mentioned <a href="http://myblog110.wordpress.com/">Tahereh&#8217;s</a> working <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=244862">bug 244862</a>, I take a quick look. I followed <a href="http://challenger110.wordpress.com/2009/02/23/eclipse-wtp-bug-244862/">Davoud&#8217;s introduction </a>to reproduce it. I catch several stack traces for the bug 244862 in different  scenarios even though I don&#8217;t what we can do to fix the bug. Anyway I posted them so that other students may get some hints from the stack traces.</p>
<p><strong>Stack Trace for creating a server</strong><br />
<div id="attachment_192" class="wp-caption aligncenter" style="width: 460px"><a href="http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/bug244862_createserver21/" rel="attachment wp-att-192"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug244862_createserver21.png?w=450&#038;h=281" alt="Stack trace for creating a server" title="bug244862_createserver21" width="450" height="281" class="size-full wp-image-192" /></a><p class="wp-caption-text">Stack trace for creating a server</p></div></p>
<p><strong>Stack Trace for Starting a server without any Started server</strong><br />
<div id="attachment_194" class="wp-caption aligncenter" style="width: 460px"><a href="http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/bug244862_startserver41/" rel="attachment wp-att-194"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug244862_startserver41.png?w=450&#038;h=281" alt="Stack stack for starting a server when there no started server" title="bug244862_startserver41" width="450" height="281" class="size-full wp-image-194" /></a><p class="wp-caption-text">Stack stack for starting a server when there no started server</p></div></p>
<p><strong>Stack Trace for Starting a Server with a Started Server</strong><br />
<div id="attachment_196" class="wp-caption aligncenter" style="width: 460px"><a href="http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/bug244862_startserver7/" rel="attachment wp-att-196"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug244862_startserver7.png?w=450&#038;h=281" alt="Stack Trace for starting server, publishing the server is failed" title="bug244862_startserver7" width="450" height="281" class="size-full wp-image-196" /></a><p class="wp-caption-text">Stack Trace for starting server, publishing the server is failed</p></div></p>
<p><strong>Stack Trace for Deleting Server Project from Package Explore</strong><br />
<div id="attachment_202" class="wp-caption aligncenter" style="width: 460px"><a href="http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/bug244862_deleteserver2/" rel="attachment wp-att-202"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug244862_deleteserver2.png?w=450&#038;h=281" alt="Delete the server project from package explore" title="bug244862_deleteserver2" width="450" height="281" class="size-full wp-image-202" /></a><p class="wp-caption-text">Delete the server project from package explore</p></div></p>
<p><strong>Stack Trace for Deleting Server from Server View</strong><br />
<a href="http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/bug244862_deleteserver3/" rel="attachment wp-att-203"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug244862_deleteserver3.png?w=450&#038;h=281" alt="bug244862_deleteserver3" title="bug244862_deleteserver3" width="450" height="281" class="aligncenter size-full wp-image-203" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=187&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/04/12/stack-trace-for-bug-244862/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug244862_createserver21.png" medium="image">
			<media:title type="html">bug244862_createserver21</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug244862_startserver41.png" medium="image">
			<media:title type="html">bug244862_startserver41</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug244862_startserver7.png" medium="image">
			<media:title type="html">bug244862_startserver7</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug244862_deleteserver2.png" medium="image">
			<media:title type="html">bug244862_deleteserver2</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug244862_deleteserver3.png" medium="image">
			<media:title type="html">bug244862_deleteserver3</media:title>
		</media:content>
	</item>
		<item>
		<title>How does &#8220;Run as-&gt;Run configurations&#8221; work</title>
		<link>http://xiajunshi.wordpress.com/2009/04/06/how-does-run-run-configurations-work/</link>
		<comments>http://xiajunshi.wordpress.com/2009/04/06/how-does-run-run-configurations-work/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:00:23 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=164</guid>
		<description><![CDATA[As I tried to investigate the bug 137822 which is related to the server configuration, I got some idea about how the server configuration works. Anyway I posted some of my findings so that some other students may get some help from my findings to fix some other server related bugs (there are still some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=164&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I tried to investigate the bug 137822 which is related to the server configuration, I got some idea about how the server configuration works. Anyway I posted some of my findings so that some other students may get some help from my findings to fix some other server related bugs (there are still some server-related bugs need to be fixed in the bug list.).</p>
<p>After Clicking the &#8220;Run -&gt; Run Configurations&#8221;, the following steps are invoked:</p>
<ol>
<li>
        The configuration dialog is opened
       </li>
<li>
        The content of the configuration dialog is created and filled with all the controls and actions .</p>
<ul>
<li>Create the Viewer area with the event control and action
        </li>
<li>Create the Edit area with the event control, created the tab, filled the server combo from the tomcat server list in the server view
        </li>
<li>Initialize the values including the arguments in the tabs
        </li>
<li>Display the Run Configurations Dialog and be ready to catch any event including mouse and key activities
        </li>
</ul>
<li>Catch the Double Click event/ New_configuration action/Selected Item Change event, fire the actions
        </li>
<li>Create instances including wc with a unique name such as  &#8220;New configuration(1)&#8221;, configuration dialog and the group tabs, initialize the tab content.
        </li>
<li>write the new configuration information to a file and update launch manager with the new configuration.
</li>
<li>Display the updated configuration dialog
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=164&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/04/06/how-does-run-run-configurations-work/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>
	</item>
		<item>
		<title>Bug 137822 is fixed :)</title>
		<link>http://xiajunshi.wordpress.com/2009/04/04/bug-137822-is-fixed/</link>
		<comments>http://xiajunshi.wordpress.com/2009/04/04/bug-137822-is-fixed/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 23:43:35 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=152</guid>
		<description><![CDATA[It&#8217;s very happy to know that my fellow Le fixed the bug 137822 based on my posting. see Le&#8217;s post. Anyway, I list some important classes and methods which related to the bug and web server. Some other person who worked on the web server tool may get some help or hint from my investigation. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=152&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very happy to know that my fellow Le fixed the bug 137822 based on my posting. see <a href="http://wb-os.blogspot.com/">Le&#8217;s post</a>.</p>
<p>Anyway, I list some important classes and methods which related to the bug and web server. Some other person who worked on the web server tool may get some help or hint from my investigation.</p>
<ol>
<li>
org.eclipse.debug.internal.ui.launchConfigurations is a important package in the plugin.</p>
<ul>
<li>
CreateLaunchConfigurationAction.performAction() &#8212; create wc with the unique name &#8220;New_Configuration(1)&#8221;,configuration dialog with all the tabs, set the default configuration for the dialog to be the new created wc .</li>
<li>LaunchConfigurationView.handleConfigurationAdded()
</li>
<li>
createLaunchConfigurationSelectionArea()<br />
(handler double click, display a tree of launch configurations that may select, and allow to create new configurations and delete, duplicate existing configuration)</li>
<li>
LaunchConfigurationTabGroupViewer &#8212; create a viewer to display tabs for a launch configuration with Apply and Revert button.
</li>
<li>LaunchConfigurationDialog (line 423(create),1055(open))<br />
 create the launch configuration dialog
</li>
<li>LaunchConfigurationTabGroupViewer.inputChanged
</li>
<li>.LaunchConfigurationDialog (line 543) &#8212; catch selectionEvent, then call handleConfigurationAdded()</li>
</ul>
</li>
<li>
org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.performApply()<br />
(will get the server configuration &#8220;Tomcat 6.0&#8243;)	</li>
<li>
org.eclipse.wst.server.core.internal.Server.getLaunchConfiguration(bool,IProgress) &#8212; bool is true, will create a new server.
</li>
<li>
    org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.<br />
setLaunchConfiguration ILaunchConfigurationWorkingCopy workingCopy, IProgressMonitor monitor) (set the tomcat arguments for the VM and Program)</li>
<li>
  org.eclipse.debug.internal.core.LaunchManager.run() &#8212; catch Add, then launch fListener.launchConfigurationAdded(fConfiguration)</li>
<li>
  org.eclipse.swt.Display.runDerredEvents() &#8211;Always called by Display to get any event including selection, mousedown etc. </li>
<li>
  org.eclipse.jface.util.OpenStrategy.handlerEvent &#8212; catch all the event, mouseup,mousedown, etc. then call function<br />
   . Keydown may invoke fireOpenEvent(new SelectionEvent(e))<br />
   .Selection may invoke fireSelectionEvent(event); then may invoke firePostSelectionEvent(new SelectionEvent(e))	</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=152&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/04/04/bug-137822-is-fixed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>
	</item>
		<item>
		<title>A little progress &#8211; bug 137822</title>
		<link>http://xiajunshi.wordpress.com/2009/04/03/a-little-progress-bug-137822/</link>
		<comments>http://xiajunshi.wordpress.com/2009/04/03/a-little-progress-bug-137822/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 04:38:54 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=139</guid>
		<description><![CDATA[Today I add following code to the line 132 of org.eclipse..server.ui.ServerLaunchConfigurationTab(), then I am able to get the arguments and run the server without exception. try{ server2.getLaunchConfiguration(true, null); }catch(Exception ex){} However, there are two Apach Servers created when I click the new once. Because a new server instance will be created by using the name [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=139&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I add following code to the line 132 of org.eclipse..server.ui.ServerLaunchConfigurationTab(), then I am able to get the arguments and run the server without exception.</p>
<p>try{<br />
						server2.getLaunchConfiguration(true, null);<br />
}catch(Exception ex){}</p>
<p>However, there are two Apach Servers created when I click the new once.<br />
 <a href="http://xiajunshi.wordpress.com/2009/04/03/a-little-progress-bug-137822/bug137822-two-servers1/" rel="attachment wp-att-141"><img src="http://xiajunshi.files.wordpress.com/2009/04/bug137822-two-servers1.png?w=450&#038;h=281" alt="bug137822-two-servers1" title="bug137822-two-servers1" width="450" height="281" class="aligncenter size-full wp-image-141" /></a></p>
<p>Because a new server instance will be created by using the name &#8220;Tomcat v6.0 Server at localhost&#8221; in the method server.getLauchConfiguration(true,null). So there is a problem to use server.getLauchConfiguration(true,null) to get the configuration.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=139&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/04/03/a-little-progress-bug-137822/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/04/bug137822-two-servers1.png" medium="image">
			<media:title type="html">bug137822-two-servers1</media:title>
		</media:content>
	</item>
		<item>
		<title>A summary of investigation &#8211; bug 137822</title>
		<link>http://xiajunshi.wordpress.com/2009/04/02/133/</link>
		<comments>http://xiajunshi.wordpress.com/2009/04/02/133/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:00:37 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=133</guid>
		<description><![CDATA[I felt I was lost in the forest of the code when I try to use debug again and again. Anyway I write down I already knew on this blog to give a summary of my job. It may be easier to get a hint from somebody who stands out of the forest. According to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=133&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I felt I was lost in the forest of the code when I try to use debug again and again. Anyway I write down I already knew on this blog to give a summary of my job. It may be easier to get a hint from somebody who stands out of the forest.</p>
<p>According to the suggestion from Larry Isaacs&#8217;s answer dated on March 16 of newsgroup( http://www.eclipse.org/newsportal/thread.php?group=eclipse.webtools&amp;first=101&amp;last=150 ). I copied the arguments from &#8220;Open launch configuration&#8221; link to the empty text area of &#8220;Run -&gt; Run Configurations -&gt; Apache Tomcat -&gt; New -&gt; Argument&#8221;, then click &#8220;Apply&#8221; button and &#8220;Run&#8221;, the server can run without any exception. Based on Larry&#8217;s suggestion and my investigation, there are four possible solutions about bug 137822:</p>
<p>1. When we new a tomcate server, the system set some default value for Program<br />
and VM at the same time.<br />
2. When we click the dropdown list and select one server, then click button<br />
&#8220;apply&#8221;, the values are set at that time.<br />
3. The system didn&#8217;t set values by using the above ways. When we click button<br />
&#8220;run&#8221;, if the system can&#8217;t get any run time arguments, it just pop-ups a dialog<br />
to say no available server rather than throwing a exception.<br />
4. If the Program and VM arguments are empty, just disable the button &#8220;run&#8221;.</p>
<p>In order to investigate the bug, I found the related the class and method with the above solutions:<br />
1.<br />
    1.1 If &#8220;Run -&gt; Run Configurations -&gt; Apache Tomcat&#8221; is empty, then the method public void <strong>setDefaults</strong>(ILaunchConfigurationWorkingCopy configuration) of org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.java will be invoked first.<br />
 Those line of code is supposed to get the first server from the server combox and set the default sever; however, at this point, no server is selected and no server configuration is set.<br />
   1.2 If &#8220;Run -&gt; Run Configurations -&gt; Apache Tomcat&#8221; is not empty, when click the a server, then method public void <strong>createControl</strong>(Composite parent) of org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.java will be invoked. This method will created the server combox of Run configurations. </p>
<p>2. the apply button will invoke the method performApply() which in the package org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.</p>
<p>Based on Larry Isaacs&#8217;s suggestion (<a href="http://www.eclipse.org/newsportal/article.php?id=18527&amp;group=eclipse.webtools#18527">newsgroup dated on april 4</a>), solution 3 and 4 only hidden the problem. So we should get rid of them.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=133&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/04/02/133/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>
	</item>
		<item>
		<title>two ways to get stack trace &#8212; WTP</title>
		<link>http://xiajunshi.wordpress.com/2009/03/31/two-ways-to-get-stack-trace-wtp/</link>
		<comments>http://xiajunshi.wordpress.com/2009/03/31/two-ways-to-get-stack-trace-wtp/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 03:41:16 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=130</guid>
		<description><![CDATA[Ways to get the stack trace: 1. Set some break points on the source code. run it in debug mode. Once the break point was hit, right click Thread then click copy stack, then paste on any editor (such as notepad); 2. If there are some exception when running WTP, then go to Window-&#62; Show [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=130&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ways to get the stack trace:<br />
1. Set some break points on the source code. run it in debug mode. Once the break point was hit, right click Thread then click copy stack, then paste on any editor (such as notepad);<br />
2. If there are some exception when running WTP, then go to Window-&gt; Show View -&gt; Other -&gt; General -&gt; Error log, then go the Error log view  and double click any the error.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=130&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/03/31/two-ways-to-get-stack-trace-wtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>
	</item>
		<item>
		<title>The package which I checked out-bug137822</title>
		<link>http://xiajunshi.wordpress.com/2009/03/27/the-package-which-i-checked-out-bug137822/</link>
		<comments>http://xiajunshi.wordpress.com/2009/03/27/the-package-which-i-checked-out-bug137822/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 19:24:13 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=125</guid>
		<description><![CDATA[I checked out several packages for bug 137822: org.eclipse.jst.server.tomcat.core, org.eclipse.wst.server.core, org.eclipse.wst.server.ui I think it&#8217;s a good start to reproduce them and take a look my stack trace first. I hope we can fix this bug together.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=125&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I checked out several packages for bug 137822:</p>
<p>org.eclipse.jst.server.tomcat.core,<br />
org.eclipse.wst.server.core,<br />
org.eclipse.wst.server.ui</p>
<p>I think it&#8217;s a good start to reproduce them and take a look my stack trace first. I hope we can fix this bug together.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=125&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/03/27/the-package-which-i-checked-out-bug137822/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>
	</item>
		<item>
		<title>WTP-bug 137822 Get the execution path</title>
		<link>http://xiajunshi.wordpress.com/2009/03/25/101/</link>
		<comments>http://xiajunshi.wordpress.com/2009/03/25/101/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 00:01:36 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/2009/03/25/101/</guid>
		<description><![CDATA[Two different execution paths by running the server in two different ways ========= From previous comments, we know that the program is executed in two different way for step 1 and step 2, so that the arguments for the Program and VM are set in two different ways. The arguments for Program and VM in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=101&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Two different execution paths by running the server in two different ways</p>
<p>=========<br />
From previous comments, we know that the program is executed in two different way for step 1 and step 2, so that the arguments for the Program and VM are set in two different ways. The arguments for Program and VM in step 2 are set properly; however The arguments for Program and VM in step 1 are not set at all. As Tim deBoer said that somewhere the program should call the method setupLaunchConfiguration() to set the arguments. In order to get the execute path by looking at the exception stack Trace I do following things:</p>
<p>1. Created an exception (int i = Integer.parseInt(&#8220;my exception&#8221;);)<br />
2. Add this exception code in the line 226 of  org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.setDefaults(ILaunchConfigurationWorkingCopy) for step 1;<br />
3. Run the server by Click/Run as &#8211;&gt; Run Configuration, then check the Error Log and get the Exception Stack Trace:<br />
<a href="http://matrix.senecac.on.ca/~xjshi1/bug137822/bug137822_exception.txt">Bug 137822 exception stack</a><br />
<a href="http://xiajunshi.wordpress.com/2009/03/25/101/bug137822_exception/" rel="attachment wp-att-108"><img src="http://xiajunshi.files.wordpress.com/2009/03/bug137822_exception.png?w=300&#038;h=187" alt="bug137822_exception" title="bug137822_exception" width="300" height="187" class="aligncenter size-medium wp-image-108" /></a><br />
4. Add this exception code in the line 771 of org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.setupLaunchConfiguration(ILaunchConfigurationWorkingCopy, IProgressMonitor) for step 2<br />
5. Open the server configuration dialog from the server view and click the link &#8220;Open launch configuration&#8221; , then check the Error Log and get the Exception Stack Trace:<br />
<a href="http://matrix.senecac.on.ca/~xjshi1/bug137822/bug137822_regular.txt">Bug 137822 regular stack</a><br />
<a href="http://xiajunshi.wordpress.com/2009/03/25/101/bug137822_regular/" rel="attachment wp-att-109"><img src="http://xiajunshi.files.wordpress.com/2009/03/bug137822_regular.png?w=300&#038;h=187" alt="bug137822_regular" title="bug137822_regular" width="300" height="187" class="aligncenter size-medium wp-image-109" /></a></p>
<p>By looking at the stack trace, I found some code in org.eclipse.wst.server.ui.ServerLaunchConfigurationTab.setDefaults() such as :<br />
line 217:	if (servers != null) {<br />
			server = servers.get(serverCombo.getSelectionIndex());<br />
			if (server != null)<br />
				((Server) server).setupLaunchConfiguration(configuration, null);<br />
However, the server is null and the configuration is null, that&#8217;s why it&#8217;s impossible to set the LaunchConfiguration stuff.</p>
<p>As we can see, the rest methods in the stack are in a jar file, and I can make any change in the jar file code. Someone knows how to add some code in a jar file?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=101&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/03/25/101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/03/bug137822_exception.png?w=300" medium="image">
			<media:title type="html">bug137822_exception</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/03/bug137822_regular.png?w=300" medium="image">
			<media:title type="html">bug137822_regular</media:title>
		</media:content>
	</item>
		<item>
		<title>More information about the bug 137822</title>
		<link>http://xiajunshi.wordpress.com/2009/03/16/ask-for-the-help/</link>
		<comments>http://xiajunshi.wordpress.com/2009/03/16/ask-for-the-help/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 03:50:37 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=82</guid>
		<description><![CDATA[With the help from Larry Isaacs in newsgroup, I realize I go in wrong direction. Before I thought first of all, I should find the code which throw the exception. Then I followed the hint and I should be able to find the supposed value for all some variables. Now I knew that I was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=82&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the help from Larry Isaacs in newsgroup, I realize I go in wrong direction. Before I thought first of all, I should find the code which throw the exception. Then I followed the hint and I should be able to find the supposed value for all some variables. Now I knew that I was far away from my way.</p>
<p>Larry Isaacs explained the reason why the server throw the exception in such condition. I reproduced it and displayed the reason here according to Larry Isaacs.</p>
<p>1. When I new a server, and right click and open the configuration window, the program arguments and VM arguemtns in the tab Arguments are empty, that&#8217;s why the server can&#8217;t load the class and throw the exception.</p>
<p><a rel="attachment wp-att-84" href="http://xiajunshi.wordpress.com/2009/03/16/ask-for-the-help/bug137822-empty1/"><img class="aligncenter size-medium wp-image-84" title="bug137822-empty1" src="http://xiajunshi.files.wordpress.com/2009/03/bug137822-empty1.png?w=300&#038;h=187" alt="bug137822-empty1" width="300" height="187" /></a></p>
<p>2.  However,  when we open the server configuration by clicking the tomcat server in the server view and clicking the &#8220;open launch configuration&#8221; , there are some arguments in the fields of  program arguments and VM arguments in the tab Arguments.</p>
<p><a rel="attachment wp-att-85" href="http://xiajunshi.wordpress.com/2009/03/16/ask-for-the-help/bug137822-correctargument/"><img class="aligncenter size-medium wp-image-85" title="bug137822-correctargument" src="http://xiajunshi.files.wordpress.com/2009/03/bug137822-correctargument.png?w=300&#038;h=187" alt="bug137822-correctargument" width="300" height="187" /></a></p>
<p>As  Larry Isaacs suggested for me, I should try to set the arguments in the fileds when I run the configurations.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=82&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/03/16/ask-for-the-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/03/bug137822-empty1.png?w=300" medium="image">
			<media:title type="html">bug137822-empty1</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/03/bug137822-correctargument.png?w=300" medium="image">
			<media:title type="html">bug137822-correctargument</media:title>
		</media:content>
	</item>
		<item>
		<title>Dig the Bug 137822 &#8211; Find the code to throw the exception</title>
		<link>http://xiajunshi.wordpress.com/2009/03/14/dig-the-bug-137822-find-the-code-to-throw-the-exception/</link>
		<comments>http://xiajunshi.wordpress.com/2009/03/14/dig-the-bug-137822-find-the-code-to-throw-the-exception/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 01:29:09 +0000</pubDate>
		<dc:creator>shelleyshi</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://xiajunshi.wordpress.com/?p=75</guid>
		<description><![CDATA[After the debug, I got the code to throw the exception. As I expected before, The class Server.java is the key class to start the server service. I set a break point on the method setServerState() of the class Server.java. When I debug it, the following picture is what I got the last line of the code without any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=75&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After the debug, I got the code to throw the exception.</p>
<p>As I expected before, The class Server.java is the key class to start the server service. I set a break point on the method setServerState() of the class Server.java. When I debug it, the following picture is what I got the last line of the code without any exception.</p>
<p><a rel="attachment wp-att-77" href="http://xiajunshi.wordpress.com/2009/03/14/dig-the-bug-137822-find-the-code-to-throw-the-exception/attachment/137822/"><img class="aligncenter size-full wp-image-77" title="137822" src="http://xiajunshi.files.wordpress.com/2009/03/137822.png?w=450" alt="The code throw the exception" /></a></p>
<p>As we can see, there is aproblem in the publisher function of ServerBehaviorDelegate.java</p>
<p>publishServer(kind, ProgressUtil.getSubMonitorFor(monitor, 1000));</p>
<p>I must investigate which value is supposed to be for the variables &#8220;kind&#8221; and &#8220;monitor&#8221;.  Then  I can fingure out when and where to produce such mistakes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiajunshi.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiajunshi.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiajunshi.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiajunshi.wordpress.com&amp;blog=6372986&amp;post=75&amp;subd=xiajunshi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xiajunshi.wordpress.com/2009/03/14/dig-the-bug-137822-find-the-code-to-throw-the-exception/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a16a772c472d9bb52593742b1c72e73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shelleyshi</media:title>
		</media:content>

		<media:content url="http://xiajunshi.files.wordpress.com/2009/03/137822.png" medium="image">
			<media:title type="html">137822</media:title>
		</media:content>
	</item>
	</channel>
</rss>
