« Return to Thread: NumberFormatException on initializePropsFromServer

Re: NumberFormatException on initializePropsFromServer

by Mark Matthews :: Rate this Message:

Reply to Author | View in Thread

>
> 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@...

 « Return to Thread: NumberFormatException on initializePropsFromServer