Ask a Question related to Coldfusion Database Access, Design and Development.
-
Gambit6 #1
CX 6.1/MySQL 4.1 - logger class error?
I was getting the error logged here:
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url] I ran
through those steps and now am getting this error: Connection verification
failed for data source: patientsafety []java.sql.SQLException: Unable to
instantiate logger class 'com.mysql.jdbc.log.Log4JLogger', exception in
constructor? The root cause was that: java.sql.SQLException: Unable to
instantiate logger class 'com.mysql.jdbc.log.Log4JLogger', exception in
constructor? My ODBC attempted setup is: JDBC URL =
jdbc:mysql://localhost:3306/patientsafety Driver class = com.mysql.jdbc.Driver
My version of CF is the developer version of MX 6.1, if that matters. Any
ideas? Thanks.
Gambit6 Guest
-
ADDT login logger
I use the ADDT login and have the logger table set up ? but I have been using this mainly for the session tracking. What I am dealing with now is... -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
#25580 [WFx]: set_error_handler to a class/method resets class properties when error occurs
ID: 25580 Updated by: sniper@php.net Reported By: paul dot liversidge at recycledpixels dot com Status: Wont... -
#25580 [Opn]: set_error_handler to a class/method resets class properties when error occurs
ID: 25580 User updated by: paul.liversidge@recycledpixels.com Reported By: paul dot liversidge at recycledpixels dot com... -
#25580 [NEW]: set_error_handler to a class/method resets class properties when error occurs
From: paul dot liversidge at recycledpixels dot com Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: ... -
{CrkZ}-DJ- #2
Re: CX 6.1/MySQL 4.1 - logger class error?
I am having this exact same problem.
Copied the mysql-connector-java-3.1.8-bin.jar file to
C:\CFusionMX\wwwroot\WEB-INF\lib\ directory.
Restarted all Coldfusion Services.
Attempted to add the datasource as directed and recieved the error Gambit6
posted above.
Ver.
Windows XP
CFMX 6.1 Developer --> installed with default "server" option
MySQL Essential 4.1.11
{CrkZ}-DJ- Guest
-
{CrkZ}-DJ- #3
Re: CX 6.1/MySQL 4.1 - logger class error?
Did you figure this out Gambit?
{CrkZ}-DJ- Guest
-
Gambit6 #4
Re: CX 6.1/MySQL 4.1 - logger class error?
Unfortunately, not yet. Haven't had a chance to work on the issue yet today. If I do figure it out, I will post the solution here.
Gambit6 Guest
-
Gambit6 #5
Re: CX 6.1/MySQL 4.1 - logger class error?
I figured out a solution. I had downloaded version 3.1 of MySQL Connector J. I just removed that and replaced it with the previous version (3.0). Now it works.
Gambit6 Guest
-
Lil-Rugger #6
Re: CX 6.1/MySQL 4.1 - logger class error?
What version of 3.0 did you use to solve this problem?
mysql-connector-java-3.{n}-bin.jar - what was the name of this file that you
put in the WEB_INF/lib file?
I got the original logging error you discussed when I put the 3.1.8 jar file.
Then I changed to
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.6-stable-bin.jar
stopped and started CF services and rebooted the server
I set-up my datasource and got the error below:
jdbc:mysql://111.222.333.444:3306/mydbname
Driver Class: com.mysql.jdbc.Driver
Drive Name:
Username: enteredminehere
Password: enteredmineere
Connection verification failed for data source: testing
[]java.sql.SQLException: Communication link failure: java.io.IOException,
underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION **
java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE:
java.io.IOException: Unexpected end of input stream at
com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:107 3) at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:61 9) at
com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1511) at
com.mysql.jdbc.Connection.(Connection.java:485) at
com.mysql.jdbc.Driver.connect(Driver.java:341) at
coldfusion.server.j2ee.sql.pool.JDBCPool.createPhy sicalConnection(JDBCPool.java:
511) at
coldfusion.server.j2ee.sql.pool.ConnectionRunner$R unnableConnection.run(Connecti
onRunner.java:64) at java.lang.Thread.run(Thread.java:534) ** END NESTED
EXCEPTION **
The root cause was that: java.sql.SQLException: Communication link failure:
java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN
NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream
STACKTRACE: java.io.IOException: Unexpected end of input stream at
com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:107 3) at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:61 9) at
com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1511) at
com.mysql.jdbc.Connection.(Connection.java:485) at
com.mysql.jdbc.Driver.connect(Driver.java:341) at
coldfusion.server.j2ee.sql.pool.JDBCPool.createPhy sicalConnection(JDBCPool.java:
511) at
coldfusion.server.j2ee.sql.pool.ConnectionRunner$R unnableConnection.run(Connecti
onRunner.java:64) at java.lang.Thread.run(Thread.java:534) ** END NESTED
EXCEPTION **
Lil-Rugger Guest
-
Brad #7
Re: CX 6.1/MySQL 4.1 - logger class error?
There is one other change I had to make for this to work. In addition to
having to roll back to an older than current stable release of the Connector
(3.1.6 in my case) I also had to place this file into the CFusionMX/lib
folder rather than the cfroot/web-inf/lib folder.
Once I made these two changes, I can now connect to MySQL 4.1 from MX 6.1
Enterprise. I've leaving comments for Macromedia that their technote
6ef0253 is either incomplete or wrong since it tells you to copy to the
web-inf/lib folder. That wasted a good deal fo my time.
.....Brad
"Gambit6" <webforumsuser@macromedia.com> wrote in message
news:d489t7$5ht$1@forums.macromedia.com...
I figured out a solution. I had downloaded version 3.1 of MySQL Connector
J. I just removed that and replaced it with the previous version (3.0).
Now it works.
Brad Guest
-
Michael van K #8
Re: CX 6.1/MySQL 4.1 - logger class error?
Thanks for this folks, it helped me too with mysql-connector-java-3.0.16-ga-bin.jar in the CFusionMX/lib folder.
Michael van K Guest
-
Sarge #9
Re: CX 6.1/MySQL 4.1 - logger class error?
Hi all. I had a customer bring the technote in question to my attention and the
information in it is technically correct. The only problem I found was with the
link to MySQL's Connector J download site. You are all correct that the 3.1.8a
drivers throw a Log4j error -- I logged a bug for it -- and the 3.0.16ga
drivers work. However, I loaded my 3.0.16ga drivers into
cf_root/wwwroot/WEB-INF/lib at they worked for me -- on both CFMX 6.1 Updater
and CFMX 7. I would rather none of you put anything into cf_root/lib other than
Macromedia supplied files. If you insist cf_root/wwwroot/WEB-INF/lib is not
working for you, use cf_root/runtime/servers/lib (create it if it doesn't
exist) for Server and J2EE w/JRun 4 (jrun_root/server_instance/lib)
configurations.
I blogged this at [url]http://www.sargeway.com/blog/index.cfm?mode=entry&entry=62[/url]
Sarge Guest
-
alexzive #10
Re: CX 6.1/MySQL 4.1 - logger class error?
Thanks to all here !!!!!!!!!!!!!!!!!!!! I was desperate!!!!!
Greetings from Italy:)
alexzive Guest
-
xipher1 #11
Re: CX 6.1/MySQL 4.1 - logger class error?
Hi there, I am having some difficulties with this. I have it working fine with
3.0.17-ga, but it seems that this connector is not supporting multi queries? I
have it working on a seperate production server with CFMX7.0 and v3.1.10
connector, and multi-queries are working just dandy, and I am confused why they
dont work with 3.0.17 AND why I can't install 3.1.10 with CFMX6.1?
Any thoughts?
xipher1 Guest
-
Mountain Lover #12
Re: CX 6.1/MySQL 4.1 - logger class error?
maybe try using the allowMultiQueries property in the connection URL ?
[url]http://dev.mysql.com/doc/refman/5.0/en/cj-configuration-properties.html[/url]
HTH
--
Tim Carley
[url]www.recfusion.com[/url]
[email]info@NOSPAMINGrecfusion.com[/email]
Mountain Lover Guest



Reply With Quote

