<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-35892106</atom:id><lastBuildDate>Wed, 28 Aug 2024 11:32:20 +0000</lastBuildDate><category>Websphere</category><category>hadoop</category><category>hadoop configuration</category><category>hadoop in windows</category><category>java</category><category>map-reduce</category><category>photoshop</category><category>standalone client</category><category>.C</category><category>.K</category><category>.M</category><category>.Y</category><category>Cache</category><category>DNS</category><category>DNS Cache</category><category>DNS refresh</category><category>DSC</category><category>DSC plate</category><category>EJB</category><category>EJB local</category><category>EPS</category><category>Eclipse</category><category>Hibernate</category><category>IBM</category><category>IBM installation manager</category><category>IBM trail products</category><category>J2EE</category><category>J2EE application users list</category><category>JDBC</category><category>JDBC call</category><category>JDK 1.5</category><category>JMS</category><category>JMS client</category><category>JVM</category><category>Microsoft Picture Manager</category><category>MyEclipse</category><category>Native SQL to DTO coversion</category><category>NoSuchMethodError</category><category>ORA-01000</category><category>ORB</category><category>ORM</category><category>ORM entity mapping</category><category>Optimization</category><category>PL/SQL</category><category>Pass by reference</category><category>RAD</category><category>RAD issue</category><category>Remove deleted workspace</category><category>Switch Workspace</category><category>TIF</category><category>TIFF</category><category>TTL</category><category>VB script</category><category>aggregate functions in hibernate</category><category>alpha numeric sequence</category><category>analysis</category><category>association</category><category>class loading</category><category>communicator</category><category>connect JDBC</category><category>cursors</category><category>cygwin</category><category>debugging</category><category>deleted workspace cleanup</category><category>dimesions</category><category>disable virus scan</category><category>distributed file system</category><category>distribution</category><category>duplicate</category><category>duplicate removal</category><category>eager fetch</category><category>hack</category><category>huge data</category><category>image</category><category>implicit entity conversion</category><category>install RAD</category><category>log analysis</category><category>noLocalCopies</category><category>one-many mapping</category><category>open cursors exceeded</category><category>openssh</category><category>oracle</category><category>outlook</category><category>password reset</category><category>publickey</category><category>recent workspace</category><category>regiostry hack</category><category>registry tweak</category><category>reset password</category><category>ssh in wondows</category><category>sshd</category><category>stack trace</category><category>stop virus scan</category><category>sun.net.inetaddr.ttl</category><category>symantec</category><category>trial version RAD</category><category>unix script</category><category>user password reset</category><category>utilities</category><category>weblogic</category><category>windows</category><title>yuvaraj blog</title><description></description><link>http://yuvarajramasamy.blogspot.com/</link><managingEditor>noreply@blogger.com (Yuvaraj)</managingEditor><generator>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-5854811678393011796</guid><pubDate>Wed, 17 Jul 2013 13:29:00 +0000</pubDate><atom:updated>2013-07-17T06:29:27.538-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cursors</category><category domain="http://www.blogger.com/atom/ns#">open cursors exceeded</category><category domain="http://www.blogger.com/atom/ns#">ORA-01000</category><category domain="http://www.blogger.com/atom/ns#">oracle</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;ORA-01000: maximum open cursors exceeded&lt;/span&gt;&lt;/h2&gt;
&lt;style&gt;v\:* {  BEHAVIOR: url(#default#VML) } o\:* {  BEHAVIOR: url(#default#VML) } w\:* {  BEHAVIOR: url(#default#VML) } .shape {  BEHAVIOR: url(#default#VML) } &lt;/style&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;o:smarttagtype name=&quot;PlaceType&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name=&quot;PlaceName&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name=&quot;City&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name=&quot;place&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name=&quot;PersonName&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:smarttagtype&gt;&lt;/span&gt;&lt;style&gt;st1\:* {  BEHAVIOR: url(#default#ieooui) } &lt;/style&gt;&lt;style&gt;@font-face {  font-family: Tahoma; } @font-face {  font-family: Verdana; } @font-face {  font-family: Calibri; } @page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; } A:link {  mso-style-priority: 99 } SPAN.MSOHYPERLINK {  mso-style-priority: 99 } A:visited {  mso-style-priority: 99 } SPAN.MSOHYPERLINKFOLLOWED {  mso-style-priority: 99 } P.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Calibri } LI.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Calibri } DIV.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Calibri } A:link {  COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink {  COLOR: blue; TEXT-DECORATION: underline } A:visited {  COLOR: purple; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed {  COLOR: purple; TEXT-DECORATION: underline } SPAN.EmailStyle17 {  COLOR: windowtext; FONT-FAMILY: Calibri; mso-style-type: personal } SPAN.EmailStyle18 {  COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal } SPAN.EmailStyle19 {  COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply } DIV.Section1 {  page: Section1 } &lt;/style&gt;&lt;br /&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;531391108-05062009&quot; style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;Possible Fix :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;span class=&quot;531391108-05062009&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;1)Ensure Oracle 8.1.7 JDBC driver or a later version should be used  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;span class=&quot;531391108-05062009&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;2)Java code can be checked for closure of ResultSet &amp;amp; Statement after  the using this specific stored procedure&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-size: small;&quot;&gt;3)&lt;/span&gt;&lt;span class=&quot;531045512-21122009&quot; style=&quot;color: black; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt; Increase the value of &lt;a class=&quot;l&quot; href=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot; onmousedown=&quot;return rwt(this,&#39;&#39;,&#39;&#39;,&#39;res&#39;,&#39;5&#39;,&#39;AFQjCNENXz1acJ1MZIeapeM8fuggofDcyg&#39;,&#39;&amp;amp;sig2=toHv99Z3NA8cncqVy0a6Uw&#39;,&#39;0CBsQFjAE&#39;)&quot; title=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot;&gt;&lt;i title=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot;&gt;OPEN_CURSORS&lt;/i&gt;&lt;/a&gt; parameter  in Oracle &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-size: small; font-weight: bold;&quot;&gt;Steps to fix:&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;style&gt;@font-face {  font-family: Calibri; } @font-face {  font-family: Tahoma; } @page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal {  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Times New Roman&quot;,&quot;serif&quot; } LI.MsoNormal {  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Times New Roman&quot;,&quot;serif&quot; } DIV.MsoNormal {  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Times New Roman&quot;,&quot;serif&quot; } A:link {  COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.MsoHyperlink {  COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99 } A:visited {  COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.MsoHyperlinkFollowed {  COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.EmailStyle17 {  COLOR: windowtext; FONT-FAMILY: &quot;Arial&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle18 {  COLOR: #1f497d; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle19 {  COLOR: #1f497d; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle20 {  COLOR: #1f497d; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle21 {  COLOR: #1f497d; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal-reply } .MsoChpDefault {  FONT-SIZE: 10pt; mso-style-type: export-only } DIV.Section1 {  page: Section1 } &lt;/style&gt;&lt;br /&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;span class=&quot;531045512-21122009&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;1)Do static code check and all of the cursors/connections  are closed properly in the java code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;span class=&quot;531045512-21122009&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;2) Ask DBA Team to check the value of &lt;a class=&quot;l&quot; href=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot; onmousedown=&quot;return rwt(this,&#39;&#39;,&#39;&#39;,&#39;res&#39;,&#39;5&#39;,&#39;AFQjCNENXz1acJ1MZIeapeM8fuggofDcyg&#39;,&#39;&amp;amp;sig2=toHv99Z3NA8cncqVy0a6Uw&#39;,&#39;0CBsQFjAE&#39;)&quot; title=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot;&gt;&lt;i title=&quot;http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/server.102/b14237/initparams138.htm&quot;&gt;OPEN_CURSORS&lt;/i&gt;&lt;/a&gt; parameter  in Oracle and see whether the value is too less or not.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;color: black;&quot;&gt;
&lt;span class=&quot;531045512-21122009&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;3)Further analysis is possible only if we are having  details of all open cursors at the time of exception (DBA Team can provide the  details of opened cursors)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2013/07/ora-01000-maximum-open-cursors-exceeded.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-3802976267577372902</guid><pubDate>Wed, 17 Jul 2013 13:27:00 +0000</pubDate><atom:updated>2013-07-17T06:27:51.439-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.C</category><category domain="http://www.blogger.com/atom/ns#">.K</category><category domain="http://www.blogger.com/atom/ns#">.M</category><category domain="http://www.blogger.com/atom/ns#">.Y</category><category domain="http://www.blogger.com/atom/ns#">DSC</category><category domain="http://www.blogger.com/atom/ns#">DSC plate</category><category domain="http://www.blogger.com/atom/ns#">EPS</category><category domain="http://www.blogger.com/atom/ns#">photoshop</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;EPS file does not open correctly in photoshop-(&quot;Could not open or parse a DSC plate file because the file cannot be found&quot;):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I have an issue from Customer saying that .eps file is not opened properly in photoshop application and throws  the error &quot;Could not open or parse a DSC plate file because the file cannot be found&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;1)Downloaded open source viewer application such as InfraView and installed.The .eps file opened propely but in blurred form, so that I fgiured out some information is missing to reconstruct the file.&lt;br /&gt;2)Tried to open in photoshop and got the error.I converted psd file to eps file which worked fine.At that time I came across options &#39;multiple file version/single file version&#39; before saving the psd file to eps.&lt;br /&gt;3)read more about EPS file format in internet and clarified about &#39;multiple file version/single file version&#39;&lt;br /&gt;4)Opened the error .eps file in Notepad++ and checked and found out .C,.M,.Y and .K files are missing and that was originally created as multiple file version.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;Resolution:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;span class=&quot;015505211-07122009&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;EPS file was created as multiple file version and some of the files are missed  out( Logo.C,Logo.M, Logo.Y,Logo.K )&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;create single file version of eps file and upload the image to Application&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2013/07/eps-file-does-not-open-correctly-in.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-3301219563084772800</guid><pubDate>Wed, 17 Jul 2013 12:56:00 +0000</pubDate><atom:updated>2013-07-17T05:56:42.285-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">IBM installation manager</category><category domain="http://www.blogger.com/atom/ns#">IBM trail products</category><category domain="http://www.blogger.com/atom/ns#">install RAD</category><category domain="http://www.blogger.com/atom/ns#">RAD issue</category><category domain="http://www.blogger.com/atom/ns#">trial version RAD</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Unable to install the trial version of a product with IBM Installation Manager:&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I&amp;nbsp; downloaded trial version of rational application developer (RAD) from IBM website and tried to install the product. Normally all of the IBM products will be installed via IBM installation manager. The configuration file packed inside installation file (exe) will have information to obtain IBM product repository, in out case this is http link &lt;a href=&quot;https://www-912.ibm.com/software/repositorymanager/action/getInitData&quot;&gt;https://www-912.ibm.com/software/repositorymanager/action/getInitData&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I clicked on the installation file which extracted the files to temporary location and started screens to install the installation manager and received popup with below error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;CRIMC1085E: Resumable download failed for: https://www.ibm.com/software/repositorymanager/action/getInitData.&amp;nbsp;&amp;nbsp;&amp;nbsp; CRIMC1083E: Failed to retrieve &#39;https://www.ibm.com/software/repositorymanager/action/getInitData&#39;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CRIMC1084E: An exception is thrown while retrieving the file &#39;https://www.ibm.com/software/repositorymanager/action/getInitData&#39; to &#39;C:\Users\ADMINI~1\AppData\Local\Temp\cicdip_Administrator\1374108030737\nf\cicURLLgetInitData7337285020417225312.tmp&#39;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This issue can occur for different reasons. You might have an issue with your network connection. If you retrieve the file from a machine or network in your environment, the file system might be mounted incorrectly. On AIX, when you install from a file system that is mounted with the &#39;cio&#39; option, the installation fails with the exception: A system call received a parameter that is not valid.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verify your network connection. If you retrieve the files from your environment, copy the source files to a different file system and install from that file system.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.net.ConnectException: Connection timed out: connect&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I ignored the error and installed &quot;IBM installation manager&quot; and I restarted the installation manager and agian failed with same error, I ignored the error and the installation manager didn&#39;t have any repositories to install RAD. So I searched in Google and found IBM support page &lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg21457139&quot;&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21457139&lt;/a&gt; which says &quot;Turn Off firewall&quot;. But firewall is already disabled in my system.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;My computer is connected to internet via proxy server and based on the error message I suspected that proxy server needs to be configured to obtain the repository information and I&#39;m right.From the installation manager I clicked &quot;Add Repositories&quot; link and expanded &quot;Internet&quot; option and configured proxy server details.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;How do we get repository information to install RAD ?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Accessed the link &lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://www.ibm.com/software/repositorymanager/action/getInitData&quot;&gt;https://www.ibm.com/software/repositorymanager/action/getInitData&lt;/a&gt; obtained from error message which returns RAD repository data in XML tags. Specified the repository information in Installation manager which listed RAD 9.0 under installation packages.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;ibm-small&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Note:You need to provide credentials for proxy server and IBM site credentials when repository information is validated in installation manager.RAD repository location: &lt;a href=&quot;https://www.ibm.com/software/repositorymanager/com.ibm.rational.application.developer.v9&quot;&gt;https://www.ibm.com/software/repositorymanager/com.ibm.rational.application.developer.v9&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 class=&quot;ibm-small&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;ibm-small&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2013/07/unable-to-install-trial-version-of.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-7701171736732430319</guid><pubDate>Mon, 12 Nov 2012 21:10:00 +0000</pubDate><atom:updated>2012-11-12T13:10:03.640-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EJB</category><category domain="http://www.blogger.com/atom/ns#">EJB local</category><category domain="http://www.blogger.com/atom/ns#">IBM</category><category domain="http://www.blogger.com/atom/ns#">J2EE</category><category domain="http://www.blogger.com/atom/ns#">noLocalCopies</category><category domain="http://www.blogger.com/atom/ns#">Optimization</category><category domain="http://www.blogger.com/atom/ns#">ORB</category><category domain="http://www.blogger.com/atom/ns#">Pass by reference</category><category domain="http://www.blogger.com/atom/ns#">Websphere</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Websphere EJB Optimization: Convert pass by value&amp;nbsp;calls to pass by reference without Local Interface&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I&#39;ve encountered a specific situation in the project where EJB calls should be optimized to reduce response time and memory footprint without modifying code.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Every J2EE programmer know about EJB local interfaces that enables EJB calls like local method calls as long as client and EJB resides in same physical machine. This option reduces overhead of data serialization and transfer between client and EJB layer and also reduces memory foot print since the data should be copied from one layer to another layer.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;How do we enable the same feature for any existing project missing Local Interfaces ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;IBM websphere provides the following options to optimize EJB calls without adding local interfaces.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1) Set &quot;Pass 
by reference&quot; property &amp;nbsp;in ORB service to true. Navigate to Application servers --&amp;gt; server_name --&amp;gt; Container services --&amp;gt; ORB service. Find the property &quot;pass by reference&quot; and set the value to TRUE.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2)&lt;span style=&quot;background-color: white;&quot;&gt;Specify noLocalCopies in servant.jvm.options (-Dcom.ibm.CORBA.iiop.noLocalCopies=1).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Caution: We &lt;span style=&quot;background-color: white;&quot;&gt;must ensure that the application is not negatively impacted by using pass-by-reference semantics. For example, if one bean passes another bean an object, expecting that the second bean can modify the object without affecting the first bean&#39;s object.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/11/websphere-ejb-optimization-convert-pass.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-4739462136845396400</guid><pubDate>Wed, 24 Oct 2012 15:46:00 +0000</pubDate><atom:updated>2012-10-24T08:46:04.783-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">dimesions</category><category domain="http://www.blogger.com/atom/ns#">image</category><category domain="http://www.blogger.com/atom/ns#">Microsoft Picture Manager</category><category domain="http://www.blogger.com/atom/ns#">photoshop</category><category domain="http://www.blogger.com/atom/ns#">TIF</category><category domain="http://www.blogger.com/atom/ns#">TIFF</category><title>Unable to upload the TIF image of large dimensions 1920x1080 to Java Application</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I got an incident from customer saying that we are unable to upload TIF images to application and how ever they are able to upload when it was opened in Photoshop and saved.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I have raised this issue with third party and we were not having exact application logs to look into&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Reason:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Application could not load this because it was missing the dimension information (width  x height).  This information is required in order for STEP to be able to load a  TIFF image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The  dimension information is metadata on the file that is normally provided by  whatever program the file was created in.  Unfortunately, I cannot tell what  program created this file, as it did not leave its name in the metadata either. Re-saving this image in any Photoshop application will supply the required  metadata and then you should be able to import it into STEP.  Just be aware that  Photoshop will default to 72 dpi unless a different &lt;span style=&quot;font-size: x-small;&quot;&gt;resolution is  set.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rx1dow33E48GbqX2N1HrOEJqXm65g947iHHN50BXAfNA9_hNi7BUuEkE4OFZFmj1RTLFCrJQoT-kgqdyASgFOaVWUVkemhL95OmlGTlTwVlIRvXYJzKMDbi_Fy8oUZVeq5op/s1600-h/untitled.bmp&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5441448371856568674&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rx1dow33E48GbqX2N1HrOEJqXm65g947iHHN50BXAfNA9_hNi7BUuEkE4OFZFmj1RTLFCrJQoT-kgqdyASgFOaVWUVkemhL95OmlGTlTwVlIRvXYJzKMDbi_Fy8oUZVeq5op/s320/untitled.bmp&quot; style=&quot;cursor: pointer; float: left; height: 56px; margin: 0pt 10px 10px 0pt; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Workaround:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;203122808-11022010&quot;&gt;Select all the images  into Microsoft Picture Manager.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Click on Edit Pictures -- &amp;gt;Re-size and then select the required dimensions  and press OK.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;203122808-11022010&quot;&gt;Click on File --  &amp;gt;Save All to save all the re-sized images &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;203122808-11022010&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Please note that original images will be re-sized and make sure that back up original images in case if required&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;style&gt;@font-face {  font-family: MS Mincho; } @font-face {  font-family: MS Mincho; } @font-face {  font-family: Calibri; } @font-face {  font-family: Tahoma; } @font-face {  font-family: ITC Avant Garde Std Bk; } @font-face {  font-family: Georgia; } @font-face {  font-family: @MS Mincho; } @page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; } P.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot; } LI.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot; } DIV.MsoNormal {  FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot; } A:link {  COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.MsoHyperlink {  COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99 } A:visited {  COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.MsoHyperlinkFollowed {  COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99 } SPAN.EmailStyle17 {  COLOR: windowtext; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle18 {  COLOR: black; mso-style-type: personal } SPAN.EmailStyle19 {  COLOR: #1f497d; FONT-FAMILY: &quot;Calibri&quot;,&quot;sans-serif&quot;; mso-style-type: personal } SPAN.EmailStyle20 {  COLOR: black; mso-style-type: personal-reply } .MsoChpDefault {  FONT-SIZE: 10pt; mso-style-type: export-only } DIV.Section1 {  page: Section1 } &lt;/style&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/unable-to-upload-tif-image-of-large.html</link><author>noreply@blogger.com (Yuvaraj)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-rx1dow33E48GbqX2N1HrOEJqXm65g947iHHN50BXAfNA9_hNi7BUuEkE4OFZFmj1RTLFCrJQoT-kgqdyASgFOaVWUVkemhL95OmlGTlTwVlIRvXYJzKMDbi_Fy8oUZVeq5op/s72-c/untitled.bmp" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-692775906897458854</guid><pubDate>Wed, 24 Oct 2012 15:40:00 +0000</pubDate><atom:updated>2012-10-24T08:40:15.109-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cache</category><category domain="http://www.blogger.com/atom/ns#">DNS</category><category domain="http://www.blogger.com/atom/ns#">DNS Cache</category><category domain="http://www.blogger.com/atom/ns#">DNS refresh</category><category domain="http://www.blogger.com/atom/ns#">JDK 1.5</category><category domain="http://www.blogger.com/atom/ns#">JVM</category><category domain="http://www.blogger.com/atom/ns#">sun.net.inetaddr.ttl</category><category domain="http://www.blogger.com/atom/ns#">TTL</category><title>Java DNS Cache issues</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Java 1.5 DNS Cache issues:&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Recently I encountered an issue with the application and things went pretty ugly. One of the database server is migrated from one hardware to another (copy DB to new HW) and DNS change was part of the implementation. The permissions on old database tables were revoked, but we are able to connect to that database.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Once all migration activities are completed I started testing our application (J2EE) connectivity to new database server (after couple of hours) I encountered permission issue on selecting database tables.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;DBA&#39;s were telling that I&#39;m still connecting to old servers and requested to point JDBC connection to new servers, but the fact is we have the new host name already in our JDBC string which is used in other part of the application.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Finally we figured it out the issue would have happened because of DNS cache and I found out that DNS queries to our new database server has TTL value of 3600 seconds, so Linux DNS cache is not an issue since I started testing couple of hours after DNS change.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;use &lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;i&gt;dig +ttlid &amp;lt;host-name&amp;gt;&lt;/i&gt;&lt;/span&gt; command in Linux to find out TTL value returned by DNS servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;;; ANSWER SECTION:&lt;br /&gt;google.com.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74.125.225.39&lt;br /&gt;google.com.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;300&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74.125.225.34&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The value of 300 is TTL for google.com and DNS entries for google.com will be flushed out from DNS cache after 300 seconds.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;So where is the issue ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Root Cause:&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Java (1.4 &amp;amp; 1.5) has internal DNS cache whose entries never expires ( TTL =-1) which caused our application to connect to old servers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Resolution:&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Change the TTL value of Java DNS cache:&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The SDK provides the following properties to control network address caching:&lt;br /&gt;   networkaddress.cache.ttl (default: -1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;You can use the following four properties to override the default behavior.
&lt;/span&gt;&lt;/div&gt;
&lt;ul class=&quot;ibm-bullet-list ibm-no-links&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i&gt;networkaddress.cache.ttl&lt;/i&gt; (default: -1)    &lt;br /&gt;
Specified in the java.security file to indicate the caching 
policy for successful name lookups from the name service. The value is 
specified as an integer to indicate the number of seconds to cache the 
successful lookup. A value of -1 indicates &quot;cache forever&quot;.&lt;br /&gt;&lt;/span&gt;  &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i&gt;networkaddress.cache.negative.ttl&lt;/i&gt; (default: 10)&lt;br /&gt;
Specified in the java.security file to indicate the caching 
policy for unsuccessful name lookups from the name service. The value is
 specified as an integer to indicate the number of seconds to cache the 
