<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techcrony.in</title>
	<atom:link href="http://www.techcrony.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techcrony.info</link>
	<description>Your Technical Buddy</description>
	<lastBuildDate>Sat, 12 May 2012 11:27:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>jQuery: Problem with id containing a period or asterisk</title>
		<link>http://www.techcrony.info/2012/05/12/admin/jquery-problem-with-id-containing-a-period-or-asterisk/</link>
		<comments>http://www.techcrony.info/2012/05/12/admin/jquery-problem-with-id-containing-a-period-or-asterisk/#comments</comments>
		<pubDate>Sat, 12 May 2012 11:27:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=203</guid>
		<description><![CDATA[Today I was writing a code to get error text from spring generated span field using jQuery. Where I noticed that name is having a period and asterisk which is not directly supported by selectors. &#60;div id=&#8221;test1&#8243;&#62;&#60;span id=&#8221;*.errors&#8220;&#62;The information you &#8230; <a href="http://www.techcrony.info/2012/05/12/admin/jquery-problem-with-id-containing-a-period-or-asterisk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I was writing a code to get error text from spring generated span field using jQuery. Where I noticed that name is having a period and asterisk which is not directly supported by selectors. </p>
<blockquote>
<p>&lt;div id=&#8221;test1&#8243;&gt;&lt;span id=&#8221;<strong>*.errors</strong>&#8220;&gt;The information you entered is invalid. Try again.&lt;/span&gt;&lt;/div&gt;</p>
</blockquote>
<p><span id="more-203"></span>So in order to make them working we need to use escape character triple slash (\\\) before asterisk and period. Otherwise it will try to treat asterisk (*) as all elements and period (.) as class name. See below.</p>
<blockquote>
<p>if($(&#8216;#<strong>\\\</strong>*<strong>\\\</strong>.errors&#8217;).length &gt; 0){<br />        var displayvalue=$(&#8216;#<strong>\\\</strong>*<strong>\\\.</strong>errors&#8217;).html();<br />        $(&#8216;#test1&#8242;).html(&#8220;&#8221;);<br />        alert(displayvalue);<br />    }</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2012/05/12/admin/jquery-problem-with-id-containing-a-period-or-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Mobile bugs, tips and tricks</title>
		<link>http://www.techcrony.info/2012/05/07/nitingautam/jquery-mobile-bugs-tips-and-tricks/</link>
		<comments>http://www.techcrony.info/2012/05/07/nitingautam/jquery-mobile-bugs-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 07 May 2012 04:26:49 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
				<category><![CDATA[jQuery Mobile]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jquery mobile]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=197</guid>
		<description><![CDATA[jQuery mobile is a framework build upload on jQuery and jQuery UI foundation, which is a unified, HTML5-based user interface system for all popular mobile device platforms. Now days jQuery becoming popular among mobile sites. In spite of bugs (couple &#8230; <a href="http://www.techcrony.info/2012/05/07/nitingautam/jquery-mobile-bugs-tips-and-tricks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">jQuery mobile is a framework build upload on jQuery and jQuery UI foundation, which is a unified, HTML5-based user interface system for all popular mobile device platforms. Now days jQuery becoming popular among mobile sites. In spite of bugs (couple of explained below) this should not put you off developing with the framework as no framework is 100% complete, it get improvements/enhancements on going with users feedback. One of the major factor why jQuery Mobile becoming popular is easy to learn,  early adoption of jQuery mobile by mobile sites and a large range of online support, threads and documentation available. Almost all bugs we encountered are known to development team and they definitely will fix those in future releases.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Many of the bugs are unique to the older Android devices (like 2.2, 2.3), therefore with the recent news that Google Chrome is to become the standard browser on Android 4.0 and above means that, jQuery mobile will be more consistent and will offer gr8 performance across devices. Currently, mobile chrome is available through Android Market in Beta.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span style="text-decoration: underline;">One interesting fact,</span> was when I ran CSS3/HTML5 compatibility test on Android default browser I got approx 188 points whereas when ran on Chrome I got approx 300 points which means quite a lot improvement and support for new features introduces with CSS3/HTML5.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span style="text-decoration: underline;">Link</span>: <a href="http://www.google.com/intl/en/chrome/android/">http://www.google.com/intl/en/chrome/android/</a> (Supported on Android 4.0+)</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong><span style="text-decoration: underline;">Couple of Known Bugs<span id="more-197"></span></span></strong></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong>Transition</strong> is one of main feature which comes with jQuery Mobile. Which works very smooth on iOS devices but on Android devices they behave differently, very sluggish and not quite smooth as on iOS.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Secondary problem is very noticeable blinking on the target page, once the transition completed. This is a known bug, and although there are some touted css fixes around that certainly reduce the flickering they seem to result in other problems. Certainly, the blinking problem was still clearly noticeable on Android 2.2 and 2.3.3 even with these CSS based fixes.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The blinking wasn&#8217;t so bad in iOS, however was still evident in certain circumstances, therefore we decided to turn off the transitions across all platforms for the time being.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">As this is a known bug we look forward to this being fixed in a future jQuery Mobile release.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span style="text-decoration: underline;">Bug Id</span>: <a href="https://github.com/jquery/jquery-mobile/issues/3217">https://github.com/jquery/jquery-mobile/issues/3217</a> (seems fixed in 1.1 release)</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">CSS suggested fix for flickering:</span></p>
<blockquote>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">.ui-page {</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">    -webkit-backface-visibility: hidden;</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">}</span></p>
</blockquote>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Another problem with the jQuery mobile and <strong>touch events</strong> is the time it takes to action a click event, this delay was most noticeable in Android, where it seemed tapping on a link would take an age to trigger, in some cases up to 3 seconds.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The crux of the problem is that the click event does not fire until a delay has passed, as the browser is allowing the chance for a second touch to make it a double click or for it to become a swipe gesture and so on.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The <span style="text-decoration: underline;">solution</span> to this is to execute a conditional statement to test for native touch event support and then execute a &#8216;touchStart&#8217; event (the mobile equivalent of mousedown) when this event is natively available. The &#8216;touchStart&#8217; event fires immediately, just like mousedown. This results in a more responsive device interaction. The change significantly reduced the delay on iOS but less so on android, however there was still a marked improvement.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><strong>Reference</strong>: <a href="http://stackoverflow.com/questions/6235794/jquery-mobile-for-every-live-tap-event-should-there-be-an-equivalent-click-even">http://stackoverflow.com/questions/6235794/jquery-mobile-for-every-live-tap-event-should-there-be-an-equivalent-click-even</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2012/05/07/nitingautam/jquery-mobile-bugs-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.lang.UnsupportedOperationException : Please implement</title>
		<link>http://www.techcrony.info/2012/03/06/admin/java-lang-unsupportedoperationexception-please-implement/</link>
		<comments>http://www.techcrony.info/2012/03/06/admin/java-lang-unsupportedoperationexception-please-implement/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 08:05:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Axis2]]></category>
		<category><![CDATA[axis2]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=192</guid>
		<description><![CDATA[Today during testing of some service I got this UnsupportedOperationException  in which message says Please Implement class#method which I am calling. Later I digged inside the services code and found that service was not implemented, that&#8217;s why it was throwing &#8230; <a href="http://www.techcrony.info/2012/03/06/admin/java-lang-unsupportedoperationexception-please-implement/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today during testing of some service I got this UnsupportedOperationException  in which message says Please Implement class#method which I am calling.</p>
<p>Later I digged inside the services code and found <span id="more-192"></span>that service was not implemented, that&#8217;s why it was throwing this default exception.</p>
<p>You need to replace the  throw instruction (which is the default functionality for the case in which not implementation is provided before deploying the service) by your original functionality</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2012/03/06/admin/java-lang-unsupportedoperationexception-please-implement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX: How to Automate SSH Login</title>
		<link>http://www.techcrony.info/2012/01/26/nitingautam/unix-how-to-automate-ssh-login/</link>
		<comments>http://www.techcrony.info/2012/01/26/nitingautam/unix-how-to-automate-ssh-login/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 17:46:19 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=183</guid>
		<description><![CDATA[Yesterday, I was working on some shell script piece for my project and I came across a situation where I have to copy some files from one server to another using &#8216;scp&#8217; command and also some time have to execute &#8230; <a href="http://www.techcrony.info/2012/01/26/nitingautam/unix-how-to-automate-ssh-login/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Yesterday, I was working on some shell script piece for my project and I came across a situation where I have to copy some files from one server to another using &#8216;scp&#8217; command and also some time have to execute some command on other server.  One requirement was we don&#8217;t need to pass the password of functional id inside the script. </span></p>
<p><span style="font-size: small; font-family: arial,helvetica,sans-serif;">User should be able to login to other server without password using command  &#8220;ssh -l username remotehost&#8221;</span>.</p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">For this I used SSH public key based authentication as below:-</span></p>
<p><span id="more-183"></span></p>
<p>For this to work you need a file named id_dsa.pub in your ~/.ssh Directory. If it’s not there, simply create it with below command:</p>
<blockquote>
<p>ssh-keygen -t dsa</p>
</blockquote>
<p>above command will create below directory with public and private keys:</p>
<blockquote>
<p>.ssh/id_dsa<br />.ssh/id_dsa.pub</p>
</blockquote>
<p>now copy<strong> id_dsa.pub</strong> file to remote server .ssh/ directory as &#8220;<strong>authorized_keys2</strong>&#8221; with whom you would like to do an automated login.</p>
<p> After that try below command from source server, no need for password</p>
<pre>ssh -l username remotehost</pre>
<p><span style="font-size: x-small; font-family: arial,helvetica,sans-serif;"> For more details can view <a title="link" href="http://pkeck.myweb.uga.edu/ssh/" target="_blank">link</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2012/01/26/nitingautam/unix-how-to-automate-ssh-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.io.NotSerializableException</title>
		<link>http://www.techcrony.info/2012/01/17/admin/java-io-notserializableexception/</link>
		<comments>http://www.techcrony.info/2012/01/17/admin/java-io-notserializableexception/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 05:23:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Troubleshoot]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=179</guid>
		<description><![CDATA[I was getting this error today during writing a program java.io.NotSerializableException: com.xxxx.xxx.xxx.thunderhead.Project    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)    at java.util.ArrayList.writeObject(ArrayList.java:570) &#160; Later I realized that I forget to implement Serializable interface in my bean. That fixed issue.]]></description>
			<content:encoded><![CDATA[<p>I was getting this error today during writing a program</p>
<blockquote>
<p>java.io.NotSerializableException: com.xxxx.xxx.xxx.thunderhead.Project<br />    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)<br />    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)<br />    at java.util.ArrayList.writeObject(ArrayList.java:570)</p>
</blockquote>
<p>&nbsp;</p>
<p><span id="more-179"></span></p>
<p>Later I realized that I forget to implement Serializable interface in my bean. That fixed issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2012/01/17/admin/java-io-notserializableexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPPADDING</title>
		<link>http://www.techcrony.info/2011/12/15/admin/java-security-nosuchalgorithmexception-cannot-find-any-provider-supporting-rsanoneoaeppadding/</link>
		<comments>http://www.techcrony.info/2011/12/15/admin/java-security-nosuchalgorithmexception-cannot-find-any-provider-supporting-rsanoneoaeppadding/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 07:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=176</guid>
		<description><![CDATA[Got below error during web service request:- java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPPADDINGat javax.crypto.Cipher.getInstance(DashoA12275)at org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:703)at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:145)at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:114) This appears to BouncyCastle is missing from class path.  Or Bouncycastle jar may still in the classpath &#8211; but it&#8217;s not picked &#8230; <a href="http://www.techcrony.info/2011/12/15/admin/java-security-nosuchalgorithmexception-cannot-find-any-provider-supporting-rsanoneoaeppadding/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Got below error during web service request:-</span></p>
<blockquote>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: x-small;">java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPPADDING</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: x-small;">at javax.crypto.Cipher.getInstance(DashoA12275)</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: x-small;">at org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:703)</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: x-small;">at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:145)</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: x-small;">at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:114)</span></p>
</blockquote>
<p><span id="more-176"></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">This appears to BouncyCastle is missing from class path.  Or Bouncycastle jar may still in the classpath &#8211; but it&#8217;s not picked as a crypto provider.</span></p>
<p><strong><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Try below solution:</span></strong></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Download the Bouncycastle jar corresponding to your JDK from <a href="http://www.bouncycastle.org/latest_releases.html">here</a> and copy it to [JAVA_HOME]\jre\lib\ext\</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Set following in [JAVA_HOME]\jre\lib\security\java.security under;</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">#</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: small;"># List of providers and their preference orders (see above):</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: small;">#</span><br /><span style="font-family: arial,helvetica,sans-serif; font-size: small;">security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider</span>OR</p>
<p>In code add Bouncycastle as a provider.</p>
<blockquote>
<p>import java.security.Security;  <br />import org.bouncycastle.jce.provider.BouncyCastleProvider;  <br />  <br />Security.addProvider(new BouncyCastleProvider());</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2011/12/15/admin/java-security-nosuchalgorithmexception-cannot-find-any-provider-supporting-rsanoneoaeppadding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.security.InvalidKeyException: Illegal key size or default parameters</title>
		<link>http://www.techcrony.info/2011/12/15/nitingautam/java-security-invalidkeyexception-illegal-key-size-or-default-parameters/</link>
		<comments>http://www.techcrony.info/2011/12/15/nitingautam/java-security-invalidkeyexception-illegal-key-size-or-default-parameters/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 06:54:14 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
				<category><![CDATA[Axis2]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Rampart]]></category>
		<category><![CDATA[InvalidKeyException]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[rampart]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=171</guid>
		<description><![CDATA[I was working on webservice call where my code was breaking in RAD during decrypting the password of keystore. I encountered below error: Caused by: java.security.InvalidKeyException: Illegal key size or default parameters    at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]    at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]  &#8230; <a href="http://www.techcrony.info/2011/12/15/nitingautam/java-security-invalidkeyexception-illegal-key-size-or-default-parameters/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">I was working on webservice call where my code was breaking in RAD during decrypting the password of keystore. I encountered below error:</span></p>
<blockquote>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><code>Caused by: java.security.InvalidKeyException: Illegal key size or default parameters<br />    at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]<br />    at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]<br />    at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]<br />    at javax.crypto.Cipher.init(DashoA13*..) ~[na:1.6]<br />    at javax.crypto.Cipher.init(DashoA13*..) ~[na:1.6]<br /></code><br /></span></p>
</blockquote>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><span id="more-171"></span>There are key size restrictions with the default crypto files local_policy.jar and US_export_policy.jar comes with JDK &#8211; which limits it to 128.</span> <span style="font-family: arial,helvetica,sans-serif; font-size: small;">If your security policy using a key size larger than this &#8211; then the above exception is thrown. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">For example &#8211; if your security policy specifies the algorithmic suite as Basic256 &#8211; then the key size to be used is 256.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">For the solution of above issue, you need to patch your JDK with Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">For JDK1.5 <a href="http://java.sun.com/javase/downloads/index_jdk5.jsp">visit</a>, download the crypto files and copy the two jar files from the extracted jce directory (local_policy.jar and US_export_policy.jar) to $JAVA_HOME/jre/lib/security.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">For JDK1.6 <a href="http://java.sun.com/javase/downloads/index.jsp">visit</a></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">If your IDE using it&#8217;s own specific JDK then patch that as well with these files to resolve the issue.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2011/12/15/nitingautam/java-security-invalidkeyexception-illegal-key-size-or-default-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caused by: java.security.UnrecoverableKeyException: Cannot recover key</title>
		<link>http://www.techcrony.info/2011/12/12/nitingautam/caused-by-java-security-unrecoverablekeyexception-cannot-recover-key/</link>
		<comments>http://www.techcrony.info/2011/12/12/nitingautam/caused-by-java-security-unrecoverablekeyexception-cannot-recover-key/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 03:05:08 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
				<category><![CDATA[Axis2]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Rampart]]></category>
		<category><![CDATA[axis2]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[rampart]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=163</guid>
		<description><![CDATA[During deployment of my code on server I faced below issue signature issue: org.apache.axis2.AxisFault: Error in signature with X509Token    at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70)    at org.apache.axis2.engine.Phase.invoke(Phase.java:318)    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:419)    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) Caused by: org.apache.rampart.RampartException: Error in signature with X509Token   &#8230; <a href="http://www.techcrony.info/2011/12/12/nitingautam/caused-by-java-security-unrecoverablekeyexception-cannot-recover-key/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>During deployment of my code on server I faced below issue signature issue:</p>
<blockquote>
<p><span style="font-size: x-small;">org.apache.axis2.AxisFault: <strong>Error in signature with X509Token</strong></span><br /><span style="font-size: x-small;">    at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.engine.Phase.invoke(Phase.java:318)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:419)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)</span><br /><span style="font-size: x-small;">    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)</span><br /><span style="font-size: x-small;"> Caused by: org.apache.rampart.RampartException: Error in signature with X509Token</span><br /><span style="font-size: x-small;">    at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:746)</span><br /><span style="font-size: x-small;">    at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419)</span><br /><span style="font-size: x-small;">    at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:95)</span><br /><span style="font-size: x-small;">    at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)</span><br /><span style="font-size: x-small;">    at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)</span><br /><span style="font-size: x-small;">    &#8230; 102 more</span></p>
<p><span style="font-size: x-small;">Caused by: org.apache.ws.security.WSSecurityException: Signature creation failed; nested exception is: </span><br /><span style="font-size: x-small;">    java.security.UnrecoverableKeyException: Cannot recover key</span><br /><span style="font-size: x-small;">    at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:721)</span><br /><span style="font-size: x-small;">    at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:737)</span><br /><span style="font-size: x-small;">    &#8230; 106 more</span><br /><strong><span style="font-size: x-small;">Caused by: java.security.UnrecoverableKeyException: Cannot recover key</span></strong><br /><span style="font-size: x-small;">    at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)</span><br /><span style="font-size: x-small;">    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121)</span><br /><span style="font-size: x-small;">    at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)</span><br /><span style="font-size: x-small;">    at java.security.KeyStore.getKey(KeyStore.java:763)</span><br /><span style="font-size: x-small;">    at org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(CryptoBase.java:216)</span><br /><span style="font-size: x-small;">    at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:713)</span><br /><span style="font-size: x-small;">    &#8230; 107 more</span></p>
</blockquote>
<p><span id="more-163"></span>Above issue is caused by CallbackHandler, because Incorrect password is provided for the private key. Correct the password you are good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2011/12/12/nitingautam/caused-by-java-security-unrecoverablekeyexception-cannot-recover-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.lang.IllegalStateException: Cannot map handler [controller] to URL path : There is already handler</title>
		<link>http://www.techcrony.info/2011/09/26/admin/java-lang-illegalstateexception-cannot-map-handler-to-url-path/</link>
		<comments>http://www.techcrony.info/2011/09/26/admin/java-lang-illegalstateexception-cannot-map-handler-to-url-path/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 01:33:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[handler mapping]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=153</guid>
		<description><![CDATA[I am using Spring 3.0 for my new application&#8230;I am not very familiar with annotation but learning them they are cool.  Today I faced &#8220;Cannot Map Handler [XXX] to URL Path&#8221; error, while running my page. Later debug I found &#8230; <a href="http://www.techcrony.info/2011/09/26/admin/java-lang-illegalstateexception-cannot-map-handler-to-url-path/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am using Spring 3.0 for my new application&#8230;I am not very familiar with annotation but learning them they are cool.  Today I faced &#8220;Cannot Map Handler [XXX] to URL Path&#8221; error, while running my page.</p>
<p>Later debug I found that I duplicated the Controller definition stuff inside XXX-Servlet.xml as below.<span id="more-153"></span></p>
<pre><code>&lt;context:component-scan base-package="org.me.spring.web" /&gt;</code></pre>
<p>and</p>
<pre><code>&lt;bean  class="org.me.spring.web.SampleController" &gt;</code></pre>
<p>The first line will auto-discover and register a <span style="text-decoration: underline;">SampleController</span> for you. By explicitly declaring another one, you get a duplicate, and the url-mapping will clash.</p>
<p>You need to either remove the &lt;context:component-scan&gt;, or remove the explicit bean definitions for the controller and the DAO. If you do the latter, then you&#8217;ll need to use <span style="text-decoration: underline;">autowiring</span> to inject their dependencies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2011/09/26/admin/java-lang-illegalstateexception-cannot-map-handler-to-url-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count lines of multiple similar files in unix</title>
		<link>http://www.techcrony.info/2011/09/08/nitingautam/count-lines-of-multiple-similar-files-in-unix/</link>
		<comments>http://www.techcrony.info/2011/09/08/nitingautam/count-lines-of-multiple-similar-files-in-unix/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 08:30:10 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[blank line count]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[wc]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=145</guid>
		<description><![CDATA[In continuation to my earlier post regarding concatenation similar files into one. I am writing this post to demonstrate counting lines of similar kind of files in a given directory and sub-directory. Below command will find all the logs with &#8230; <a href="http://www.techcrony.info/2011/09/08/nitingautam/count-lines-of-multiple-similar-files-in-unix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In continuation to my earlier post regarding <a href="http://www.techcrony.info/2011/09/08/nitingautam/concatenate-merge-join-multiple-text-files-in-windows/">concatenation similar files</a> into one. I am writing this post to demonstrate counting lines of similar kind of files in a given directory and sub-directory.</p>
<p>Below command will find all the logs with given name pattern inside the directory including sub directories and then WC will count it&#8217;s lines and display on screen in total.</p>
<blockquote>
<p><span id="more-145"></span> wc -l `find . -name usage*.log`</p>
</blockquote>
<p><span style="text-decoration: underline;">Sample output of command</span></p>
<p>     4 ./2011-08-08/usage.log<br />     5 ./2011-08-09/usage.log<br />     5 ./2011-08-10/usage.log<br />     4 ./2011-08-11/usage.log<br />     2 ./2011-08-12/usage.log<br />     4 ./2011-08-13/usage.log<br />   24 total</p>
<p>Below command will not count the blank lines.</p>
<blockquote>
<p>grep -cv &#8216;^\s*$&#8217; `find . -name &#8220;usag*.log&#8221;`</p>
</blockquote>
<p>Sample Output, see below blank lines are not counted.</p>
<p>./2011-08-08/usage.log:3<br />./2011-08-09/usage.log:4<br />./2011-08-10/usage.log:4<br />./2011-08-11/usage.log:3<br />./2011-08-12/usage.log:1<br />./2011-08-13/usage.log:3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2011/09/08/nitingautam/count-lines-of-multiple-similar-files-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

