Categories
Archives
- January 2012
- December 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- December 2010
- November 2010
- August 2010
- January 2010
- December 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
Author Archives: nitingautam
UNIX: How to Automate SSH Login
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 ‘scp’ command and also some time have to execute … Continue reading
java.security.InvalidKeyException: Illegal key size or default parameters
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] … Continue reading
Posted in Axis2, Java, Rampart
Tagged InvalidKeyException, java, rampart, web service
Leave a comment
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
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 … Continue reading
Count lines of multiple similar files in unix
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 … Continue reading
Concatenate/merge/join Multiple Text Files in Windows
Last night I got many log files from 8 different servers, all the servers have date wise log files. I separated out similar logs and kept in a folder, now as per requirement team needs the one type of log … Continue reading
Use of String variable in Java Switch Statement
There is no way to perform a true switch on a String in Java. With the arrival of JDK 5.0 and its implementation of enum, a reasonably close approximation of this can be done using the following code. Create an enum … Continue reading
uncaught exception: [Exception… “Not enough arguments” (NS_ERROR_XPC_NOT_ENOUGH_ARGS)
I was testing my web application on FireFox5 , I faced “not enough arguments” issue. During investigation what I found is while opening the page we are hitting actual issues inside ‘addEventListener’ function. I searched web around behavior of ‘addEventListener’ … Continue reading
jQuery : firefox and chrome onchange textarea update issue
Today I was doing some code in which I need to update the TextArea text onclick of a list option. I noticed It was working fine in IE all the time but inside Firefox and Chrome it works for first … Continue reading
Posted in jQuery
Leave a comment
How to read Blue Dump’s (BSOD) Minidump file
From couple of weeks in my brother’s machine he was getting Blue Dump screen with message “DRIVER_IRQL_NOT_LESS_OR_EQUAL”. Today to investigate I asked him to pass me the minidump files. Minidump are file that windows write for debugging purpose at below … Continue reading
How To get ServletContext inside Filter
I was coding last night and I have to get some information from Manifest file in filters. In order to read the Manifest I need the ServletContext. Using below code you can get the ServletContext inside Filter. public class SomeFilter … Continue reading
Posted in HowTo, Java
Leave a comment