<?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>ramraje.com</title>
	<atom:link href="http://www.ramraje.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ramraje.com</link>
	<description>Software Programming Blog</description>
	<lastBuildDate>Mon, 19 Dec 2011 08:56:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Top Adobe Flex learning resources</title>
		<link>http://www.ramraje.com/uncategorized/top-adobe-flex-learning-resources/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=top-adobe-flex-learning-resources</link>
		<comments>http://www.ramraje.com/uncategorized/top-adobe-flex-learning-resources/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 08:56:29 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=305</guid>
		<description><![CDATA[To quickly get started on Adboe Flex, and to get your dirty with some sample flex applications, go to below links 1. Adobe Flex SDK Opensource website Adobe Flex SDK opensource website, where you can find all the documentation, SDK downloads of differenent versions, forums, and source code etc. 2. Adobe Flex Official Documetation This [...]]]></description>
			<content:encoded><![CDATA[<p>To quickly get started on Adboe Flex, and to get your dirty with some sample flex applications, go to below links</p>
<p>1. <a title="Adobe Flex SDK Opensource home page" href="http://opensource.adobe.com/wiki/display/flexsdk/Developer+Documentation" target="_blank">Adobe Flex SDK Opensource website</a></p>
<p>Adobe Flex SDK opensource website, where you can find all the documentation, SDK downloads of differenent versions, forums, and source code etc.</p>
<h3>
2. Adobe Flex Official Documetation</h3>
<p>This link directly points to Flex documentation, this page has documentation for different Flex versions</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/uncategorized/top-adobe-flex-learning-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>where is the Eclipse error log location?</title>
		<link>http://www.ramraje.com/java-javaee/eclipse/where-is-the-eclipse-error-log-location/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=where-is-the-eclipse-error-log-location</link>
		<comments>http://www.ramraje.com/java-javaee/eclipse/where-is-the-eclipse-error-log-location/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:52:39 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Eclipse error log location]]></category>
		<category><![CDATA[Eclipse error stacktrace]]></category>
		<category><![CDATA[Eclipse plug-in errors]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=265</guid>
		<description><![CDATA[Today I supposed to pull latest code  from perforce source control system and set up the project in eclipse and test it whether it is working or not. I finished setting up the project and published the all projects to eclipse tomcat directory, while starting the tomcat I was getting below error Server Tomcat v5.5 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I supposed to pull latest code  from perforce source control system and set up the project in eclipse and test it whether it is working or not. I finished setting up the project and published the all projects to eclipse tomcat directory, while starting the tomcat I was getting below error</p>
<p><code>Server Tomcat v5.5 Server at localhost failed to start.</code></p>
<p>And I was trying to find the reason for failing, and want to see the eclipse error logs. At this point of time I was not very sure about where the logs are kept for eclipse internal errors or eclipse exception stack trace. Then tried looking here and there in the eclipse, and finally found.</p>
<ol>
<li>Go to the pulg-in development perspective from open perspective at top right side.</li>
<li>Then you would be able to see Error log tab at bottom side of eclipse.</li>
<li>In Error log tab you can find the all eclipse errors.</li>
<li>Double click on the error to see more information</li>
</ol>
<p>You can also do below to see the Error log tab<br />
<code>Go to Window --&gt; Show view --&gt; General --&gt; Error log </code></p>
<p>To see more detailed error log information about eclipse internal errors or eclipse plug-in errors go to your {workspace-folder}/.metadata/.log file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/java-javaee/eclipse/where-is-the-eclipse-error-log-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.net.SocketException: Connection reset by peer, socket write error</title>
		<link>http://www.ramraje.com/java-javaee/java-errors-solutions/javanetsocketexception-connection-reset-by-peer-socket-write-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javanetsocketexception-connection-reset-by-peer-socket-write-error</link>
		<comments>http://www.ramraje.com/java-javaee/java-errors-solutions/javanetsocketexception-connection-reset-by-peer-socket-write-error/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 17:22:17 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Java Solutions]]></category>
		<category><![CDATA[Connection closed by peer]]></category>
		<category><![CDATA[java socket error]]></category>
		<category><![CDATA[socket write error]]></category>
		<category><![CDATA[SocketException]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=241</guid>
		<description><![CDATA[I am getting this socket connection error in my java web application, which was working very well for long time. I did see this behaviour when I ran huge batch of database insertions/updates. Below is the java stacktrace of this error.]]></description>
			<content:encoded><![CDATA[<p>I am getting this socket connection error in my java web application, which was working very well for long time. I did see this behaviour when I ran huge batch of database insertions/updates. Below is the java stacktrace of this error.<span id="more-241"></span></p>
<div class="geshi no java">
<div class="head">ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error</div>
<ol>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">connector</span>.<span class="me1">OutputBuffer</span>.<span class="me1">doFlush</span><span class="br0">&#40;</span>OutputBuffer.<span class="me1">java</span>:<span class="nu0">327</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">connector</span>.<span class="me1">OutputBuffer</span>.<span class="me1">flush</span><span class="br0">&#40;</span>OutputBuffer.<span class="me1">java</span>:<span class="nu0">293</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">connector</span>.<span class="me1">Response</span>.<span class="me1">flushBuffer</span><span class="br0">&#40;</span>Response.<span class="me1">java</span>:<span class="nu0">545</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">StandardHostValve</span>.<span class="me1">status</span><span class="br0">&#40;</span>StandardHostValve.<span class="me1">java</span>:<span class="nu0">287</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">StandardHostValve</span>.<span class="me1">invoke</span><span class="br0">&#40;</span>StandardHostValve.<span class="me1">java</span>:<span class="nu0">137</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">valves</span>.<span class="me1">ErrorReportValve</span>.<span class="me1">invoke</span><span class="br0">&#40;</span>ErrorReportValve.<span class="me1">java</span>:<span class="nu0">117</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">StandardEngineValve</span>.<span class="me1">invoke</span><span class="br0">&#40;</span>StandardEngineValve.<span class="me1">java</span>:<span class="nu0">108</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">connector</span>.<span class="me1">CoyoteAdapter</span>.<span class="me1">service</span><span class="br0">&#40;</span>CoyoteAdapter.<span class="me1">java</span>:<span class="nu0">174</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">coyote</span>.<span class="me1">http11</span>.<span class="me1">Http11Processor</span>.<span class="me1">process</span><span class="br0">&#40;</span>Http11Processor.<span class="me1">java</span>:<span class="nu0">874</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">coyote</span>.<span class="me1">http11</span>.<span class="me1">Http11BaseProtocol</span>$Http11ConnectionHandler.<span class="me1">processConnection</span><span class="br0">&#40;</span>Http11BaseProtocol.<span class="me1">java</span>:<span class="nu0">665</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">tomcat</span>.<span class="me1">util</span>.<span class="me1">net</span>.<span class="me1">PoolTcpEndpoint</span>.<span class="me1">processSocket</span><span class="br0">&#40;</span>PoolTcpEndpoint.<span class="me1">java</span>:<span class="nu0">528</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">tomcat</span>.<span class="me1">util</span>.<span class="me1">net</span>.<span class="me1">LeaderFollowerWorkerThread</span>.<span class="me1">runIt</span><span class="br0">&#40;</span>LeaderFollowerWorkerThread.<span class="me1">java</span>:<span class="nu0">81</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at org.<span class="me1">apache</span>.<span class="me1">tomcat</span>.<span class="me1">util</span>.<span class="me1">threads</span>.<span class="me1">ThreadPool</span>$ControlRunnable.<span class="me1">run</span><span class="br0">&#40;</span>ThreadPool.<span class="me1">java</span>:<span class="nu0">689</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;at java.<span class="me1">lang</span>.<span class="kw3">Thread</span>.<span class="me1">run</span><span class="br0">&#40;</span><span class="kw3">Thread</span>.<span class="me1">java</span>:<span class="nu0">595</span><span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>Usually, this kind of behaviour occurs when one of the following happens</p>
<ol>
<li>When user make a request, and suddenly browser get closed by user accidentally or due to browser crash</li>
<li>When user make a request, and browser closes the http connection automatically due to exceeded content length size</li>
<li>When user make a request, and presses the stop button</li>
</ol>
<p>But surprisingly, there is one more reason which may cause this  problem. This is more unpredictable and very difficult to identify as well, that is problem with firewall.  When<a href="http://archives.postgresql.org/pgsql-jdbc/2004-12/msg00007.php" target="_blank"> googled</a>, I founded people complaining about firewall closing database connection automatically.  On top of this I am also not getting proper java exception stacktrace to track the error and fix.</p>
<p>To elaborate more on firewall issue, the error is more TCP/IP connection level error where database is closed by the firewall after database connection are idle for certain time or certain db connection length. Possibility is that there is a statefull firewall which is closing database connections after certain time limit. I am still in the process of identifying what could be the real problem. Once I found real probelm and solution, I will post it in here. If any one know the solutions, please post it in the comments section. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/java-javaee/java-errors-solutions/javanetsocketexception-connection-reset-by-peer-socket-write-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to find installed RPM software packages</title>
		<link>http://www.ramraje.com/linux/how-to-find-installed-rpm-software-packages/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-find-installed-rpm-software-packages</link>
		<comments>http://www.ramraje.com/linux/how-to-find-installed-rpm-software-packages/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 06:15:24 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[RPM packages]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=171</guid>
		<description><![CDATA[I was trying to install mysql in centOS, which is rpm based Linux operating system like redhat, fedora etc. And I wanted to find out if it already installed or not.]]></description>
			<content:encoded><![CDATA[<p>I was trying to install mysql in centOS, which is rpm based Linux operating system like redhat, fedora etc. And I wanted to find out if it already installed or not. <span id="more-171"></span></p>
<p>Here is the command which list all the installed rpm software packages..</p>
<div class="geshi no bash">
<div class="head">rpm -qa</pre>
</div>
<ol>
<li class="li1">
<div class="de1">Above <span class="kw3">command</span> list all packages, q means query and a means all.</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">rpm <span class="kw3">command</span> generally used <span class="kw1">for</span> installing rpm archive packages manually, and one can also see all installed packages <span class="kw2">as</span> mentioned.</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">If you want to see few installed packages at a <span class="kw1">time</span> <span class="kw1">then</span> use below <span class="kw3">command</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>pre <span class="re2">lang=</span><span class="st0">&quot;bash&quot;</span><span class="sy0">&gt;</span>rpm -qa <span class="sy0">|</span> <span class="kw2">less</span></div>
</li>
</ol>
</div>
<p>This command lists the installed rpm packages in less linux shell text editor, it will show few at a time, to see more just keep pressing enter button on your keyboard.</p>
<p>To see specific rpm software package like mysql or python, run below command</p>
<div class="geshi no bash">
<div class="head">rpm -qa | grep mysql -- To see mysql packages</div>
<ol>
<li class="li1">
<div class="de1">rpm -qa <span class="sy0">|</span> <span class="kw2">grep</span> python -- To see python packages</div>
</li>
</ol>
</div>
<p>To list the rpm packages in sorted manner, run below command</p>
<div class="geshi no bash">
<div class="head">rpm -qa | sort | less</pre>
</div>
<ol>
<li class="li1">
<div class="de1">To get sorted rpm packages list <span class="kw1">in</span> text <span class="kw2">file</span>, run below <span class="kw3">command</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>pre <span class="re2">lang=</span><span class="st0">&quot;bash&quot;</span><span class="sy0">&gt;</span>rpm -qa <span class="sy0">|</span> <span class="kw2">sort</span> <span class="sy0">&amp;</span>gt; packages.txt</div>
</li>
</ol>
</div>
<p>I hope these commands may help in finding installed rpm packages. For any help email me or give a comment below in the comment box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/linux/how-to-find-installed-rpm-software-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to see CentOS linux version</title>
		<link>http://www.ramraje.com/linux/how-to-see-centos-linux-version/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-see-centos-linux-version</link>
		<comments>http://www.ramraje.com/linux/how-to-see-centos-linux-version/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 11:55:43 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Centos version]]></category>
		<category><![CDATA[Linux command]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=163</guid>
		<description><![CDATA[Many times I forget the Linux command which is used to see the centOS linux operating system version. So, decided to write down it here on my blog and refer back when i forget. I hope it may also help others!]]></description>
			<content:encoded><![CDATA[<p>Many times I forget the Linux command which is used to see the centOS linux operating system version. So, decided to write down it here on my blog and refer back when i forget. I hope it may also help others!<span id="more-163"></span></p>
<p>Below is the command used for finding centOS linux version</p>
<div class="geshi no bash">
<div class="head">cat /etc/redhat-release/ &#8212; CentOs uses redhat kernal</pre>
</div>
<ol>
<li class="li1">
<div class="de1">Output is <span class="kw2">as</span> below</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>pre <span class="re2">lang=</span><span class="st0">&quot;bash&quot;</span><span class="sy0">&gt;</span>CentOS release <span class="nu0">4.6</span> <span class="br0">&#40;</span>Final<span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>Same command in generic way for any linux machine</p>
<div class="geshi no bash">
<div class="head">cat /etc/*release*/</pre>
</div>
<ol>
<li class="li1">
<div class="de1">Another alternative <span class="kw3">command</span> to see the Linux operating system version</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>pre <span class="re2">lang=</span><span class="st0">&quot;bash&quot;</span><span class="sy0">&gt;</span>cat <span class="sy0">/</span>etc<span class="sy0">/</span>issue</div>
</li>
</ol>
</div>
<p>One more alternative command to see rpm based Linux versions, and also this command list all the rpm packages installed and their version numbers.</p>
<pre lang="bash">rpm -qa | grep centos</pre>
<p>From now, If I forget this command, I can refer back here. Bravo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/linux/how-to-see-centos-linux-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solution for Python smtplib.SMTPServerDisconnected error</title>
		<link>http://www.ramraje.com/programming/python/how-i-solved-python-smtplibsmtpserverdisconnected/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-i-solved-python-smtplibsmtpserverdisconnected</link>
		<comments>http://www.ramraje.com/programming/python/how-i-solved-python-smtplibsmtpserverdisconnected/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 10:42:04 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[smtplib]]></category>
		<category><![CDATA[SMTPServerDisconnected]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=154</guid>
		<description><![CDATA[Since from two  months I have been working on  developing python application to automate the web importer task for our web application, and after completing import job an email needs to  be sent to support team with the importer status.]]></description>
			<content:encoded><![CDATA[<p>Since from two  months I have been working on  developing python application to automate the web importer task for our web application, and after completing import job an email needs to  be sent to support team with the importer status.<span id="more-154"></span></p>
<p>So, while sending email using python smtplib library, I was getting smtplib.SMTPServerDisconnected error. It was working absolutely well before, I was wondering why the SMTPServerDisconnected error was coming now&#8230;</p>
<p>Error log</p>
<div class="geshi no python">
<div class="head">Traceback (most recent call last):</div>
<ol>
<li class="li1">
<div class="de1">File <span class="st0">&quot;ImporterAutomation.py&quot;</span>, line <span class="nu0">470</span>, <span class="kw1">in</span> <span class="sy0">&amp;</span>lt<span class="sy0">;</span>module<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">sys</span>.<span class="me1">exit</span><span class="br0">&#40;</span>main<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;ImporterAutomation.py&quot;</span>, line <span class="nu0">462</span>, <span class="kw1">in</span> main</div>
</li>
<li class="li1">
<div class="de1">sendmail.<span class="me1">sendEmail</span><span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:projects&#8230;sendmail.py&quot;</span>, line <span class="nu0">83</span>, <span class="kw1">in</span> sendEmail</div>
</li>
<li class="li1">
<div class="de1">emailNotify<span class="br0">&#40;</span>TEXT,Flag<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:projects&#8230;.sendmail.py&quot;</span>, line <span class="nu0">101</span>, <span class="kw1">in</span> emailNotify</div>
</li>
<li class="li1">
<div class="de1">server.<span class="me1">sendmail</span><span class="br0">&#40;</span>author, recipient_list, msg.<span class="me1">as_string</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:Python26libsmtplib.py&quot;</span>, line <span class="nu0">685</span>, <span class="kw1">in</span> sendmail</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">self</span>.<span class="me1">ehlo_or_helo_if_needed</span><span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:Python26libsmtplib.py&quot;</span>, line <span class="nu0">509</span>, <span class="kw1">in</span> ehlo_or_helo_if_needed</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="kw1">not</span> <span class="br0">&#40;</span><span class="nu0">200</span> <span class="sy0">&amp;</span>lt<span class="sy0">;</span>= <span class="kw2">self</span>.<span class="me1">ehlo</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span> <span class="sy0">&amp;</span>lt<span class="sy0">;</span>= <span class="nu0">299</span><span class="br0">&#41;</span>:</div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:Python26libsmtplib.py&quot;</span>, line <span class="nu0">382</span>, <span class="kw1">in</span> ehlo</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">self</span>.<span class="me1">putcmd</span><span class="br0">&#40;</span><span class="kw2">self</span>.<span class="me1">ehlo_msg</span>, name <span class="kw1">or</span> <span class="kw2">self</span>.<span class="me1">local_hostname</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:Python26libsmtplib.py&quot;</span>, line <span class="nu0">318</span>, <span class="kw1">in</span> putcmd</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">self</span>.<span class="me1">send</span><span class="br0">&#40;</span><span class="kw2">str</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">File <span class="st0">&quot;C:Python26libsmtplib.py&quot;</span>, line <span class="nu0">310</span>, <span class="kw1">in</span> send</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">raise</span> SMTPServerDisconnected<span class="br0">&#40;</span><span class="st0">&#39;please run connect() first&#39;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">smtplib</span>.<span class="me1">SMTPServerDisconnected</span>: please run connect<span class="br0">&#40;</span><span class="br0">&#41;</span> first</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Then after some <span class="kw3">time</span> I figured out it was problem with configuring SMTP host ip address. <span class="me1">There</span> was no smtp host configured <span class="kw1">in</span> configuration <span class="kw2">file</span>.</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>blockquote<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">smtp = <span class="kw3">smtplib</span>.<span class="me1">SMTP</span><span class="br0">&#40;</span>smtp_host<span class="br0">&#41;</span> &#8212; here smtp_host was null<span class="sy0">&lt;</span>/blockquote<span class="sy0">&gt;</span></div>
</li>
</ol>
</div>
<p>Above smtp instance variable is created without SMTP connection, so when I was calling smtp.sendmail() method python smtp lib was throwing that error.</p>
<p>To fix it,  I provided correct SMTP host/ip address, and also added error handling code to gracefully handle that error condition and log error message in log file.</p>
<p>Below is the fix</p>
<div class="geshi no python">
<div class="head">try:</div>
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp; smtp = <span class="kw3">smtplib</span>.<span class="me1">SMTP</span><span class="br0">&#40;</span>smtp_host<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> smtp_username <span class="kw1">and</span> smtp_password:</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;smtp .<span class="me1">login</span><span class="br0">&#40;</span>smtp_username, smtp_password<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; smtp .<span class="me1">sendmail</span><span class="br0">&#40;</span>author, recipient_list, msg.<span class="me1">as_string</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">except</span> <span class="kw3">smtplib</span>.<span class="me1">SMTPException</span>, e:</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; err_log.<span class="me1">error</span><span class="br0">&#40;</span><span class="st0">&#39;Error while seding email summary&#8230;.&#39;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; err_log.<span class="me1">error</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">except</span> <span class="kw3">socket</span>.<span class="me1">error</span>, e:</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; err_log.<span class="me1">error</span><span class="br0">&#40;</span><span class="st0">&#39;Unable to connect to SMTP server&#8230;.&#39;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; err_log.<span class="me1">error</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">else</span>:</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; smtp .<span class="me1">quit</span><span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>I know this very basic part of python smtp module, hope this may help python freshers. Any comments or feedback are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/programming/python/how-i-solved-python-smtplibsmtpserverdisconnected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily Enlish Vocabulary 1: Serendipity</title>
		<link>http://www.ramraje.com/uncategorized/serendipity/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=serendipity</link>
		<comments>http://www.ramraje.com/uncategorized/serendipity/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 05:50:25 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Good Fortune]]></category>
		<category><![CDATA[Good Luck]]></category>
		<category><![CDATA[Serendipity]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=152</guid>
		<description><![CDATA[Serendipity (ser-en-dip-i-ty or ser-uhn-DIP-uh-tee) Good luck, Good fortune Good luck in making fortune discoveries by accident. Making fortune discoveries accidentally by a team of faculty or group. An instance of or occurrence and development of discoveries or findings.]]></description>
			<content:encoded><![CDATA[<h2>Serendipity (<span class="hw">ser-en-dip-i-ty or </span>ser-uhn-DIP-uh-tee)</h2>
<ol>
<li>Good luck, Good fortune</li>
<li>Good luck in making fortune discoveries by accident.</li>
<li>Making fortune discoveries accidentally by a team of faculty or group.</li>
<li>An instance of or occurrence and development of discoveries or findings.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/uncategorized/serendipity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to start NFS service</title>
		<link>http://www.ramraje.com/linux/how-to-start-nfs-service/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-start-nfs-service</link>
		<comments>http://www.ramraje.com/linux/how-to-start-nfs-service/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:54:43 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[NFS Service]]></category>
		<category><![CDATA[Portmap]]></category>
		<category><![CDATA[portmap service]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=147</guid>
		<description><![CDATA[What is NFS and NFS service NFS is the network file system, which is used to mount or link the file system or simply folders from one linux machine to another linux machine. This mounting makes folders and files transparently available  to the other linux machines across the network. NFS service NFS service is the [...]]]></description>
			<content:encoded><![CDATA[<h2>What is NFS and NFS service</h2>
<p>NFS is the network file system, which is used to mount or link the file system or simply folders from one linux machine to another linux machine.<br />
This mounting makes folders and files transparently available  to the other linux machines across the network.<span id="more-147"></span></p>
<h3>NFS service</h3>
<p>NFS service is the linux service application which runs nfs server on the background, so that nfs clients can access.</p>
<h3>How to start the NFS file system</h3>
<blockquote><p>service nfs start</p>
<p>or</p>
<p>service nfs restart</p>
<p>or</p>
<p>/etc/init.d/nfs start</p>
<p>or</p>
<p>/etc/init.d/nfs restart</p></blockquote>
<p>But before starting nfs service you should make sure that portmap service is running, this is because nfs service depends on portmap service</p>
<h3>How to start portmap service</h3>
<blockquote>
<blockquote><p>service portmap start</p>
<p>or</p>
<p>service portmap restart</p>
<p>or</p>
<p>/etc/init.d/portmap start</p>
<p>or</p>
<p>/etc/init.d/portmap restart</p></blockquote>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/linux/how-to-start-nfs-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS file system in Linux</title>
		<link>http://www.ramraje.com/linux/nfs-file-system-in-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nfs-file-system-in-linux</link>
		<comments>http://www.ramraje.com/linux/nfs-file-system-in-linux/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:15:42 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[File system]]></category>
		<category><![CDATA[NFS]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=143</guid>
		<description><![CDATA[NFS stands for Network File System. And this is the one which is most widely used file system on Linux operating system based computers. Using this file system you can actually mount a file(s) from one Linux computer to another Linux computer if the both system are in the same network(LAN). Mounting means just copying [...]]]></description>
			<content:encoded><![CDATA[<p>NFS stands for Network File System. And this is the one which is most widely used file system on Linux operating system based computers. Using this file system you can actually mount a file(s) from one Linux computer to another Linux computer if the both system are in the same network(LAN).<span id="more-143"></span></p>
<p>Mounting means just copying the files from source Linux machine to the target Linux machine, to be exact it is  not exactly copy, but it is a link  to the file(s) from the source computer through LAN network and you would see all the files as those were local files.</p>
<p>To have this NFS file system in your computer, you should have NFS service daemon and portmap service daemon installed, and most probably these service comes with your linux operating system.</p>
<p>To check if the NFS and portmap service daemons installed or not, run below commands</p>
<blockquote><p>service portmap status</p></blockquote>
<p>If portmap is already installed, it will shows the status otherwise shows unrecognized service.</p>
<blockquote><p>service nfs status</p></blockquote>
<p>If NFS is already installed, it will shows the status otherwise shows unrecognized service.</p>
<p>Finally, to mount file/files from one computer to another computer, run below command</p>
<blockquote><p>mount -t nfs &lt;target_host_ip&gt;:/file/path /file/path</p></blockquote>
<p>&lt;target_host_ip&gt;:/file/path &#8211; target is the your target linux computer and /file/path is file path that you want to mount or copy to the another machine. The path should be from root.</p>
<p>Second argument &#8220;/file/path&#8221; is the folder path in your target linux  box, and this should be exist, mean you should create it before doing mount.</p>
<p>I hope you this help in mounting files between linux machines.</p>
<p>Leave a comment, If you find it useful or you have any doubts or you can mail me also, find my email at contact me page.</p>
<p><strong><span style="font-size: 10pt; font-family: Tahoma;"><br />
</span></strong></p>
<blockquote><p><strong><span style="font-size: 10pt; font-family: Tahoma;"><br />
</span></strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/linux/nfs-file-system-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popular Perl web applications, part 1</title>
		<link>http://www.ramraje.com/programming/perl/popular-perl-web-applications-part-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=popular-perl-web-applications-part-1</link>
		<comments>http://www.ramraje.com/programming/perl/popular-perl-web-applications-part-1/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 16:24:04 +0000</pubDate>
		<dc:creator>Ramraj Edagutti</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[BugZilla]]></category>
		<category><![CDATA[IMDb.com]]></category>
		<category><![CDATA[Internet Movie Database]]></category>
		<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[Perl applications]]></category>
		<category><![CDATA[Perl Web Applications]]></category>

		<guid isPermaLink="false">http://www.ramraje.com/?p=127</guid>
		<description><![CDATA[Movable Type Movable Type is premium publishing and blogging software which is developed using perl.It is used for developing blog websites, content managed websites along with  social communities. Latest version of Movable Type runs on perl 5.8.1 or above. Unlike wordpress, another popular open source blogging software, movable type supports both static and dynaminc content [...]]]></description>
			<content:encoded><![CDATA[<h3>Movable Type</h3>
<p>Movable Type is premium publishing and blogging software which is developed using perl.It is used for developing blog websites, content managed websites along with  social communities. Latest version of Movable Type runs on perl 5.8.1 or above.<span id="more-127"></span></p>
<p>Unlike wordpress, another popular open source blogging software, movable type supports both static and dynaminc content publishing, but dynamic publishing requires PHP4 or PHP5. And also Movable type does not support mod_perl with Apache web server version 2.x. Movable Type is available under both open source and commercial licenses.</p>
<h3>Internet Movie Database (IMDb.com)</h3>
<p>Full form of IMDb is &#8220;Internet Movie Database&#8221;. IMDb.com websites is a huge collection of movies, tv and video shows. Till date it has collected over 15 million movie/tv shows information. This site has a more than 57 million monthly visitors with 17 million registered users. And no wonder this great website been developed using perl, apart from perl they also uses java and python programming languages.</p>
<h3>BugZilla</h3>
<p>BugZilla is a software bug tracking system. This projects mainly uses mod_perl and DBD::mysql modules for development. Major software companies across the globe uses this tool to track the software defects/bugs and effectively manage their projects.</p>
<p>It is a open source and free solution avaible to any one at no charge. Bugzilla also provides additional  features like tracking code changes, submitting patches and effecive communication among team members.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramraje.com/programming/perl/popular-perl-web-applications-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

