CX 6.1/MySQL 4.1 - logger class error?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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'...
    3. #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...
    4. #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...
    5. #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: ...
  3. #2

    Default 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

  4. #3

    Default Re: CX 6.1/MySQL 4.1 - logger class error?

    Did you figure this out Gambit?
    {CrkZ}-DJ- Guest

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default 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

  11. #10

    Default Re: CX 6.1/MySQL 4.1 - logger class error?

    Thanks to all here !!!!!!!!!!!!!!!!!!!! I was desperate!!!!!
    Greetings from Italy:)
    alexzive Guest

  12. #11

    Default 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

  13. #12

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139