Author Archives: nitingautam

About nitingautam

I am Java Developer working with a MNC in Gurgaon.

XStream: Cannot parse date

I was sending date “06-14-2011″ in XML request, during it’s processing i got this parse error Cannot parse date 06-14-2011 com.thoughtworks.xstream.converters.basic.DateConverter.fromString(DateConverter.java:97) this is because Xstream by default don’t handle MM-dd-yyyy format. So we need to add one in order to … Continue reading

Posted in Java, Troubleshoot, xstream | Tagged , | 1 Comment

Mainframe CICS DB2 : Security mechanism not supported

I was writing a code to access DB2 in CICS where I encountered this error. This error encounters when you are trying to access a secured Db with default options. In order to get this working, you have to specify … Continue reading

Posted in Articles, DB2 | Leave a comment

Mainframe CICS DB2 : java.lang.NoClassDefFoundError: com/ibm/crypto/provider/IBMJCE

I was trying to access Mainframe () DB2 using standalone application with “com.ibm.db2.jcc.DB2Driver” driver where I encountered the below error java.lang.NoClassDefFoundError: com/ibm/crypto/provider/IBMJCE Problem was that ibmjceprovider.jar was missing from my classpath and java.security file I added the jar file and … Continue reading

Posted in Articles, DB2, Java, Troubleshoot | Leave a comment

Java Return Value to Unix Shell Script

Today I faced a situation where I need to verify something though Java class in database . My problem was I have to do this inside unix shell script. I created the below solution to achieve that, I am posting … Continue reading

Posted in HowTo, Java, unix | Leave a comment

How to send an email from UNIX using mailx.

#!/bin/sh # # Purpose: Demonstrate how to send an email from UNIX using mailx. ############################################################ # Example 1 – Simple: echo “This is the body.”| mailx -s “mailx Test1″ sample@sample.com # Example 2 – Using Variables: SUBJECT=”mailx Test2″ EMAIL_ADDRESS=”sample@sample.com“ BODY=”This … Continue reading

Posted in HowTo, unix | Leave a comment

DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704

SQLCODE -204 is "object does not exist". I was getting this error while executing a query, this was happening because I was using the SCHEMA name of Q7 database and executing the query inside Q0 db. means not able to … Continue reading

Posted in DB2, Java, Troubleshoot | Leave a comment

Delete .svn directories recursively

I am here showing an example of a unix command, which recursively deletes subversion .svn folders. Subversion is a widely used open-source revision control application. Every copy of source code received from subversion repository has .svn folders, which store metadata. … Continue reading

Posted in HowTo, unix | Leave a comment

Debugging Hibernate using Log4J Logs

People who work with Hibernate often want to see, what SQL it is prepairing behind the seen and how it is mapping in real for debug purpose. We can achieve this by enable log4j for Hibernate classes. This will give … Continue reading

Posted in debug, hibernate, Java | Leave a comment

java.security.NoSuchAlgorithmException: No implementation for AES/CBC/NoPadding found

Hi, From past few days I and my few team members were getting the following error during LDAP authentication: javax.net.ssl.SSLException: Algorithm missing:       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.f(DashoA12275)     at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)     at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275)     at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)     at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)     at … Continue reading

Posted in Java, Troubleshoot | Leave a comment

Rename log4j.properties

Some time the need arises to have our log4j.properties with different name. By default, if no other configuration is given, log4j will search your classpath for a 'log4j.properties' file. Now to use your own named log4j property add the following … Continue reading

Posted in HowTo, Java, log4j | Leave a comment