This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Communication Link Failure & Unexpected end of input screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Communication Link Failure & Unexpected end of input screen" Watch "Communication Link Failure & Unexpected end of input screen" New topic
Author

Communication Link Failure & Unexpected end of input screen

Marcus Hathaway
Ranch Hand

Joined: Jun 07, 2005
Posts: 89
Hi,

I'm having the following SQL error when trying to connect to a database for use with JasperReports.



Anybody have any ideas to how to solve this? When i use the same connection mechanism for connecting to the database in another program everything works fine....so not sure why its saying it now.

Thanks for any advice...
[ October 03, 2005: Message edited by: Bear Bibeault ]
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Marcus,

This is a rather generic error and without some more context is rather hard to diagnose.

Off the top of my head, since you say this is happening on connect I wonder if you are using a different driver because it sounds like it could be a protocol misfunction. Namely in one place you use a driver that is speaking the correct protocol and with Jasper you are not.

Please consult the FAQ http://faq.javaranch.com/view?JdbcConnectionQuestions and the question Why do I get a connection refused exception

Make sure you go down the checklist of all the things that can go wrong.
Marcus Hathaway
Ranch Hand

Joined: Jun 07, 2005
Posts: 89
Thanks for the reply,

In case anybody else suffers the same problem, the dilema was that i had mistakingly copied an old mysql diver into the lib/ext folder.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I knew that I've done the same thing. Sorry I was too late.
 
Don't get me started about those stupid light bulbs.
 
subject: Communication Link Failure & Unexpected end of input screen