Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: NumberFormatException on initializePropsFromServer

From: Mark Matthews <mark(at)mysql.com>
Date: Sun Sep 16 2007 - 12:58:47 EDT


>
> Here are the likely offenders from the Connection source:
>
> this.netBufferLength = Integer.parseInt((String)
> this.serverVariables.get("net_buffer_length"));
>
> this.maxAllowedPacket = Integer.parseInt((String)
> this.serverVariables.get("max_allowed_packet"));
>
> The code is clearly not ready for the server to return "" for these
> variables.

Madox,

Interesting. I've _never_ seen the server return "" for those variables, and it's not ever supposed to return "" for those variables, which is why there's no defensive code around that. I suppose the driver could "punt" when it runs into this situation, but I smell a memory overwrite condition somwehere in the server.

Is this issue reproducible?

   -Mark

-- 
MySQL Java Mailing List
For list archives: 
http://lists.mysql.com/java
To unsubscribe:    
http://lists.mysql.com/java?unsub=lists@pantek.com
Received on Sun Sep 16 12:59:01 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:14:17 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library