<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Nomad Labs Code</title>
	<atom:link href="http://code.nomad-labs.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.nomad-labs.com</link>
	<description>srasul&#039;s snippets of code and thought</description>
	<lastBuildDate>Thu, 29 Mar 2012 11:18:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>Comment on Identifying which Java Thread is consuming most CPU by eric iu</title>
		<link>http://code.nomad-labs.com/2010/11/18/identifying-which-java-thread-is-consuming-most-cpu/comment-page-1/#comment-28674</link>
		<dc:creator>eric iu</dc:creator>
		<pubDate>Thu, 29 Mar 2012 11:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=173#comment-28674</guid>
		<description>great post, thanks.

a question : seems jrockit thread dump have not the nid. how to Identifying ? 
&quot;Finalizer&quot; id=6 idx=0x24 tid=7032 prio=8 alive, in native, native_waiting, daemon

thanks</description>
		<content:encoded><![CDATA[<p>great post, thanks.</p>
<p>a question : seems jrockit thread dump have not the nid. how to Identifying ?<br />
&#8220;Finalizer&#8221; id=6 idx=0&#215;24 tid=7032 prio=8 alive, in native, native_waiting, daemon</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Ritesh</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-28615</link>
		<dc:creator>Ritesh</dc:creator>
		<pubDate>Wed, 28 Mar 2012 13:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-28615</guid>
		<description>realy awsome dude</description>
		<content:encoded><![CDATA[<p>realy awsome dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Auto Install the SUN JDK on Linux by Scot Rhodes</title>
		<link>http://code.nomad-labs.com/2009/10/26/auto-install-the-sun-jdk-on-linux/comment-page-1/#comment-28472</link>
		<dc:creator>Scot Rhodes</dc:creator>
		<pubDate>Mon, 26 Mar 2012 07:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=109#comment-28472</guid>
		<description>The angle bracketed comment was wiped, make sure you point the wget command to a location you can access via HTTP.</description>
		<content:encoded><![CDATA[<p>The angle bracketed comment was wiped, make sure you point the wget command to a location you can access via HTTP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Auto Install the SUN JDK on Linux by Scot Rhodes</title>
		<link>http://code.nomad-labs.com/2009/10/26/auto-install-the-sun-jdk-on-linux/comment-page-1/#comment-28471</link>
		<dc:creator>Scot Rhodes</dc:creator>
		<pubDate>Mon, 26 Mar 2012 07:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=109#comment-28471</guid>
		<description>Just tried this with a kickstart script on CentOS 6.2, and it worked like a charm! This was very helpful and saved me a lot of time. Just in case someone else wants to give it a shot, I&#039;ll share my chunk of %post kickstart script that I used.

# Create Java auto installer.
########################################################################
cat &gt; /tmp/autoinstaller.sh &lt;&lt; EOF
#!/bin/bash

jdkBinFile=\$1

echo \$1

# just spew out the agreement
perl -p -i -e &#039;s/^more/cat/g&#039; \$1

# set the &#039;agreed&#039; value for jdk 1.5
perl -p -i -e &#039;s/\s+agreed=$/agreed=1/g&#039; \$1

# set the agree value for jdk 1.6
perl -p -i -e &#039;s/\`agree\`/yes/g&#039; \$1

# do not call the register_jdk method
perl -p -i -e &#039;s/\s+register_JDK/#register_JDK/g&#039; \$1

# and now run the installation
bash \$1
EOF

chmod 755 /tmp/autoinstaller.sh

# Download and install Java JDK 1.6 (This must be moved to a primary server).
########################################################################
wget http:///jdk-6u24-linux-x64.bin
mkdir /usr/java
mv jdk-6u24-linux-x64.bin /usr/java
cd /usr/java
chmod 755 jdk-6u24-linux-x64.bin
/tmp/autoinstaller.sh jdk-6u24-linux-x64.bin
echo &quot;
export JAVA_HOME=/usr/java/jdk1.6.0_24
export PATH=\$JAVA_HOME/bin:\$PATH
&quot; &gt;&gt; /etc/profile

source /etc/profile

rm -rf jdk-6u24-linux-x64.bin;
alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 2
alternatives --set java $JAVA_HOME/bin/java</description>
		<content:encoded><![CDATA[<p>Just tried this with a kickstart script on CentOS 6.2, and it worked like a charm! This was very helpful and saved me a lot of time. Just in case someone else wants to give it a shot, I&#8217;ll share my chunk of %post kickstart script that I used.</p>
<p># Create Java auto installer.<br />
########################################################################<br />
cat &gt; /tmp/autoinstaller.sh &lt;&lt; EOF<br />
#!/bin/bash</p>
<p>jdkBinFile=\$1</p>
<p>echo \$1</p>
<p># just spew out the agreement<br />
perl -p -i -e &#039;s/^more/cat/g&#039; \$1</p>
<p># set the &#039;agreed&#039; value for jdk 1.5<br />
perl -p -i -e &#039;s/\s+agreed=$/agreed=1/g&#039; \$1</p>
<p># set the agree value for jdk 1.6<br />
perl -p -i -e &#039;s/\`agree\`/yes/g&#039; \$1</p>
<p># do not call the register_jdk method<br />
perl -p -i -e &#039;s/\s+register_JDK/#register_JDK/g&#039; \$1</p>
<p># and now run the installation<br />
bash \$1<br />
EOF</p>
<p>chmod 755 /tmp/autoinstaller.sh</p>
<p># Download and install Java JDK 1.6 (This must be moved to a primary server).<br />
########################################################################<br />
wget <a href="http:///jdk-6u24-linux-x64.bin" rel="nofollow">http:///jdk-6u24-linux-x64.bin</a><br />
mkdir /usr/java<br />
mv jdk-6u24-linux-x64.bin /usr/java<br />
cd /usr/java<br />
chmod 755 jdk-6u24-linux-x64.bin<br />
/tmp/autoinstaller.sh jdk-6u24-linux-x64.bin<br />
echo &#8221;<br />
export JAVA_HOME=/usr/java/jdk1.6.0_24<br />
export PATH=\$JAVA_HOME/bin:\$PATH<br />
&#8221; &gt;&gt; /etc/profile</p>
<p>source /etc/profile</p>
<p>rm -rf jdk-6u24-linux-x64.bin;<br />
alternatives &#8211;install /usr/bin/java java $JAVA_HOME/bin/java 2<br />
alternatives &#8211;set java $JAVA_HOME/bin/java</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Identifying which Java Thread is consuming most CPU by Claudio Miranda</title>
		<link>http://code.nomad-labs.com/2010/11/18/identifying-which-java-thread-is-consuming-most-cpu/comment-page-1/#comment-25500</link>
		<dc:creator>Claudio Miranda</dc:creator>
		<pubDate>Wed, 15 Feb 2012 13:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=173#comment-25500</guid>
		<description>Hi, nice article. I you (and readers) know about top_threads.sh script I created to automate the task to identifying the top java threads. 
It identify the OS top threads and print the thread stack trace (from jstack).
http://claudius-alphaworks.googlecode.com/svn/trunk/shell_bin/top_threads.sh</description>
		<content:encoded><![CDATA[<p>Hi, nice article. I you (and readers) know about top_threads.sh script I created to automate the task to identifying the top java threads.<br />
It identify the OS top threads and print the thread stack trace (from jstack).<br />
<a href="http://claudius-alphaworks.googlecode.com/svn/trunk/shell_bin/top_threads.sh" rel="nofollow">http://claudius-alphaworks.googlecode.com/svn/trunk/shell_bin/top_threads.sh</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by parc rosewood register</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-21779</link>
		<dc:creator>parc rosewood register</dc:creator>
		<pubDate>Sun, 01 Jan 2012 12:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-21779</guid>
		<description>&lt;strong&gt;parc rosewood register...&lt;/strong&gt;

[...]An Improved RMI Tutorial with Eclipse &#124; Nomad Labs Code[...]...</description>
		<content:encoded><![CDATA[<p><strong>parc rosewood register&#8230;</strong></p>
<p>[...]An Improved RMI Tutorial with Eclipse | Nomad Labs Code[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by Informasi Online Organisasi Masyarakat Jawa Keluyuran di Sumatera</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-20517</link>
		<dc:creator>Informasi Online Organisasi Masyarakat Jawa Keluyuran di Sumatera</dc:creator>
		<pubDate>Thu, 22 Dec 2011 02:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-20517</guid>
		<description>&lt;strong&gt;Informasi Online Organisasi Masyarakat Jawa Keluyuran di Sumatera...&lt;/strong&gt;

[...]An Improved RMI Tutorial with Eclipse &#124; Nomad Labs Code[...]...</description>
		<content:encoded><![CDATA[<p><strong>Informasi Online Organisasi Masyarakat Jawa Keluyuran di Sumatera&#8230;</strong></p>
<p>[...]An Improved RMI Tutorial with Eclipse | Nomad Labs Code[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by OrangeDog</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-19076</link>
		<dc:creator>OrangeDog</dc:creator>
		<pubDate>Tue, 06 Dec 2011 07:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-19076</guid>
		<description>To srasul:thanx for your examples, it`s really helps to understend RMI;
To Leo: I had similar problem, try to fix JRE_HOME/lib/security/java.policy, I know, that is ugly but it must working</description>
		<content:encoded><![CDATA[<p>To srasul:thanx for your examples, it`s really helps to understend RMI;<br />
To Leo: I had similar problem, try to fix JRE_HOME/lib/security/java.policy, I know, that is ugly but it must working</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by Leslie Jeffries</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-18879</link>
		<dc:creator>Leslie Jeffries</dc:creator>
		<pubDate>Sat, 03 Dec 2011 21:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-18879</guid>
		<description>I really like the elegance of your solution, however I&#039;m still frustrated since I can&#039;t get it to work completely. The policy file finder is really nice.

To let you know, my client and server work perfectly fine if the code for both is in the same directory. If I move the client code outside the folder where the server code is (as would be the case in Eclipse), I have all the finding the code problems.

Anyway, when I try to make the call to export the stub in my app similar to this:
Compute engineStub = (Compute)UnicastRemoteObject.exportObject(engine, 0);

I get the following error
java.rmi.server.ExportException: object already exported

If I comment out that call I am back to this problem:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
	java.lang.ClassNotFoundException: saqib.rasul.Compute

Any idea what I&#039;m doing wrong.</description>
		<content:encoded><![CDATA[<p>I really like the elegance of your solution, however I&#8217;m still frustrated since I can&#8217;t get it to work completely. The policy file finder is really nice.</p>
<p>To let you know, my client and server work perfectly fine if the code for both is in the same directory. If I move the client code outside the folder where the server code is (as would be the case in Eclipse), I have all the finding the code problems.</p>
<p>Anyway, when I try to make the call to export the stub in my app similar to this:<br />
Compute engineStub = (Compute)UnicastRemoteObject.exportObject(engine, 0);</p>
<p>I get the following error<br />
java.rmi.server.ExportException: object already exported</p>
<p>If I comment out that call I am back to this problem:<br />
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:<br />
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:<br />
	java.lang.ClassNotFoundException: saqib.rasul.Compute</p>
<p>Any idea what I&#8217;m doing wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by xavb</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-18457</link>
		<dc:creator>xavb</dc:creator>
		<pubDate>Mon, 28 Nov 2011 18:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-18457</guid>
		<description>I got an AccessControlException, exactly the same got by Kino. What does it mean? 
I got the same error with another RMI project which I&#039;m trying to run.</description>
		<content:encoded><![CDATA[<p>I got an AccessControlException, exactly the same got by Kino. What does it mean?<br />
I got the same error with another RMI project which I&#8217;m trying to run.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

