Tuesday, February 24, 2009

mysql bug : java.sql.SQLException: Unknown prepared statement handler (1) given to mysql_stmt_execute

In a situation where there are two servers, and C/J is setup for load balancing andfailover between them, there is a chance a server could crash due to invalid preparedstatements, or valid statements bug invalid parameters being sent.

Refer this link HERE

The party's over

I dont know how it works:(

Wednesday, February 11, 2009

java code to get the current date, month, year

java code to get the current date, month, year
 
java.util.Calendar cal = new java.util.GregorianCalendar();
 
System.out.println("Current Date : "+cal.get( Calendar.DATE ));
System.out.println("Current MONTH : "+cal.get( Calendar.MONTH ));
System.out.println("Current YEAR : "+cal.get( Calendar.YEAR ));

Sunday, February 8, 2009

mysql problem : Unauthenticated Users

Bug #8945 unauthenticated user and server crash
 
 
Posted by: KimSeong Loh ()
Date: December 13, 2008 06:15AM

Probably your DNS settings.
MySQL server tries to contact the DNS for each connection to perform reverse DNS before it can authenticate the user, so if this takes a long time due to DNS issue, the users will stuck in the unauthenticated state for a longer period of time.
 

Sunday, February 1, 2009

FW: Action Class Design Guidelines -Write code for a multi-threaded environment

 
-----Original Message-----
From: Satya Siripuram [mailto:satya.siripuram@sarkinfotech.com]
Sent: Monday, February 02, 2009 11:45 AM
To: 'sat4java.books4java@blogger.com'
Subject: Action Class Design Guidelines -Write code for a multi-threaded environment

 
This resource is really useful for those who want develop and work in multi-threaded environment see this section : 4.4.1 Action Class Design Guidelines