Author Archives: nitingautam

About nitingautam

I am Tech Lead (Java/J2EE/ExtJs) with a MNC located @ Gurgaon.

Google Cloud Platform : Enable Authentication with SSH and Password using AuthenticationMethods option

Here I am going to explain, how to enable Key and Password based authentication in linux instances of Google Cloud. This can be applied on other Cloud or standalone Linux instances. But do check manuals ūüôā When i say Key … Continue reading

Posted in Cloud, Google Cloud, linux | Leave a comment

Oracle Constraint Exceptions

ADD/ENABLE constraint exception like ORA-02437, ORA-02299 etc Today while working on one assignment I came across situation where I have to enable a unique key constraint on the table which some one disabled and forget due to which many duplicate … Continue reading

Posted in debug, Oracle | Tagged , , | Leave a comment

Bulk file copy in unix with custom name

In Unix I have to copy bulk files from one folder to another they are in below form FILE1_547804_550484_2013-12-19 21.15.32_913.pdfFILE2_518868_616944_2014-01-03 21.10.49_718.pdf but while copying to the destination want to remove time part and copy as below: FILE1_547804_550484.pdfFILE2_518868_616944.pdf

Posted in unix | Tagged , , | Leave a comment

Copy First N files from current directory to other directory

I was working today on one production issue where a requirement came to restore files from a archive directory in batch of 250, so i created this command to run in unix, have a look might be helpful for you.

Posted in unix | Tagged , | Leave a comment

com.jcraft.jsch.JSchException: reject HostKey: serverName

Today I was working on a Ant target to upload file to server using SCP task which using jsch-0.1.49.jar API. Below is the syntax for same in Ant build.xml. You need to add the API file in class path. <target … Continue reading

Posted in ant | Tagged , | 6 Comments

Download sequence of files using Curl

In day to day life we used to download useful stuff from world wide web, sometime requirement to download sequence of files, one way is to do it manually by clicking individual links or automate the download using Curl. Showing … Continue reading

Posted in unix | Tagged | Leave a comment

jQuery Mobile bugs, tips and tricks

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 … Continue reading

Posted in jQuery Mobile | Tagged , , | 1 Comment

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

Posted in HowTo, linux, unix | Tagged , | Leave a comment 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: 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 , , , | 1 Comment

Caused by: 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(¬†¬† ¬†at org.apache.axis2.engine.Phase.invoke(¬†¬† ¬†at org.apache.axis2.engine.AxisEngine.invoke(¬†¬† ¬†at org.apache.axis2.engine.AxisEngine.send(¬†¬† ¬†at org.apache.axis2.description.OutInAxisOperationClient.send(¬†¬† ¬†at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(¬†¬† ¬†at org.apache.axis2.client.OperationClient.execute(¬†Caused by: org.apache.rampart.RampartException: Error in signature with X509Token¬†¬† … Continue reading

Posted in Axis2, Java, Rampart | Tagged , , , | Leave a comment