failure for unsuccessful lookups.  A value of 0 indicates &quot;never cache&quot;.
 A value of -1 indicates &quot;cache forever&quot;. &lt;br /&gt;&lt;/span&gt;  &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i&gt;sun.net.inetaddr.ttl&lt;/i&gt; &lt;br /&gt;
This property is a sun private system property that corresponds to networkaddress.cache.ttl.
  It takes the same value and has the same meaning, but you can set it 
as a command-line option. However, the preferred way is to use the 
security property mentioned above. &lt;br /&gt;&lt;/span&gt;  &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i&gt;sun.net.inetaddr.negative.ttl&lt;br /&gt; &lt;/i&gt;This property is a sun private system property that corresponds to networkaddress.cache.negative.ttl.
  It takes the same value and has the same meaning, but you can set it 
as a command-line option.  However, the preferred way is to use the 
security property mentioned above.&lt;br /&gt;&lt;/span&gt; &lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
You can disable caching by adding &lt;i&gt;-&lt;/i&gt;Dsun.net.inetaddr.ttl=0 on the command line starting the JVM. However, you cannot set the value of networkaddress.cache.ttl&amp;nbsp;on the command line. You can set the required value in the java.security file, which is located in the %JRE%\lib\security&lt;i&gt; &lt;/i&gt;directory.&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Workarounds:&lt;/span&gt;&lt;/h4&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Upgrade to JDK 1.6 / JDK 1.7 which introduced changes to default DNS caching behavior. The TTL values are set to 30 seconds without a security manager.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;JVM restart after DNS changes. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;References:&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21207534&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21439843 &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/java-dns-cache-issues.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-3344373885234870977</guid><pubDate>Wed, 17 Oct 2012 20:46:00 +0000</pubDate><atom:updated>2012-10-17T13:46:42.098-07:00</atom:updated><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Websphere connection pool errors:ORA-02396: exceeded maximum idle time, please connect again&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Today one of our application experienced Oracle time out errors “ORA-02396: exceeded maximum idle time, please connect again” when ever user submits long running operations and was able to re produce the same issue in my local environment with the help of debugger .&lt;br /&gt;
&lt;br /&gt;
Oracle profile for the app user has idle time out of 45 minutes and when ever application took more than 45 minutes for processing the request and tries to update the results to DB, the application is throwing this error. Oracle discards idle connections after 45 minutes and for some reason websphere is not discarding this stale connections. Application is getting connection from Connection pool via JNDI lookup and closing out resources during method exits and not keeping the connection open.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The data source has the default values for connection pool properties.&lt;br /&gt;
Reap time: 180 seconds&lt;br /&gt;
Unused timeout: 1800 seconds&lt;br /&gt;
Aged timeout: 0 seconds&lt;br /&gt;
Global Transactions :No&lt;br /&gt;
EJB Transaction Attribute:Default (required) -CMT&lt;br /&gt;
Transaction started : Not in Web Layer/EJB Layer. DAO classes are opening connections.&lt;br /&gt;
Pattern: open/use/close pattern for DB connections.&lt;br /&gt;
&lt;br /&gt;
I’ve changed “Aged timeout parameter” to 1200 seconds in my local environment which didn’t help. Not sure why Connection pool is keeping stale connections.&lt;br /&gt;
&lt;br /&gt;
Finally I decided to do more research why stale connections are not discarded from Websphere connection pool even with appropriate settings.&lt;br /&gt;
&lt;br /&gt;
The application specifies “required” transaction attribute for all container managed transactions and resource sharing scope is sharable for all local transactions (LTC).&lt;br /&gt;
&lt;br /&gt;
According to websphere documentation when ever new JDBC connection is allocated under LTC (Local transaction containment) it is marked as having an affinity to the current LTC and when application closes the connection it is not returned to the pool until transaction ends and connection remains used by this transaction so connection pool mechanism can’t discard this connection even though it becomes stale connection.&lt;br /&gt;
&lt;br /&gt;
Please refer http://www.ibm.com/developerworks/websphere/library/techarticles/0506_johnsen/0506_johnsen.html for more details.&lt;br /&gt;
&lt;br /&gt;
I have verified this in my local websphere and when ever LTC has started the same logical connection is returned every time application tries to acquire db connection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some resolutions for this issue&lt;br /&gt;
&lt;br /&gt;
1) Change the resource sharing scope of JDBC connections to “UnSharable” which creates more physical connection to database instead of sharing single physical connection using multiple logical connections and connection will be released to connection pool after application closes the connection.&lt;br /&gt;
&lt;br /&gt;
2Add exception handler to specific part of the code and obtain new connection gracefully&lt;br /&gt;
&lt;br /&gt;
3)Optimize application processing or long running queries&lt;br /&gt;
&lt;br /&gt;
I did more research on the possible implementation of option (1) and it seems that option (1) is not feasible to implement with our application DB access pattern.&lt;br /&gt;
&lt;br /&gt;
Resource sharing property can be specified either in web.xml or ejb-jar.xml along with resource reference (Datasource) and application code (servlet or EJB) should lookup the data source using this reference container will utilize sharable property (res-sharing-scope).How ever our app code is not using resource references to obtain database connection and instead obtain connections in DAO class.&lt;br /&gt;
Since the sharable property in CMConfigData (Connection Manager config Data) object in websphere object and it is not exposed outside (no setters) , the possibility of using IBM helper classes to set the sharable property in the opened database connection is blocked&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can implement Option 2 and 3 together and IBM also suggests handling StaleConnection exceptions in the code and more information is available at http://www.redbooks.ibm.com/redbooks/SG246688/axa.htm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/websphere-connection-pool-errorsora.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-5729999409189966783</guid><pubDate>Wed, 17 Oct 2012 20:46:00 +0000</pubDate><atom:updated>2012-10-17T13:46:28.490-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">class loading</category><category domain="http://www.blogger.com/atom/ns#">debugging</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">NoSuchMethodError</category><category domain="http://www.blogger.com/atom/ns#">Websphere</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;title&quot; id=&quot;debugging_classloaders_in_websphere&quot;&gt;
&lt;a href=&quot;http://www.jroller.com/page/wasp/?anchor=debugging_classloaders_in_websphere&quot; rel=&quot;bookmark&quot;&gt;   &lt;span style=&quot;font-weight: bold;&quot;&gt;Debugging class loaders in WebSphere  &lt;/span&gt;&lt;/a&gt; &lt;/div&gt;
&lt;br /&gt;
We typically change the classloader from the default of  PARENT_FIRST (i.e. get WebSphere to find/load the classes) to  PARENT_LAST (i.e the application is responsible for finding/loading  classes). However, when we did it for this application, we still got the  same error: &quot;java.lang.NoSuchMethodError&quot;. So, what we needed was some  classloading debugging to find out what was going on...   &lt;br /&gt;
&lt;strong&gt;Setting up debugging of classloaders in Websphere&lt;/strong&gt;&lt;br /&gt;
If you have a dev instance of WebSphere 5.1/6 then the  following process should work and allow you to get debugging going.  (Note, sorry all you Firefox lovers, the WebSphere admin console needs  IE to work for this as it will not allow you to set the right debugging  modules.) To setup debugging, go to the Application Server settings (for  MDF, this will be &quot;server1&quot;)&lt;br /&gt;
1. Go to PROCESS DEFINITION &amp;gt; JVM and tick the &quot;Verbose JNI&quot; and &quot;Verbose Classloading&quot; and click on OK.&lt;br /&gt;
2. Click at the bottom, CUSTOM PROPERTIES and a new custom property called &quot;ws.ext.debug&quot; set to &quot;true&quot; and again click on OK&lt;br /&gt;
3. You have now set up the debugging flags for the bootstrap  and system classloaders. You now need to do the same thing for the app  servers three classloaders. From the Application server settings (again,  &quot;server&quot; for MDF instances) click on LOGGING AND TRACING &amp;gt;  DIAGNOSTIC TRACE and click on MODIFY button.&lt;br /&gt;
4. A window will pop up (this is the bit that does not work  on Firefox) and you need to find (at the bottom) the &quot;Websphere  ClassLoader&quot; and click and set to ENABLE ALL. When you click on OK, the  text in the Trace Specfication will change to &quot;WebSphere  ClassLoader=all=enabled&quot;. Now change the log size (default is 20Mb,  which is way to small) to around 200Mb. Click on OK. Now SAVE and  Syncronise your changes and restart your app.&lt;br /&gt;
5. When you restart WAS, you will get a new log file called  &quot;trace.log&quot; which will contain all the classloading debugging info, with  the boostrap and system classloading going into the native_stdout/err  logs.&lt;br /&gt;
You can see below the boostrap classloading extract - its a very big file as it outlines all classes WebSphere boots and loads.&lt;br /&gt;
&lt;code&gt;  &lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;...

