Re: windows - tomcat - jdbc - "unable to connect" linux instead of windows is fine
Posted by: Mark Matthews
Date: December 30, 2004 05:57PM

Niels wrote:
> I removed alll versions and tried 2 connectors, I
> have tried to place them in 2 positions
> (WEB-INF/lib & lib/ext) with the same
> errors:
>
> mysql-connector-java-3.1.5-gamma-bin.jar:
>
> SQL Error
> Communications link failure due to underlying
> exception: ** BEGIN NESTED EXCEPTION **
> java.lang.NullPointerException STACKTRACE:
> java.lang.NullPointerException at
> java.lang.String.getBytes(Unknown Source) at

Niels,

Looks like the driver's trying to use a character encoding from the server that it doesn't know about. What version of the server is this? What is the result of issuing "show variables like '%character%'" on your server? Are you using the default character set, or is this something you've configured on the server?

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.