java.sql.SQLException: Server connection failure during transaction. Due to underlying exception:

'java.lang.ArrayIndexOutOfBoundsException: 40'.
Attempted reconnect 3 times. Giving up.

I don't understand why there is an array out of bounds exception. my host is localhost:3306 and i already verified my username and password. I granted access on all db but it displays zero changes. what does this mean? i am using mysql server v4.1.7-nt on winxp

does this have anything to do with mysql configuration?