|Opened /opt/websphere/asvr/java/jre/lib/jce.jar|

|Opened /opt/websphere/asvr/java/jre/lib/charsets.jar|

|Loaded java.lang.Object from /opt/websphere/asvr/java/jre/lib/rt.jar|

|Loaded java.io.Serializable from /opt/websphere/asvr/java/jre/lib/rt.jar|

...
&lt;/pre&gt;
The following sample shows the output in the trace.log (a  very very big file, so you are going to need to use text manipulation  tools like grep, sed or awk realistically)&lt;br /&gt;
&lt;code&gt;  &lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;...

6/21/07 12:44:47:994 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass &amp;gt; findClass name=org.w3c.dom.Node

this=com.ibm.ws.classloader.CompoundClassLoader@42d227

6/21/07 12:44:47:996 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass d class org.w3c.dom.Node found in

SinglePathClassProvider : com.ibm.ws.classloader.SinglePathClassProvider@ccd65d classpath =

/u01/websphere/asvr/installedApps/cell/app_war.ear/app.war/WEB-INF/lib/NCSO-6.jar

6/21/07 12:44:47:997 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass d loaded org.w3c.dom.Node from this=

6/21/07 12:44:47:998 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass d loaded org.w3c.dom.Node using classloader=

6/21/07 12:44:48:162 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass &amp;gt; loadClass name=org.w3c.dom.NodeList

