Re: NumberFormatException on initializePropsFromServer

"Mark Matthews" <[email protected]> Sun, 16 Sep 2007 11:58:47 -0500 (CDT)
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
>
> 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/[email protected]