You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Blackburn <rw...@gmail.com> on 2009/01/03 16:59:34 UTC

Re: “java.lang.NullPointerException” with JDBC connection from InitialContext

> Just some suggestions that come to mind:
>
> Have you considered googling for "StringUtils indexOfIgnoreCaseRespectQuotes"?
> E.g. it may be Connector/J bug #25047 fixed in v. 5.0.5
> Check, what version of MySQL Connector/J you are using.
>

OK, problem solved.
For the record I did search on that, and looked into it originally.
But stupidly, I verified that my test Connector/J was version v5.0.5
or later,... but must not have check the server. Sure enough the host
had v5.0.2. Upgrading the driver resolved this. Thank you Konstantin.

Thank you everyone who responded to my issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: “java.lang.NullPointerException” with JDBC connection from InitialContext

Posted by Kees Jan Koster <kj...@gmail.com>.
Dear Robert,

>> Have you considered googling for "StringUtils  
>> indexOfIgnoreCaseRespectQuotes"?
>> E.g. it may be Connector/J bug #25047 fixed in v. 5.0.5
>> Check, what version of MySQL Connector/J you are using.
>
> OK, problem solved.
> For the record I did search on that, and looked into it originally.
> But stupidly, I verified that my test Connector/J was version v5.0.5
> or later,... but must not have check the server. Sure enough the host
> had v5.0.2. Upgrading the driver resolved this. Thank you Konstantin.


Which is why I install webapps with complete Tomcat instances from  
SVN. That way there is never any unexpected difference between what's  
on test and what's on production. All I have to do is deploy a  
different data source config for each machine and I'm good to go.

This has the added benefit of being able to 'svn diff' configurations  
for manual config edits by my co-workers. No more --didn't I do that  
on all machines?--moments.
--
Kees Jan

http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Pratchett


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org