this=com.ibm.ws.classloader.CompoundClassLoader@42d227

6/21/07 12:44:48:162 &lt;span class=&quot;caps&quot;&gt;BST&lt;/span&gt;]  1e88c7f CompoundClass &amp;gt; findClass name=org.w3c.dom.NodeList

this=com.ibm.ws.classloader.CompoundClassLoader@42d227

...&lt;/pre&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;http://www-1.ibm.com/support/docview.wss?rs=180&amp;amp;uid=swg21228700%3C/p%3E&lt;br /&gt;http://websphere.sys-con.com/read/196105.htm%3C/p%3E&lt;br /&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=38719#c2&lt;/span&gt;&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/debugging-class-loaders-in-websphere-we.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-8252333679985005309</guid><pubDate>Wed, 17 Oct 2012 20:46:00 +0000</pubDate><atom:updated>2012-10-17T13:46:06.738-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">J2EE application users list</category><category domain="http://www.blogger.com/atom/ns#">password reset</category><category domain="http://www.blogger.com/atom/ns#">reset password</category><category domain="http://www.blogger.com/atom/ns#">user password reset</category><category domain="http://www.blogger.com/atom/ns#">weblogic</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
How to change the users passwords from J2EE Application ?&lt;br /&gt;
&lt;br /&gt;
There are no generic J2EE API&#39;s to manipulate J2EE application user details.How ever each Application servers exposes MBeans to perform these operations through console or  via scripting tools.&lt;br /&gt;
Eg: While creating the users from admin console, specifc mbeans will be called behind the scenes.&lt;br /&gt;
&lt;br /&gt;
I wrote an example to reset the password for particular user using weblogic MBeans from Servlet.Eventhough this is not the exhaustive example which provides the basic steps for listing users/groups and modifying the user passwords&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.PrintWriter;&lt;br /&gt;&lt;br /&gt;import javax.naming.Context;&lt;br /&gt;import javax.servlet.ServletException;&lt;br /&gt;import javax.servlet.http.HttpServlet;&lt;br /&gt;import javax.servlet.http.HttpServletRequest;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;&lt;br /&gt;import weblogic.jndi.Environment;&lt;br /&gt;import weblogic.management.MBeanHome;&lt;br /&gt;import weblogic.management.security.RealmMBean;&lt;br /&gt;import weblogic.management.security.authentication.AuthenticationProviderMBean;&lt;br /&gt;import weblogic.management.security.authentication.GroupEditorMBean;&lt;br /&gt;import weblogic.management.security.authentication.GroupMemberListerMBean;&lt;br /&gt;import weblogic.management.security.authentication.MemberGroupListerMBean;&lt;br /&gt;import weblogic.management.security.authentication.UserEditorMBean;&lt;br /&gt;import weblogic.management.security.authentication.UserPasswordEditorMBean;&lt;br /&gt;import weblogic.management.security.authentication.UserReaderMBean;&lt;br /&gt;import weblogic.management.security.credentials.CredentialMapperMBean;&lt;br /&gt;import weblogic.management.security.credentials.UserPasswordCredentialMapEditorMBean;&lt;br /&gt;import weblogic.management.security.credentials.UserPasswordCredentialMapReaderMBean;&lt;br /&gt;import weblogic.management.utils.InvalidParameterException;&lt;br /&gt;import weblogic.management.utils.NotFoundException;&lt;br /&gt;&lt;br /&gt;public class PasswordServlet extends HttpServlet&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; protected transient MBeanHome home;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; /**&lt;br /&gt;  * The doGet method of the servlet.&lt;br /&gt;&lt;br /&gt;  *&lt;br /&gt;  * This method is called when a form has its tag value method equals to get.&lt;br /&gt;  *&lt;br /&gt;  * @param request the request send by the client to the server&lt;br /&gt;  * @param response the response send by the server to the client&lt;br /&gt;  * @throws ServletException if an error occurred&lt;br /&gt;  * @throws IOException if an error occurred&lt;br /&gt;  */&lt;br /&gt; public void doGet(HttpServletRequest request, HttpServletResponse response)&lt;br /&gt;   throws ServletException, IOException&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt;  doPost(request, response);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * The doPost method of the servlet.&lt;br /&gt;&lt;br /&gt;  *&lt;br /&gt;  * This method is called when a form has its tag value method equals to post.&lt;br /&gt;  *&lt;br /&gt;  * @param request the request send by the client to the server&lt;br /&gt;  * @param response the response send by the server to the client&lt;br /&gt;  * @throws ServletException if an error occurred&lt;br /&gt;  * @throws IOException if an error occurred&lt;br /&gt;  */&lt;br /&gt; public void doPost(HttpServletRequest request, HttpServletResponse response)&lt;br /&gt;   throws ServletException, IOException&lt;br /&gt; {&lt;br /&gt;  response.setContentType(&quot;text/html&quot;);&lt;br /&gt;  findAdminHome();&lt;br /&gt;  PrintWriter out = response.getWriter();&lt;br /&gt;  RealmMBean[]realms= home.getActiveDomain().getSecurityConfiguration().findRealms();&lt;br /&gt;  for(int n=0;n&lt;realms .length=&quot;.length&quot; authproviders=&quot;realms[n].getAuthenticationProviders();&quot; credmappers=&quot;realms[n].getCredentialMappers();&quot; for=&quot;&quot; i=&quot;0;&quot; int=&quot;&quot; n=&quot;n&quot;&gt;&amp;lt; authProviders.length; i++) {                       if (authProviders[i] instanceof UserEditorMBean) {                  out.println(&quot;UserEditorMBean: &quot; + authProviders[i].wls_getDisplayName());              }               if (authProviders[i] instanceof GroupEditorMBean) {                  out.println(&quot;GroupEditorMBean: &quot; + authProviders[i].wls_getDisplayName());              }               if (authProviders[i] instanceof MemberGroupListerMBean) {                  out.println(&quot;MemberGroupListerMBean: &quot; + authProviders[i].wls_getDisplayName());                              }               if (authProviders[i] instanceof GroupMemberListerMBean) {                  out.println(&quot;GroupMemberListerMBean: &quot; + authProviders[i].wls_getDisplayName());                                }               if (authProviders[i] instanceof UserReaderMBean) {               UserReaderMBean users=(UserReaderMBean)authProviders[i];                  try     {                   //String listUser=users.listUsers(&quot;USR*&quot;, 100);                         out.println(&quot;Users List: &quot; +users.userExists(&quot;USR333&quot;));      out.println(&quot;Users List: &quot; +users.userExists(&quot;USR330&quot;));     }     catch (InvalidParameterException e)     {      // TODO Auto-generated catch block      e.printStackTrace();     }                                }          }                for (int i = 0; i &amp;lt; credMappers.length; i++) {                            if (authProviders[i] instanceof UserPasswordCredentialMapReaderMBean) {               UserPasswordCredentialMapReaderMBean user=(UserPasswordCredentialMapReaderMBean)authProviders[i];                  out.println(&quot;UserPasswordCredentialMapReaderMBean: &quot; + credMappers[i].wls_getDisplayName());              }               if (authProviders[i] instanceof UserPasswordCredentialMapEditorMBean) {                  out.println(&quot;UserPasswordCredentialMapEditorMBean: &quot; + credMappers[i].wls_getDisplayName());              }               if (authProviders[i] instanceof UserPasswordEditorMBean) {               UserPasswordEditorMBean pwd=(UserPasswordEditorMBean)authProviders[i];               try     {      pwd.changeUserPassword(&quot;all&quot;, &quot;allusers&quot;, &quot;ALLUSERS&quot;);       out.println(&quot;Password Chnaged : &quot; + credMappers[i].wls_getDisplayName());     }     catch (NotFoundException e)     {            e.printStackTrace();     }     catch (InvalidParameterException e)     {      e.printStackTrace();     }              }                                }          }   out.flush();   out.close();  }   private void findAdminHome()  {   Environment env = new Environment();   env.setProviderUrl(&quot;t3://localhost:7001&quot;);   env.setSecurityPrincipal(&quot;weblogic&quot;);   env.setSecurityCredentials(&quot;weblogic&quot;);    try   {    Context ctx = env.getInitialContext();    home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);   }   catch (javax.naming.NamingException e)   {    e.printStackTrace();   }  }  } &lt;/realms&gt;&lt;/code&gt;&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/how-to-change-users-passwords-from-j2ee.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-4356116783368523185</guid><pubDate>Wed, 17 Oct 2012 20:44:00 +0000</pubDate><atom:updated>2012-10-17T13:44:33.725-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">connect JDBC</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">JDBC</category><category domain="http://www.blogger.com/atom/ns#">JDBC call</category><category domain="http://www.blogger.com/atom/ns#">standalone client</category><category domain="http://www.blogger.com/atom/ns#">Websphere</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Connect to Websphere JDBC datasource from standalone Client:&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We may hit a situation to connect to configured Websphere JDBC datasource from standalone java client and need appropriate drivers for target database we are connecting to.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are no additional jars need to be downloaded from IBM website except database driver jar and we will be using IBM command(setupCmdLine.sh) to setup environment and connect to Oracle database.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Script to setup WAS environment and call Java Client:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# Use IBM script to initialize common WebSphere runtime settings&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;REPLACE_WAS_HOME=${WAS_HOME}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;. $WAS_HOME/bin/setupCmdLine.sh&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# Add oracle drivers to classpath&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;CLASSPATH=&quot;$WAS_CLASSPATH:/tmp/JDBC/ojdbc5.jar:.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# Specify JVM&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;JAVA=&quot;$JAVA_HOME/bin/java&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# Specify JVM command line options&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;JAVA_OPTS=&quot;-Djava.ext.dirs=$JAVA_HOME/jre/lib/ext:$WAS_EXT_DIRS:$WAS_HOME/plugins&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;JAVA_OPTS=&quot;$JAVA_OPTS &amp;nbsp;-cp $CLASSPATH&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;$JAVA $JAVA_OPTS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;ConnectJDBC&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Java Client:&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import javax.naming.Context;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import javax.naming.InitialContext;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import javax.naming.NamingException;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.io.Serializable;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.sql.Connection;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.util.ArrayList;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.util.Hashtable;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.util.List;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;public class ConnectJDBC {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void connect() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;final Hashtable env = new Hashtable();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;env.put(Context.INITIAL_CONTEXT_FACTORY,&quot;com.ibm.websphere.naming.WsnInitialContextFactory&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;env.put(Context.PROVIDER_URL, &quot;corbaloc:iiop:&lt;host&gt;:&lt;port&gt;,:&lt;host&gt;:&lt;port&gt;,:&lt;host&gt;:&lt;port&gt;&quot;);&lt;/port&gt;&lt;/host&gt;&lt;/port&gt;&lt;/host&gt;&lt;/port&gt;&lt;/host&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;final Context jndiContext;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;try {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;jndiContext = new InitialContext(env);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} catch (NamingException e) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.err.println(&quot;Could not create JNDI API context: &quot;+ e.toString());&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.exit(1);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;try {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; javax.sql.DataSource ds = &amp;nbsp;((javax.sql.DataSource)jndiContext.lookup(&quot;&lt;jndi datasource=&quot;datasource&quot; name=&quot;name&quot;&gt;&quot;));&lt;/jndi&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Connection conn =ds.getConnection(&lt;user name=&quot;name&quot;&gt;,&lt;pwd&gt;);&lt;/pwd&gt;&lt;/user&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;String SQL = &quot;{call &lt;package&gt;.&lt;procedure name=&quot;name&quot;&gt; }&quot;;&lt;/procedure&gt;&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} catch (Exception e) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.err.println(&quot;Could not perfrom JDBC Procedure Call: &quot;+ e.toString());&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.exit(2);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;connect();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #990000; font-family: Verdana, sans-serif;&quot;&gt;Note: Please make sure the script #setupCmdLine.sh has appropriate permissions to avoid any failures. Note that standalone client will not be able use component-managed authentication for database and it&#39;s responsibility of client to provide&amp;nbsp;authentication&amp;nbsp;details during database connection..&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Dependency Jars:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The standalone client need the following jars to connect to JDBC datasource configured in websphere when we are unable to use&amp;nbsp;&lt;span style=&quot;color: #990000;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;setupCmdLine.sh &lt;/span&gt;script to setup the environment.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;com.ibm.ws.runtime_6.1.0.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;ojdbc14.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;rsadbutils.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;rsahelpers.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc.jndi.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc.jms.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc_install-o0902.06.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;com.ibm.jaxws.thinclient_6.1.0.jar&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Note: I performed all these tests using eclipse editor and Websphere 6.1 server.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/connect-to-websphere-jdbc-datasource.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-3994448226466320245</guid><pubDate>Wed, 17 Oct 2012 20:00:00 +0000</pubDate><atom:updated>2012-10-17T13:02:10.346-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JMS</category><category domain="http://www.blogger.com/atom/ns#">JMS client</category><category domain="http://www.blogger.com/atom/ns#">standalone client</category><category domain="http://www.blogger.com/atom/ns#">Websphere</category><title></title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Post JMS messages to&amp;nbsp;WebSphere&amp;nbsp;queues from stand alone Client:&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We may encounter a situation to send JMS messages to queues/topics configured in Websphere from standalone java program and unit/functional testing would be one good scenario for our case.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We need additional client libraries to lookup resources from JNDI and connect to websphere SIB and queues which can be downloaded from &lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg24012804&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Client Program:&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;import javax.jms.*;&lt;br /&gt;import javax.naming.Context;&lt;br /&gt;import javax.naming.InitialContext;&lt;br /&gt;import javax.naming.NamingException;&lt;br /&gt;import java.io.Serializable;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.Hashtable;&lt;br /&gt;import java.util.List;&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class PostJMSMessage {&lt;br /&gt;&lt;br /&gt; public static void publish() {&lt;br /&gt; final Hashtable env = new Hashtable();&lt;br /&gt; env.put(Context.INITIAL_CONTEXT_FACTORY,&quot;com.ibm.websphere.naming.WsnInitialContextFactory&quot;);&lt;br /&gt; env.put(Context.PROVIDER_URL, &quot;iiop://&lt;host&gt;:&lt;port&gt;&quot;);&lt;br /&gt;&lt;br /&gt; final Context jndiContext;&lt;br /&gt; try {&lt;br /&gt; jndiContext = new InitialContext(env);&lt;br /&gt; } catch (NamingException e) {&lt;br /&gt; System.err.println(&quot;Could not create JNDI API context: &quot;+ e.toString());&lt;br /&gt; System.exit(1);&lt;br /&gt; return;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt; ConnectionFactory connectionFactory = (ConnectionFactory) jndiContext.lookup(&quot;&lt;cf jndi=&quot;jndi&quot; name=&quot;name&quot;&gt;&quot;);&lt;br /&gt; Connection qConn = connectionFactory.createConnection();&lt;br /&gt; Session qSession = qConn.createSession(false,Session.AUTO_ACKNOWLEDGE);&lt;br /&gt; Queue q = (Queue) jndiContext.lookup(&quot;&lt;queue jndi=&quot;jndi&quot; name=&quot;name&quot;&gt;&quot;);&lt;br /&gt;&lt;br /&gt;MessageProducer producer = qSession.createProducer(q);&lt;br /&gt; ObjectMessage message = qSession.createObjectMessage();&lt;br /&gt; message.setObject((Serializable) &lt;custom message=&quot;message&quot;&gt;);&lt;br /&gt; producer.send(message);&lt;br /&gt; &lt;br /&gt; producer.close();&lt;br /&gt; qSession.close();&lt;br /&gt; qConn.close();&lt;br /&gt; in.close();&lt;br /&gt; } catch (Exception e) {&lt;br /&gt; System.err.println(&quot;Could not perfrom JMS operation: &quot;+ e.toString());&lt;br /&gt; System.exit(2);&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt; publish();&lt;br /&gt; }&lt;br /&gt;}&lt;/custom&gt;&lt;/queue&gt;&lt;/cf&gt;&lt;/port&gt;&lt;/host&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Jars required in classpath:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The following jars are required in classpath along with any application specific jars to compile and run the program&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc.jms.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc.jndi.jar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sibc_install-o0902.06.jar&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Compile &amp;amp; Run:&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Navigate to the directory where the client program and jars are copied and find out IBM jdk path.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/opt/IBM/WebSphere/AppServer/java/bin/javac -cp &lt;app jars=&quot;jars&quot; specific=&quot;specific&quot;&gt;:sibc.jms.jar:sibc.jndi.jar:. PostJMSMessage.java&lt;/app&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/opt/IBM/WebSphere/AppServer/java/bin/java -cp&amp;nbsp;&lt;app jars=&quot;jars&quot; specific=&quot;specific&quot;&gt;:sibc.jms.jar:sibc.jndi.jar:. PostJMSMessage&lt;/app&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://yuvarajramasamy.blogspot.com/2012/10/post-jms-messages-to-from-stand-alone.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-2822236707588485599</guid><pubDate>Mon, 25 Jul 2011 14:43:00 +0000</pubDate><atom:updated>2011-07-25T13:34:36.006-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">analysis</category><category domain="http://www.blogger.com/atom/ns#">log analysis</category><category domain="http://www.blogger.com/atom/ns#">stack trace</category><category domain="http://www.blogger.com/atom/ns#">unix script</category><category domain="http://www.blogger.com/atom/ns#">utilities</category><title></title><description>How to extract exception stack trace from javaEE application log file ?&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;I had the requirement to extract complete list of exception stack trace from java EE application log files for past 6 months and analyze the root cause for all exceptions.&lt;br /&gt;&lt;br /&gt;I used the following sed commands to get the list which has all duplicate list of exceptions.&lt;br /&gt;&lt;br /&gt;sed -ne &#39;/ERROR/,/WebContainer :/p&#39; *.log.2011* &amp;gt;/tmp/exception_list.txt&lt;br /&gt;sed -i &#39;/WARN/d&#39; /tmp/exception_list.txt&lt;br /&gt;sed -i &#39;/INFO/d&#39; /tmp/exception_list.txt&lt;br /&gt;sed &#39;/com.ibm.ws/d&#39; -e &#39;/org.apache/d&#39; /tmp/exception_list.txt&lt;br /&gt;sed -e &#39;/com.ibm.ws/d&#39; -e &#39;/org.apache/d&#39; /tmp/exception_list.txt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Remove duplicate exception block from the log.&lt;br /&gt;&lt;br /&gt;1) Remove time/date information from log entry &lt;span style=&quot;font-weight: bold;&quot;&gt;cut -f 2 -d&#39;]&#39; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;exception_list.txt&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;2)Remove additional spaces if any &lt;span style=&quot;font-weight: bold;&quot;&gt;sed &#39;s/ ERROR/ERROR/&#39; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;/tmp/&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;exception_list.txt&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;uniq &lt;/span&gt;&lt;/span&gt;command will not work unless  is sorted&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;(sort)&lt;/span&gt;, so use below command to remove duplicates with out changing line order&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; awk &#39; !x[$0]++&#39; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;/tmp/&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;exception_list.txt&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;/tmp/&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:78%;&quot; &gt;exception_list_final.txt&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/07/how-to-extract-exception-stack-trace.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-8775807100121006277</guid><pubDate>Wed, 20 Jul 2011 19:40:00 +0000</pubDate><atom:updated>2011-07-20T12:53:35.059-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">communicator</category><category domain="http://www.blogger.com/atom/ns#">duplicate</category><category domain="http://www.blogger.com/atom/ns#">duplicate removal</category><category domain="http://www.blogger.com/atom/ns#">outlook</category><category domain="http://www.blogger.com/atom/ns#">VB script</category><title></title><description>How to delete duplicate MS communicator conversation copied to outlook History folder ?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Recently I faced below problem and couldn&#39;t find any solution/tools in internet. I decided to solve the problem myself&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;I have enabled the option to save MS communicator conversation in outlook and the conversation will be saved to outlook at particular intervals. In case the chat session go beyond this interval, multiple copies of session will be saved with the information at the moment of interval timeout. i.e . The recent copy of the conversation includes all information from previous copy and all older copies can be deleted from outlook folder.&lt;br /&gt;&lt;br /&gt;The tools to delete duplicate items didn&#39;t help here so I wrote VB script to handle this task myself. Here is the logic&lt;br /&gt;1)Open Conversation History folder&lt;br /&gt;2)Sort items by subject then Received in ascending order to group the items by subject and get the oldest item first among the subject&lt;br /&gt;3) In first step mark the first item as pointer and named as X&lt;br /&gt;4) In subsequent steps compared the subject of current item and previous pointer item (X) and if matches then verified body of item X contained in body of current item&lt;br /&gt;5) If so then delete the item X&lt;br /&gt;6) Outside the loop make current item as X and continue the loop&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;VB Script:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Set objOutlook = CreateObject(&quot;Outlook.Application&quot;)&lt;br /&gt;Set objNamespace = objOutlook.GetNamespace(&quot;MAPI&quot;)&lt;br /&gt;Set objFldr = objNamespace.Folders.Item(&quot;Mailbox - Ramasamy, Yuvaraj&quot;).Folders.Item(&quot;Conversation History&quot;)&lt;br /&gt;Set colItems = objFldr.Items&lt;br /&gt;colItems.Sort &quot;[Subject][Received]&quot;, false&lt;br /&gt;item_comp = Null&lt;br /&gt;WScript.Echo colItems.count &lt;br /&gt;For Each objItem in colItems&lt;br /&gt;&lt;br /&gt;If isNUll(item_comp ) then&lt;br /&gt; set item_comp = objItem&lt;br /&gt;elseif (item_comp.subject = objItem.subject) then&lt;br /&gt; If left(objItem.body,len(item_comp.body)) = item_comp.body then&lt;br /&gt; item_comp.Delete&lt;br /&gt; end if&lt;br /&gt;end if&lt;br /&gt;set  item_comp = objItem&lt;br /&gt;Next&lt;br /&gt;WScript.Echo &quot;all done&quot;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/07/how-to-delete-duplicate-ms-communicator.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-2183853797099465895</guid><pubDate>Fri, 22 Apr 2011 19:27:00 +0000</pubDate><atom:updated>2011-04-22T12:54:55.467-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">disable virus scan</category><category domain="http://www.blogger.com/atom/ns#">hack</category><category domain="http://www.blogger.com/atom/ns#">regiostry hack</category><category domain="http://www.blogger.com/atom/ns#">registry tweak</category><category domain="http://www.blogger.com/atom/ns#">stop virus scan</category><category domain="http://www.blogger.com/atom/ns#">symantec</category><title></title><description>Change/delete locked symantec scheduled admin scan in Windows:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Most organizations should have installed some commercial Anti virus software in all IT assets (laptops/desktops etc...) and add &lt;span style=&quot;font-weight: bold; color: rgb(255, 0, 0);&quot;&gt;READ ONLY&lt;/span&gt; configuration for daily quick scan and weekly scheduled full scan. IT administrators might have scheduled this on weekdays to ensure 100% completion of weekly scan and they don&#39;t want to abort any scan or postpone the scan schedule to number of days.&lt;br /&gt;&lt;br /&gt;In my office laptop the scheduled weekly scan run on Wednesday&#39;s @11:30 AM and will take 5-6 hours to complete.Due to heavy disk scan and CPU contention I&#39;m unable to use other resource hungry applications in my laptop (RAD/Firefox etc...).&lt;br /&gt;&lt;br /&gt;Though we can&#39;t edit this settings from symantec UI, this can be exploited via registry editor.&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;Here are the steps to change SYMANTEC  in Windowx XP:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;1)Open registry editor (regedit)&lt;br /&gt;2)Navigate to &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Symantec Endpoint Protection\AV\LocalScans\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx}\Schedule&quot; and find out the key based on the name of the scheduled scan.&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Note: Otherwise search entire registry for the schedule name (weekly scan wed@11:30) using Find(F4) option&lt;/span&gt;&lt;br /&gt;3)Open the DWORD &quot;DayOfWeek&quot; and edit the value as appropriate (6 -for scan on Saturdays)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The schedule can be even deleted from the registry at your own risk which will completely remove the scheduled scan.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Under &quot;LocalScans&quot; you should see many nodes named &quot;ClientScheduledScan_&quot; or something similar.  The  &quot;ClientScheduledScan_&quot; is the node in the registry tree that registers  my forced Administrator system scan with Symantec AntiVirus.  Yours  could be different, so you&#39;ll need to look around under LocalScans to  find the correct one.&lt;br /&gt;&lt;br /&gt;Here&#39;s a snapshot:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYhxvJGFX-fuD6c0iip3fBmh-AKMzJP0sFG7VZMmZHa4bRR7IElmiTh_1CZ5izfBfL1Yu91KLguIMVX_3d17HmqOb0ToZZ8Daei2Kd5Wqjt0ZBgcWgQRM-m9eMkP4pL0YS4rU7/s1600/pic.JPG&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 308px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYhxvJGFX-fuD6c0iip3fBmh-AKMzJP0sFG7VZMmZHa4bRR7IElmiTh_1CZ5izfBfL1Yu91KLguIMVX_3d17HmqOb0ToZZ8Daei2Kd5Wqjt0ZBgcWgQRM-m9eMkP4pL0YS4rU7/s320/pic.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5598497106748104754&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;Disclaimer&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);font-size:78%;&quot; &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;:&lt;/span&gt;&lt;/span&gt; Disabling  admin scan on a PC by your  employer is probably a violation of their IT-security policy and could  get you into trouble.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/04/changedelete-locked-symantec-scheduled.html</link><author>noreply@blogger.com (Yuvaraj)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYhxvJGFX-fuD6c0iip3fBmh-AKMzJP0sFG7VZMmZHa4bRR7IElmiTh_1CZ5izfBfL1Yu91KLguIMVX_3d17HmqOb0ToZZ8Daei2Kd5Wqjt0ZBgcWgQRM-m9eMkP4pL0YS4rU7/s72-c/pic.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-5483681881054203403</guid><pubDate>Thu, 14 Apr 2011 15:07:00 +0000</pubDate><atom:updated>2011-04-14T09:30:16.529-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">distribution</category><category domain="http://www.blogger.com/atom/ns#">hadoop</category><category domain="http://www.blogger.com/atom/ns#">hadoop configuration</category><category domain="http://www.blogger.com/atom/ns#">hadoop in windows</category><category domain="http://www.blogger.com/atom/ns#">map-reduce</category><category domain="http://www.blogger.com/atom/ns#">openssh</category><category domain="http://www.blogger.com/atom/ns#">publickey</category><category domain="http://www.blogger.com/atom/ns#">ssh in wondows</category><category domain="http://www.blogger.com/atom/ns#">sshd</category><title></title><description>&lt;span style=&quot;font-family:verdana;&quot;&gt;Running hadoop in Windows (Pseudo-Distributed Mode):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;In &lt;a href=&quot;http://yuvarajramasamy.blogspot.com/2011/04/running-hadoop-in-windows-machine.html&quot;&gt;previous post&lt;/a&gt; I have explained about starting hadoop as standalone service in windows.In this post I will explain how to start hadoop in pseudo distributed mode.In pseudo-distributed mode Hadoop daemon runs in a separate Java process in localhost&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Configuration:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Add below mentioned configuration to start services required to mimic distribution mode&lt;br /&gt;&lt;/span&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;span style=&quot;font-weight: bold;&quot; class=&quot;codefrag&quot;&gt;conf/core-site.xml&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; &lt;span style=&quot;font-size:85%;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;     &amp;lt;property&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;         &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;         &amp;lt;value&amp;gt;hdfs://localhost:9000&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;     &amp;lt;/property&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt; &lt;/span&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt; &lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;&lt;span class=&quot;codefrag&quot;&gt;conf/hdfs-site.xml&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt; &lt;pre face=&quot;verdana&quot; class=&quot;code&quot;&gt;&lt;configuration&gt;&lt;property&gt;&lt;/property&gt;&lt;/configuration&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span class=&quot;codefrag&quot;&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;   &amp;lt;property&amp;gt;&lt;br /&gt;       &amp;lt;name&amp;gt;dfs.replication&amp;lt;/name&amp;gt;&lt;br /&gt;       &amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&lt;br /&gt;   &amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;&lt;span class=&quot;codefrag&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;&lt;span class=&quot;codefrag&quot;&gt;conf/mapred-site.xml&lt;/span&gt;:&lt;/span&gt;&lt;/pre&gt;  &lt;pre style=&quot;font-family: verdana;&quot; class=&quot;code&quot;&gt;&lt;configuration&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;   &amp;lt;property&amp;gt;&lt;br /&gt;       &amp;lt;name&amp;gt;mapred.job.tracker&amp;lt;/name&amp;gt;&lt;br /&gt;       &amp;lt;value&amp;gt;localhost:9001&amp;lt;/value&amp;gt;&lt;br /&gt;   &amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;&lt;property&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;   &lt;/span&gt;  &lt;/property&gt; &lt;/configuration&gt; &lt;/pre&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;We need to setup passphraseless ssh authentication to connect to localhost .Try &lt;span class=&quot;codefrag&quot;&gt;$ ssh localhost&lt;/span&gt; and this should connect to your local machine with out prompting password/passphrase . If not please read below to setup openssh server/client and password less authentication&lt;br /&gt;&lt;br /&gt;openssh client/server programs can be installed as part of cygwin installation by selecting  &quot;openssh&quot; package during cygwin installation.&lt;br /&gt;1)open cygwin console and run &quot;ssh-host-config -y&quot;. This will generate configuration files required to start ssh server,setup local windows user account and creates windows service(sshd)&lt;br /&gt;2)Now ssh service can be started either with cygwin command (cygrunsrv -S sshd) or standard windows command (net start sshd)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 0, 153); font-family:verdana;font-size:78%;&quot;  &gt;Note:Sometimes the service will not start and rebooting the system may help.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Run the following steps in cygwin console to setup public key authentication for ssh local connection&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;codefrag&quot;&gt;$ ssh-keygen -t dsa -P &#39;&#39; -f ~/.ssh/id_dsa&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;codefrag&quot;&gt;$ cat ~/.ssh/id_dsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;/span&gt;&lt;/span&gt;    &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Execution of hadoop in distribution mode:&lt;/span&gt;&lt;br /&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt;           &lt;span style=&quot;font-size:85%;&quot;&gt;Format a new distributed-filesystem:&lt;br /&gt;&lt;span class=&quot;codefrag&quot;&gt;$ bin/hadoop namenode -format&lt;/span&gt;&lt;/span&gt;                      &lt;/p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;     Start the hadoop daemons (this start name node and job tracker also)&lt;br /&gt;         &lt;span class=&quot;codefrag&quot;&gt;$ bin/start-all.sh&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;The hadoop daemon log output is written to the          &lt;span class=&quot;codefrag&quot;&gt;${HADOOP_LOG_DIR}&lt;/span&gt; directory (defaults to          &lt;span class=&quot;codefrag&quot;&gt;${HADOOP_HOME}/logs&lt;/span&gt;).&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;p  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Browse the web interface for the NameNode and the JobTracker; by         default they are available at:&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;ul  style=&quot;font-family:verdana;&quot;&gt;&lt;li&gt;              &lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span class=&quot;codefrag&quot;&gt;NameNode&lt;/span&gt; -              &lt;a href=&quot;http://localhost:50070/&quot;&gt;http://localhost:50070/&lt;/a&gt;&lt;/span&gt;            &lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;              &lt;span class=&quot;codefrag&quot;&gt;JobTracker&lt;/span&gt; -              &lt;a href=&quot;http://localhost:50030/&quot;&gt;http://localhost:50030&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Stop the daemons with:&lt;br /&gt;   &lt;span class=&quot;codefrag&quot;&gt;$ bin/stop-all.sh&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;font-family: verdana;&quot;&gt;          &lt;/p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Sounds simple.isn&#39;t it ??&lt;br /&gt;How ever setting up public key authentication troubled me a lot due to issues with cygwin installation.I have deleted my previous installation files (without ssh server) and re installed cygwin along with open ssh client/server programs and followed the steps to start ssh server and public key authentication.&lt;br /&gt;&lt;br /&gt;When I tried to connect to localhost via ssh i got password prompt which should not be the case.I deleted all the key pairs and followed the same steps to setup sshd service and public key authentication.But this it seems the correct keys were picked by ssh program and connection was closed by sshd and got below error message (&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;Connection closed by ::1&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;I decided to clean removal and installation of cygwin without any customization.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Follow below steps to remove cygwin in clean way:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family:verdana;font-size:85%;&quot;  &gt;1)Remove sshd configuration steps (&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family:verdana;font-size:85%;color:#800000;&quot;   &gt;cygrunsrv -E sshd and &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family:verdana;font-size:85%;color:#800000;&quot;   &gt;cygrunsrv -R sshd)&lt;br /&gt;2)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family:verdana;font-size:85%;&quot;  &gt;delete the folder (default --&amp;gt;c:\cygwin) and all its sub-folders&lt;br /&gt;3)remove the Environment Variable CYGWIN and PATH variables if defined&lt;br /&gt;4)Remove the following entries completely from registery (regedit)&lt;br /&gt;&lt;/span&gt;&lt;ul  style=&quot;font-family:verdana;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:85%;&quot; &gt;HKEY_CURRENT_USER/Software/Cygnus Solutions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;HKEY_CURRENT_USER/Software/cygwin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;HKEY_LOCAL_MACHINE/Software/Cygnus Solutions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:85%;&quot; &gt;HKEY_LOCAL_MACHINE/Software_/cygwin&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;color: rgb(51, 51, 51); font-family:verdana;font-size:85%;&quot;  &gt;5)Remove local user/group sshd (compmgmt.msc)&lt;br /&gt;6)Search for all public/private key files (id_rsa/id_dsa/id_dsa.pub/id_rsa.pub/authorized_keys) and delete them&lt;br /&gt;&lt;br /&gt;Re-install cygwin in default path and make sure to select openssh packages as part of installtion and setup ssh server and password less authentication as indicated above.This time public key authentication worked for me and should work for you as well.&lt;br /&gt;&lt;br /&gt;Now the important step is completed and happily executed command to start hadoop daemons.unfortunately I ended up with below error&lt;/span&gt;&lt;code  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 0);font-size:85%;&quot; &gt;localhost: Error: JAVA_HOME is not set.&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;Not sure why is this error occurred even after defining JAVA_HOME environment variable and this is not the case when I started hadoop in stand alone mode.I just followed apache documentation to fix this error.&lt;br /&gt;&lt;em style=&quot;font-weight: bold;&quot;&gt;edit the file conf/hadoop-env.sh to define at least JAVA_HOME to be the root of your Java&lt;br /&gt;installation.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot; ;font-family:verdana;font-size:85%;&quot;  &gt;Finally I&#39;m able to start hadoop in pseudo distribution mode in windows system and able to access Name node and job tracker via web url&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Reference:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;1) &lt;/span&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;a href=&quot;http://hadoop.apache.org/common/docs/r0.20.0/quickstart.html&quot;&gt;Apache Hadoop documentation&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;2) &lt;a href=&quot;http://hadoop.apache.org/common/docs/current/single_node_setup.html&quot;&gt;Setup Hadoop&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;a href=&quot;http://hadoop.apache.org/common/docs/r0.20.0/quickstart.html&quot;&gt;&lt;/a&gt;&lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/04/running-hadoop-in-windows-pseudo.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-2531381902197214766</guid><pubDate>Wed, 13 Apr 2011 20:34:00 +0000</pubDate><atom:updated>2011-04-13T14:05:18.888-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cygwin</category><category domain="http://www.blogger.com/atom/ns#">distributed file system</category><category domain="http://www.blogger.com/atom/ns#">hadoop</category><category domain="http://www.blogger.com/atom/ns#">hadoop configuration</category><category domain="http://www.blogger.com/atom/ns#">hadoop in windows</category><category domain="http://www.blogger.com/atom/ns#">huge data</category><category domain="http://www.blogger.com/atom/ns#">map-reduce</category><category domain="http://www.blogger.com/atom/ns#">windows</category><title></title><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Running hadoop in windows machine:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Though windows supported as development platform by hadoop some tweaks are necessary to successfully start hadoop services&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;The following modes are supported &lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;by hadoop&lt;br /&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Local (Standalone) Mode&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Pseudo-Distributed Mode&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(102, 0, 204);&quot;&gt;Fully-Distributed Mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we will see the steps  to start hadoop in standalone mode in windows. I&#39;m sure you will encounter one or more issues mentioned below when starting hadoop via cygwin&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Required Software:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;1)JavaTM 1.6.x, preferably from Sun&lt;br /&gt;2)ssh must be installed and sshd must be running to use the Hadoop scripts that manage remote Hadoop daemons. (Cluster mode)&lt;br /&gt;3)Cygwin&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Download stable Hadoop distribution from Apache Download Mirrors.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Prepare to Start the Hadoop Cluster:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Unpack the downloaded Hadoop distribution.Define JAVA_HOME as environment variable or edit conf/hadoop-env.sh file&lt;br /&gt;Try the following command:&lt;br /&gt;$sh bin/hadoop&lt;br /&gt;This should the usage documentation for the hadoop script without any start-up errors. &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;How ever you will get the error &quot;C:\program command not found&quot; if JRE is installed in default path (c:\program files\jre*&quot;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;How to fix this issue ?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Open the file hadoop-config.sh.Search for the text &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} &lt;/span&gt;and replace &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;${JAVA} &lt;/span&gt;with &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&quot;${JAVA}&quot;&lt;/span&gt; to handle space related issues in the file path while running hadoop via cygwin&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Now this error will disappear and popup another error &quot;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName&lt;/span&gt; &quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;The class org.apache.hadoop.util.PlatformName exists in hadoop-common-*.jar.&lt;br /&gt;The hadoop script &lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;automatically &lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;adds all necessary files CLASSPATH and it seems cygwin-style paths (/cygdrive/c/apps/hadoop-0.21.0) on classpath is not recognised properly when starting  java runtime.&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 51, 0);font-size:78%;&quot; &gt;Note:set -x option can be used to debug the scripts&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;How to fix this issue now?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Open hadoop-config.sh file and add below line before using the CLASSPATH variable to define JAVA_PLATFORM (add after line JAVA_LIBRARY_PATH=&#39;&#39;)&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;CLASSPATH=`cygpath -p -w &quot;$CLASSPATH&quot;`&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Now run $sh bin/hadoop which will display usage documentation like below&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Usage: hadoop [--config confdir] COMMAND&lt;br /&gt;     where COMMAND is one of:&lt;br /&gt;fs                   run a generic filesystem user client&lt;br /&gt;version              print the version&lt;br /&gt;jar &lt;jar&gt;            run a jar file&lt;br /&gt;distcp &lt;srcurl&gt; &lt;desturl&gt; copy file or directories recursively&lt;br /&gt;archive -archiveName NAME -p &lt;parent path=&quot;&quot;&gt; &lt;src&gt;* &lt;dest&gt; create a hadoop archive&lt;br /&gt;classpath            prints the class path needed to get the&lt;/dest&gt;&lt;/src&gt;&lt;/parent&gt;&lt;/desturl&gt;&lt;/srcurl&gt;&lt;/jar&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/04/running-hadoop-in-windows-machine.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-4051735784982665462</guid><pubDate>Fri, 01 Apr 2011 15:16:00 +0000</pubDate><atom:updated>2011-04-01T08:22:13.037-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">deleted workspace cleanup</category><category domain="http://www.blogger.com/atom/ns#">Eclipse</category><category domain="http://www.blogger.com/atom/ns#">MyEclipse</category><category domain="http://www.blogger.com/atom/ns#">RAD</category><category domain="http://www.blogger.com/atom/ns#">recent workspace</category><category domain="http://www.blogger.com/atom/ns#">Remove deleted workspace</category><category domain="http://www.blogger.com/atom/ns#">Switch Workspace</category><title></title><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Remove deleted workspace names from &quot;Switch Workspace&quot; Menu in Eclipse based IDE&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Sometime the deleted workspace names won&#39;t be removed from &quot;switch workspace&quot; list which may cause confusion to select the correct workspace.Here is the procedure to remove the entries from the list&lt;br /&gt;&lt;br /&gt;Go to Eclipse/RAD installation directory (Eg:C:\Program Files\IBM\SDP) and find org.eclipse.ui.ide.prefs file under configuration\.settings.&lt;br /&gt;Open the &lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;file org.eclipse.ui.ide.prefs &lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;in any favorite text editor and remove the unwanted values associated with key &quot;RECENT_WORKSPACES&quot;.&lt;br /&gt;&lt;br /&gt;Take care \n will be associated with every workspace name since this is maintained like bundle file.&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://yuvarajramasamy.blogspot.com/2011/04/remove-deleted-workspace-names-from.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-656944882264689951</guid><pubDate>Mon, 22 Nov 2010 19:09:00 +0000</pubDate><atom:updated>2011-10-25T08:38:34.214-07:00</atom:updated><title></title><description>&lt;font style=&quot;font-weight: bold;&quot;&gt;Problems encountered while deleting resources in RAD 6.1&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;2&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Suddenly I started getting the &quot;org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.&lt;/span&gt;&lt;/font&gt;&lt;font size=&quot;2&quot;&gt;&quot; error when deploying EJB application to WSAD from RAD.The project is connected to Clearcase&lt;br /&gt;&lt;br /&gt;I referred the following IBM url to understand about the problem which didn&#39;t help&lt;br /&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21369962&lt;br /&gt;&lt;br /&gt;After bit of googling I found some meta data in workspace location is causing the problem.I opened .log file under the project workspace location and found more information about the error.&lt;br /&gt;&lt;br /&gt;org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.&lt;br /&gt;    at org.eclipse.core.internal.resources.Resource.delete(Unknown Source)&lt;br /&gt;    at org.eclipse.core.internal.resources.Resource.delete(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.properties.ResourceProperties.savePreferences(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.properties.ResourceProperties.setGenerationFolder(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.properties.ResourceProperties.getGenerationFolder(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.&lt;init&gt;(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.plugin.EJBDeployBeansOperation.&lt;init&gt;(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.EJBDeployer.getDeployOperation(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.EJBDeployer.visit(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.EJBDeployer.doExecute(Unknown Source)&lt;br /&gt;    at com.ibm.etools.ejbdeploy.EJBDeployer.execute(Unknown Source)&lt;br /&gt;    at org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.deploy(Unknown Source)&lt;br /&gt;    at org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.execute(Unknown Source)&lt;br /&gt;    at com.ibm.etools.server.task.ejbdeploy.EJBDeployableTask$EJBTaskOperations.execute(Unknown Source)&lt;br /&gt;    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(Unknown Source)&lt;br /&gt;    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)&lt;br /&gt;    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)&lt;br /&gt;    at org.eclipse.wst.server.core.internal.Server.publishImpl(Unknown Source)&lt;br /&gt;    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Unknown Source)&lt;br /&gt;    at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)&lt;br /&gt;Contains: UCM view &quot;yuvaraj_ramasamy_dev_1.3.1&quot; does not have a set activity&lt;/font&gt;&lt;font style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;&lt;/font&gt;&lt;font size=&quot;2&quot;&gt;&lt;br /&gt;Rebased the current view and deployed the application again which resolved the issue&lt;/font&gt;&lt;font style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Related links:&lt;br /&gt;&lt;/font&gt;&lt;font&gt;http://www-01.ibm.com/support/docview.wss?uid=swg21316377&lt;/font&gt;&lt;font style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/font&gt;</description><link>http://yuvarajramasamy.blogspot.com/2010/11/problems-encountered-while-deleting.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-8262504704797125767</guid><pubDate>Tue, 28 Oct 2008 15:05:00 +0000</pubDate><atom:updated>2008-10-28T08:06:42.430-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">alpha numeric sequence</category><category domain="http://www.blogger.com/atom/ns#">PL/SQL</category><title></title><description>&lt;font style=&quot;font-weight: bold; color: rgb(0, 0, 153);&quot;&gt;How to implement Alpha Numeric Sequence (Increment AAAAZ to AAAB0)?&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;I faced the issue of generating the sequence of alphanumeric characters in pl/sql.PL/SQL supports the number sequences but not alpha numeric sequences.So decided to write one algorithm to perform the sequence generation&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;CREATE OR REPLACE FUNCTION batchseq_next(batchseq VARCHAR2) RETURN VARCHAR2 IS&lt;br /&gt;str varchar2(5) :=batchseq;&lt;br /&gt;inc char(1);&lt;br /&gt;i number(2) :=5;&lt;br /&gt;BEGIN&lt;br /&gt;   IF(SUBSTR(str,   i,   1) = &#39;9&#39;) THEN&lt;br /&gt;     str := SUBSTR(str,   1,   i -1) || &#39;A&#39;;&lt;br /&gt;     ELSIF(SUBSTR(str,   i,   1) != &#39;Z&#39;) THEN&lt;br /&gt;       str := SUBSTR(str,   1,   i -1) || CHR((ASCII(SUBSTR(str,   i,   1)) + 1));&lt;br /&gt;     else&lt;br /&gt;     if(SUBSTR(str,   instr(str,&#39;Z&#39;,1,1)-1,   1) =&#39;9&#39;) then&lt;br /&gt;     inc := &#39;A&#39;;&lt;br /&gt;     else&lt;br /&gt;     inc := CHR((ASCII(SUBSTR(str,   instr(str,&#39;Z&#39;,1,1)-1,   1)) + 1));&lt;br /&gt;     end if;&lt;br /&gt;     str := SUBSTR(str,   1, instr(str,&#39;Z&#39;,1,1)-2) ||inc|| translate (SUBSTR(str,   instr(str,&#39;Z&#39;,1,1),   i),&#39;Z&#39;,&#39;0&#39;);&lt;br /&gt;     END IF;&lt;br /&gt;RETURN str;&lt;br /&gt;END batchseq_next;&lt;/code&gt;</description><link>http://yuvarajramasamy.blogspot.com/2008/10/how-to-implement-alpha-numeric-sequence.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-6177168052735232390</guid><pubDate>Mon, 10 Mar 2008 17:11:00 +0000</pubDate><atom:updated>2008-03-10T10:13:36.656-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">aggregate functions in hibernate</category><category domain="http://www.blogger.com/atom/ns#">association</category><category domain="http://www.blogger.com/atom/ns#">eager fetch</category><category domain="http://www.blogger.com/atom/ns#">Hibernate</category><category domain="http://www.blogger.com/atom/ns#">implicit entity conversion</category><category domain="http://www.blogger.com/atom/ns#">Native SQL to DTO coversion</category><category domain="http://www.blogger.com/atom/ns#">one-many mapping</category><category domain="http://www.blogger.com/atom/ns#">ORM</category><category domain="http://www.blogger.com/atom/ns#">ORM entity mapping</category><title></title><description>&lt;a href=&quot;profile-find.g&quot;&gt;Some learnings in Hibernate:&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1)Any number of associations can be joined using HQL Join.If we are using HQL Join Fetch and didn&#39;t specify second association in the HQL separate select statemnets will be fired for fetching the second association. (i.e) implicit association fetch depth is1&lt;br /&gt;eg: Assume the relationships A--&gt;B--&gt; C .&lt;br /&gt;The query &quot;from A INNER JOIN FETCH B where ....&quot; will eagerly fetch B not C. Separate select statements will be fired&lt;br /&gt;&lt;br /&gt;2) While writing native SQL query try to use addEntity() to do value object conversion. We can fetch and convert the associations as well .&lt;br /&gt;Eg:&lt;br /&gt;Consider the one-many relation between parent and Child table&lt;br /&gt;&lt;br /&gt;session.createSQLQuery(&quot;select pid,name,cid,c_pid,marks from PARENT p,CHILD c where p.pid=c.c_pid&quot;).addEntity(&quot;parent&quot;,Parent.class).addJoin(&quot;parent&quot;, &quot;parent.childs&quot;).list(); -- won&#39;t eagerly fetch the associated children (Don&#39;t know the reason)&lt;br /&gt;&lt;br /&gt;But the eager join fetching from child---&gt;Parent is working fine .&lt;br /&gt;session.createSQLQuery(&quot;select pid,name,cid,c_pid,marks from PARENT p,CHILD c where p.pid=c.c_pid&quot;).addEntity(&quot;child&quot;,Child.class).addJoin(&quot;child&quot;, &quot;child.parent&quot;).list();&lt;br /&gt;&lt;br /&gt;3)Sometimes it is not feasible to use HQL and implicit ValueObject coversion while using the aggregate functions.&lt;br /&gt;I have examined two options to do implicit conversion instead of iterating over the result set.&lt;br /&gt;I) Write native SQL and use addEntity() to perform the implicit conversion.This is not the good approach since the SQL syntax may change vendor to vendor&lt;br /&gt;Ex:&lt;br /&gt;session.createSQlQuery(&quot;select * from tbl where .... &quot;).addEntity(entity.class)&lt;br /&gt;&lt;br /&gt;II)Create the ValueObject with the required aggregate fields and then use Transformer to convert the ResultSet object to the DTO.&lt;br /&gt;Ex:&lt;br /&gt;HQL : select count(property),sum(property) ....&lt;br /&gt;session.createQuery(buffer.toString()).&lt;br /&gt;   setResultTransformer( Transformers.aliasToBean(A.class)).list();</description><link>http://yuvarajramasamy.blogspot.com/2008/03/some-learnings-in-hibernate-parent-is.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-116842188064144539</guid><pubDate>Wed, 10 Jan 2007 09:38:00 +0000</pubDate><atom:updated>2007-01-10T01:38:00.646-08:00</atom:updated><title></title><description>&lt;a href=&quot;http://ajaxian.com/archives/passpack-and-assl&quot;&gt;PassPack and aSSL&lt;/a&gt;: &quot;Francesco Sullo&#39;s day job is to work on PassPack an online password manager.&lt;br /&gt;&lt;br /&gt;PassPack is based on the Host-Proof Hosting Ajax Pattern.&lt;br /&gt;&lt;br /&gt;How it works&lt;br /&gt;&lt;br /&gt;PassPack uses a double access technique: User ID and Pass give a user access to her Account, while the Packing Key is needed to access the actual passwords. The &#39;Pack&#39; in PassPack comes from the bundle of locked up passwords inside the Account. PassPack checks the User ID and Pass at sign-in without exposing the passwords in the encrypted Pack.&lt;br /&gt;&lt;br /&gt;Only the user can encrypt and decrypt the passwords in the browser with her Packing Key. The Packing Key never travels over the Internet. The encrypted Pack gets sent over SSL to the server for storage.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;aSSL&lt;br /&gt;&lt;br /&gt;Francesco works on aSSL in his spare time, and just released another new version with Javascript/ASP server-side component (PHP and others pending).&lt;br /&gt;&lt;br /&gt;aSSL now works with the following process:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The browser calls the server to start the process.&lt;br /&gt;The server returns its RSA modulus (e.g. the public key) and the public exponent (3 or 1000&quot;</description><link>http://yuvarajramasamy.blogspot.com/2007/01/passpack-and-assl-francesco-sullos-day.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35892106.post-116313353357324872</guid><pubDate>Fri, 10 Nov 2006 04:38:00 +0000</pubDate><atom:updated>2006-11-09T20:38:53.583-08:00</atom:updated><title></title><description>&lt;a href=&quot;http://manikandakumar.blogspot.com/2006/09/drawbacks-of-timertask.html&quot;&gt;Drawbacks of TimerTask&lt;/a&gt;: &quot;Delayed and Periodic Tasks The Timer facility manages the execution of deferred (&#39;run this task in 100 ms&#39;) and periodic (&#39;run this task every 10 ms&#39;) tasks. However, Timer has some drawbacks, and ScheduledThreadPoolExecutor should be thought of as its replacement.[1] You can construct a ScheduledThreadPoolExecutor through its constructor or through the newScheduledThreadPool factory. [1]&quot;</description><link>http://yuvarajramasamy.blogspot.com/2006/11/drawbacks-of-timertask-delayed-and.html</link><author>noreply@blogger.com (Yuvaraj)</author><thr:total>0</thr:total></item></channel></rss>