<?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>Jimmy&#039;s Blog &#187; common</title>
	<atom:link href="http://jimmod.com/blog/tag/common/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmod.com/blog</link>
	<description>My name is Jimmy, and this is my story... ;)</description>
	<lastBuildDate>Fri, 14 Oct 2011 17:26:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NetBeans 6 Bug &#8211; ConfigurationException Class in Apache Common Configuration is not Throwable?</title>
		<link>http://jimmod.com/blog/2007/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/</link>
		<comments>http://jimmod.com/blog/2007/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 08:17:55 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[common]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[netbeans 6]]></category>
		<category><![CDATA[throwable]]></category>

		<guid isPermaLink="false">http://jimlife.wordpress.com/2007/12/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/</guid>
		<description><![CDATA[ 
				
			 
				
			 
				Tweet 
			
		When I using Netbeans 6 (final released) and using Apache Common Configuration library, I encounter this bug.
Here&#8217;s how I found the bug :

Create a java application project
 Add the library, I create a library name &#8216;Apache_Common_Configuration&#8217; and add commons-configuration-1.5.jar to that library
Then I wrote the code

public static void main(String[] args) {
try [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2007/11/netbeans-6-configure-which-editor-representative-class-for-new-type-extension/' rel='bookmark' title='Permanent Link: Netbeans 6 &#8211; Configure which editor (representative class) for new type extension'>Netbeans 6 &#8211; Configure which editor (representative class) for new type extension</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li></ol>]]></description>
			<content:encoded><![CDATA[<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="really_simple_share"><div style="float:left; width:100px; " class="really_simple_share_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fjimmod.com%2Fblog%2F2007%2F12%2Fnetbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="really_simple_share_google1"> 
				<g:plusone size="medium" href="http://jimmod.com/blog/2007/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="really_simple_share_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" 
					data-text="NetBeans 6 Bug &#8211; ConfigurationException Class in Apache Common Configuration is not Throwable?" data-url="http://jimmod.com/blog/2007/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/">Tweet</a> 
			</div></div>
		<div style="clear:both;"></div><p>When I using Netbeans 6 (final released) and using Apache Common Configuration library, I encounter this bug.<br />
Here&#8217;s how I found the bug :</p>
<ul>
<li>Create a java application project</li>
<li> Add the library, I create a library name &#8216;Apache_Common_Configuration&#8217; and add commons-configuration-1.5.jar to that library</li>
<li>Then I wrote the code</li>
</ul>
<blockquote><p><code>public static void main(String[] args) {<br />
try {<br />
INIConfiguration ini = new INIConfiguration("sample.ini");<br />
} catch (ConfigurationException ex) {<br />
ex.printStackTrace();<br />
}<br />
}<br />
</code></p></blockquote>
<ul>
<li>But the editor showing error on &#8216;ConfigurationException ex&#8217; saying that ConfigurationException is not subclass of Throwable Class (I&#8217;ve upload the screenshot)</li>
</ul>
<p><a href="http://jimlife.files.wordpress.com/2007/12/netbeansbug.jpg" title="NetBeans 6 Bug - ConfigurationException Class"></a></p>
<p style="text-align:center;"><a href="http://jimlife.files.wordpress.com/2007/12/netbeansbug.jpg" title="NetBeans 6 Bug - ConfigurationException Class"><img src="http://jimlife.files.wordpress.com/2007/12/netbeansbug.jpg" alt="NetBeans 6 Bug - ConfigurationException Class" /></a></p>
<ul>
<li>When I try to build it&#8217;s showing different error &#8220;class file for org.apache.commons.lang.exception.NestableException not found&#8221;</li>
<li>It&#8217;s look like Apache Common Configuration is using Apache Common Lang library (I also look to the source-code &#8216;ConfigurationException extends NestableException&#8217;). Error when compile showing me more help than error in editor.</li>
<li>So I create a library name &#8216;Apache_Common_Lang&#8217; and add commons-lang-2.3.jar to that library</li>
<li>After add the library the editor still showing the same error : &#8220;ConfigurationException is not subclass of Throwable Class&#8221;</li>
<li>But when I run build, it run successful . No error at all. (Now I confused)</li>
<li>It&#8217;s look like there&#8217;s a bug in the Editor. And that red line &amp; error icon in project window really bugging me, although I know it&#8217;s the editor bug not my code error.</li>
<li><b>So to make this &#8216;red-line&#8217; disappeared</b>, I combined commons-configuration-1.5.jar &amp; commons-lang-2.3.jar into 1 jar file. And set a library to this jar (instead using 2 library or 2 jar file).</li>
<li>After this combined the editor not showing the error again.</li>
</ul>
<p>Anyone having this problem too?</p>
<p>You can vote for this bug on : <a href="http://www.netbeans.org/issues/show_bug.cgi?id=124241">http://www.netbeans.org/issues/show_bug.cgi?id=124241</a></p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2007/11/netbeans-6-configure-which-editor-representative-class-for-new-type-extension/' rel='bookmark' title='Permanent Link: Netbeans 6 &#8211; Configure which editor (representative class) for new type extension'>Netbeans 6 &#8211; Configure which editor (representative class) for new type extension</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2007/12/netbeans-6-bug-configurationexception-class-in-apache-common-configuration-is-not-throwable/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

