Bad handshake

Hi!
I'm italian student (excuse me for my English ).
Using MySql 4.1, how set up the connection string from a JSP page?
I try in this mode:
String URL="jdbc:mysql://localhost/prova";
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
conn = DriverManager.getConnection(URL);
PreparedStatement pstmt = conn.prepareStatement("Select * From contatto Where nome like ?");But the JSP page returns the follow error:
Communication link failure: Bad handshake
Why?
Thanks!

Hi!
It seems you are using an older JDBC driver, go to MySql home page and download the latest JDBC driver that relates to the MySql version you are using, do not forget to place it in your /lib folder under /WEB-INF directory of your web application.
Good luck.

Similar Messages

  • "Bad handshake" error with MySQL

    Hello,
    I'm having problems when I try to connect to DB using MySQL 4.1.1alpha.
    I have Conector/J 3.1 and Connector/ODBC 3.51.
    The exceptions occur when I try to connect with the sentence:
    conection = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql?user=root");
    the exception thrown is:
    Communication link failure: Bad handshake
    I can connect from mysql and from mysql Control Center but not from JAVA.
    Does Anyone know my problem?
    Greetings
    Mariano

    Did you try this?
    conection = DriverManager.getConnection("jdbc:mysql://localhost:3306 /mysql?user=root&password=");
    if still doesn't work, recompile the driver and try again. It happened to me once when I downloaded their binary [instead of recompiling their src myself].
    hope this helps

  • Random Peer Not Authenticated

    We've encountered a rather delicious problem that we believe might be a bug in JSSE. We have a URL with valid Verisign certificate. We have a Java client that uses Inovention's HTTPClient library which in turn is set to use Sun's JSSE for HTTPS. We can run for days with no problems and then all of sudden the client refuses to validate the server certificate, throwing a Peer Not Authenticated Exception. We turned on the -Djavax.net.debug=all flag and found that both the "good" and "bad" handshakes had completely identical request/response packets -- up until the point when somewhere deep Sun's JSSE code an ArrayIndexOutOfBounds exception was thrown causing JSSE to think the certificate was not go (hence a Peer Not Authenticated Exception). We decomplied/recompiled JSSE with a few lines of debugging to print out a stack trace of the ArrayIndexOutOfBounds exception, but it didn't really tell us much.
    Here is the unencrypted SSL handshake dump (plus extra debugging). We are completely baffled at this one and are thinking about trying a different SSL implementation.
    chain [0] = [
    Version: V3
    Subject: CN=GETADNDATA.ACXIOM.COM, OU=ADNPLPWEB1, O=ACXIOM, L=Conway, ST=Arkansas, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@9b72a131
    Validity: [From: Tue Feb 19 19:00:00 EST 2002,
                   To: Mon Mar 03 18:59:59 EST 2003]
    Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, Inc.", C=US
    SerialNumber: [    7d6e3ded edac9ca1 6eace72a 1c3659e2 ]
    Certificate Extensions: 7
    [1]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 28 30 26 30 24 06 08 2B 06 01 05 05 07 30 01 .(0&0$..+.....0.
    0010: 86 18 68 74 74 70 3A 2F 2F 6F 63 73 70 2E 76 65 ..http://ocsp.ve
    0020: 72 69 73 69 67 6E 2E 63 6F 6D risign.com
    [2]: ObjectId: 2.16.840.1.113733.1.6.15 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 0B 16 09 31 37 36 33 39 31 39 34 34 ....176391944
    [3]: ObjectId: 2.5.29.32 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 3D 30 3B 30 39 06 0B 60 86 48 01 86 F8 45 01 .=0;09..`.H...E.
    0010: 07 17 03 30 2A 30 28 06 08 2B 06 01 05 05 07 02 ...0*0(..+......
    0020: 01 16 1C 68 74 74 70 73 3A 2F 2F 77 77 77 2E 76 ...https://www.v
    0030: 65 72 69 73 69 67 6E 2E 63 6F 6D 2F 72 70 61 erisign.com/rpa
    [4]: ObjectId: 2.5.29.31 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 35 30 33 30 31 A0 2F A0 2D 86 2B 68 74 74 70 .50301./.-.+http
    0010: 3A 2F 2F 63 72 6C 2E 76 65 72 69 73 69 67 6E 2E ://crl.verisign.
    0020: 63 6F 6D 2F 52 53 41 53 65 63 75 72 65 53 65 72 com/RSASecureSer
    0030: 76 65 72 2E 63 72 6C ver.crl
    [5]: ObjectId: 2.5.29.15 Criticality=false
    KeyUsage [
    DigitalSignature
    Key_Encipherment
    [6]: ObjectId: 2.5.29.37 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 16 30 14 06 08 2B 06 01 05 05 07 03 01 06 08 ..0...+.........
    0010: 2B 06 01 05 05 07 03 02 +.......
    [7]: ObjectId: 2.5.29.19 Criticality=false
    BasicConstraints:[
    CA:false
    PathLen: undefined
    Algorithm: [MD5withRSA]
    Signature:
    0000: 09 83 38 05 2D 9B 5B A7 17 4F 48 AB 3D 52 34 13 ..8.-.[..OH.=R4.
    0010: 1E B8 28 B3 3F A9 EB 02 27 37 35 0B A6 5A AB DF ..(.?...'75..Z..
    0020: B2 E2 35 FE 59 F7 33 2A 67 C5 B6 BC 1D 3C 0C BF ..5.Y.3*g....<..
    0030: FD 71 90 9F 5F 15 A6 F7 A5 8E 88 CF A6 64 A0 56 .q.._........d.V
    0040: 73 33 2D 3A 9E 9E 1D 1D 03 3B 76 C9 E6 05 08 0E s3-:.....;v.....
    0050: 14 8C 19 28 EB 00 D6 44 F1 06 42 AB C6 50 9A 05 ...(...D..B..P..
    0060: 2F 42 06 A1 9D DA 40 22 FA EF 21 27 43 C6 8A 05 /B....@"..!'C...
    0070: 6D 33 08 0A 31 89 3F 05 32 78 57 F4 85 m3..1.?.2xW..
    chain [1] = [
    Version: V1
    Subject: OU=Secure Server Certification Authority, O="RSA Data Security, Inc.", C=US
    Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@afd22131
    Validity: [From: Tue Nov 08 19:00:00 EST 1994,
                   To: Thu Jan 07 18:59:59 EST 2010]
    Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, Inc.", C=US
    SerialNumber: [    02ad667e 4e45fe5e 576f3c98 195eddc0 ]
    Algorithm: [MD2withRSA]
    Signature:
    0000: 65 DD 7E E1 B2 EC B0 E2 3A E0 EC 71 46 9A 19 11 e.......:..qF...
    0010: B8 D3 C7 A0 B4 03 40 26 02 3E 09 9C E1 12 B3 D1 ......@&.>......
    0020: 5A F6 37 A5 B7 61 03 B6 5B 16 69 3B C6 44 08 0C Z.7..a..[.i;.D..
    0030: 88 53 0C 6B 97 49 C7 3E 35 DC 6C B9 BB AA DF 5C .S.k.I.>5.l....\
    0040: BB 3A 2F 93 60 B6 A9 4B 4D F2 20 F7 CD 5F 7F 64 .:/.`..KM. .._.d
    0050: 7B 8E DC 00 5C D7 FA 77 CA 39 16 59 6F 0E EA D3 ....\..w.9.Yo...
    0060: B5 83 7F 4D 4D 42 56 76 B4 C9 5F 04 F8 38 F8 EB ...MMBVv.._..8..
    0070: D2 5F 75 5F CD 7B FC E5 8E 80 7C FC 50 ._u_........P
    Entering method b(X509Certificate[])
    Got a PublicKey: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@afd22131
    java.lang.ArrayIndexOutOfBoundsException: 0
         at COM.rsa.jsafe.dd.a([DashoPro-V1.2-120198])
         at COM.rsa.jsafe.ak.b([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.JS_Signature.engineVerify([DashoPro-V1.2-120198])
         at java.security.Signature$Delegate.engineVerify(Signature.java:652)
         at java.security.Signature.verify(Signature.java:385)
         at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:288)
         at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:252)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.b(X509TrustManagerImpl.java:289)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.isServerTrusted(X509TrustManagerImpl.java:236)
         at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.isServerTrusted([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
         at java.io.OutputStream.write(OutputStream.java:66)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession([DashoPro-V1.2-120198])
         at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.Post(HTTPConnection.java)
         at HTTPClient.HTTPConnection.Post(HTTPConnection.java)
         at com.mbusa.trillium.AbiliTecRequest.postRequest(AbiliTecRequest.java)
         at com.mbusa.trillium.AbiliTecRequest.execute(AbiliTecRequest.java)
         at com.mbusa.trillium.AppendLinkRequest.fillAbiliTecID(AppendLinkRequest.java)
         at com.mbusa.trillium.TrilliumAPIHandler.basicGetAbiliTecID(TrilliumAPIHandler.java)
         at com.mbusa.trillium.TrilliumAPIHandler.matchClient(TrilliumAPIHandler.java)
         at com.mbusa.trillium.TrilliumAPIHandler.matchClient(TrilliumAPIHandler.java)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.mbusa.lang.DynamicObject.perform(DynamicObject.java)
         at com.mbusa.lang.DynamicObject.perform(DynamicObject.java)
         at com.mbusa.service.RemoteMethodHandler.selfPerform(RemoteMethodHandler.java)
         at com.mbusa.service.RemoteMethodHandler.performCommand(RemoteMethodHandler.java)
         at com.mbusa.service.RemoteMethodHandler.handle(RemoteMethodHandler.java)
         at com.mbusa.net.CommAdapter.run(CommAdapter.java)
         at java.lang.Thread.run(Thread.java:481)
    verify failed: [
    Version: V3
    Subject: CN=GETADNDATA.ACXIOM.COM, OU=ADNPLPWEB1, O=ACXIOM, L=Conway, ST=Arkansas, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@9b72a131
    Validity: [From: Tue Feb 19 19:00:00 EST 2002,
                   To: Mon Mar 03 18:59:59 EST 2003]
    Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, Inc.", C=US
    SerialNumber: [    7d6e3ded edac9ca1 6eace72a 1c3659e2 ]
    Certificate Extensions: 7
    [1]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 28 30 26 30 24 06 08 2B 06 01 05 05 07 30 01 .(0&0$..+.....0.
    0010: 86 18 68 74 74 70 3A 2F 2F 6F 63 73 70 2E 76 65 ..http://ocsp.ve
    0020: 72 69 73 69 67 6E 2E 63 6F 6D risign.com
    [2]: ObjectId: 2.16.840.1.113733.1.6.15 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 0B 16 09 31 37 36 33 39 31 39 34 34 ....176391944
    [3]: ObjectId: 2.5.29.32 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 3D 30 3B 30 39 06 0B 60 86 48 01 86 F8 45 01 .=0;09..`.H...E.
    0010: 07 17 03 30 2A 30 28 06 08 2B 06 01 05 05 07 02 ...0*0(..+......
    0020: 01 16 1C 68 74 74 70 73 3A 2F 2F 77 77 77 2E 76 ...https://www.v
    0030: 65 72 69 73 69 67 6E 2E 63 6F 6D 2F 72 70 61 erisign.com/rpa
    [4]: ObjectId: 2.5.29.31 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 35 30 33 30 31 A0 2F A0 2D 86 2B 68 74 74 70 .50301./.-.+http
    0010: 3A 2F 2F 63 72 6C 2E 76 65 72 69 73 69 67 6E 2E ://crl.verisign.
    0020: 63 6F 6D 2F 52 53 41 53 65 63 75 72 65 53 65 72 com/RSASecureSer
    0030: 76 65 72 2E 63 72 6C ver.crl
    [5]: ObjectId: 2.5.29.15 Criticality=false
    KeyUsage [
    DigitalSignature
    Key_Encipherment
    [6]: ObjectId: 2.5.29.37 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 16 30 14 06 08 2B 06 01 05 05 07 03 01 06 08 ..0...+.........
    0010: 2B 06 01 05 05 07 03 02 +.......
    [7]: ObjectId: 2.5.29.19 Criticality=false
    BasicConstraints:[
    CA:false
    PathLen: undefined
    Algorithm: [MD5withRSA]
    Signature:
    0000: 09 83 38 05 2D 9B 5B A7 17 4F 48 AB 3D 52 34 13 ..8.-.[..OH.=R4.
    0010: 1E B8 28 B3 3F A9 EB 02 27 37 35 0B A6 5A AB DF ..(.?...'75..Z..
    0020: B2 E2 35 FE 59 F7 33 2A 67 C5 B6 BC 1D 3C 0C BF ..5.Y.3*g....<..
    0030: FD 71 90 9F 5F 15 A6 F7 A5 8E 88 CF A6 64 A0 56 .q.._........d.V
    0040: 73 33 2D 3A 9E 9E 1D 1D 03 3B 76 C9 E6 05 08 0E s3-:.....;v.....
    0050: 14 8C 19 28 EB 00 D6 44 F1 06 42 AB C6 50 9A 05 ...(...D..B..P..
    0060: 2F 42 06 A1 9D DA 40 22 FA EF 21 27 43 C6 8A 05 /B....@"..!'C...
    0070: 6D 33 08 0A 31 89 3F 05 32 78 57 F4 85 m3..1.?.2xW..
    verify exception was: java.lang.ArrayIndexOutOfBoundsException: 0
    Thread-99, SEND SSL v3.1 ALERT: fatal, description = certificate_unknown
    Thread-99, WRITE: SSL v3.1 Alert, length = 2
    javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
         at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain([DashoPro-V1.2-120198])
         at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java)
         at HTTPClient.HTTPConnection.Post(HTTPConnection.java)
         at HTTPClient.HTTPConnection.Post(HTTPConnection.java)
         at com.mbusa.trillium.AbiliTecRequest.postRequest(AbiliTecRequest.java)
         at com.mbusa.trillium.AbiliTecRequest.execute(AbiliTecRequest.java)
         at com.mbusa.trillium.AppendLinkRequest.fillAbiliTecID(AppendLinkRequest.java)
         at com.mbusa.trillium.TrilliumAPIHandler.basicGetAbiliTecID(TrilliumAPIHandler.java)
         at com.mbusa.trillium.TrilliumAPIHandler.matchClient(TrilliumAPIHandler.java)
         at com.mbusa.trillium.TrilliumAPIHandler.matchClient(TrilliumAPIHandler.java)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.mbusa.lang.DynamicObject.perform(DynamicObject.java)
         at com.mbusa.lang.DynamicObject.perform(DynamicObject.java)
         at com.mbusa.service.RemoteMethodHandler.selfPerform(RemoteMethodHandler.java)
         at com.mbusa.service.RemoteMethodHandler.performCommand(RemoteMethodHandler.java)
         at com.mbusa.service.RemoteMethodHandler.handle(RemoteMethodHandler.java)
         at com.mbusa.net.CommAdapter.run(CommAdapter.java)
         at java.lang.Thread.run(Thread.java:481)
    %% Client cached [Session-11, SSL_RSA_WITH_RC4_128_MD5]
    %% Try resuming [Session-11, SSL_RSA_WITH_RC4_128_MD5] from port 37667
    *** ClientHello, v3.1
    RandomCookie: GMT: 998650415 bytes = { 250, 15, 76, 81, 166, 214, 100, 36, 42, 123, 172, 48, 87, 224, 204, 87, 104, 13, 13, 252, 139, 7, 6, 69, 80, 241, 187, 253 }
    Session ID: {0, 0, 235, 228, 46, 58, 167, 168, 42, 79, 80, 97, 137, 186, 26, 43, 4, 5, 187, 20, 122, 144, 61, 98, 248, 133, 29, 131, 119, 169, 179, 28}
    Cipher Suites: { 0, 5, 0, 4, 0, 9, 0, 10, 0, 18, 0, 19, 0, 3, 0, 17 }
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 91
    0000: 01 00 00 57 03 01 3C 86 32 2F FA 0F 4C 51 A6 D6 ...W..<.2/..LQ..
    0010: 64 24 2A 7B AC 30 57 E0 CC 57 68 0D 0D FC 8B 07 d$*..0W..Wh.....
    0020: 06 45 50 F1 BB FD 20 00 00 EB E4 2E 3A A7 A8 2A .EP... .....:..*
    0030: 4F 50 61 89 BA 1A 2B 04 05 BB 14 7A 90 3D 62 F8 OPa...+....z.=b.
    0040: 85 1D 83 77 A9 B3 1C 00 10 00 05 00 04 00 09 00 ...w............
    0050: 0A 00 12 00 13 00 03 00 11 01 00 ...........
    Thread-67, WRITE: SSL v3.1 Handshake, length = 91
    Thread-67, READ: SSL v3.1 Handshake, length = 1536
    *** ServerHello, v3.1
    RandomCookie: GMT: 30987 bytes = { 105, 65, 51, 210, 246, 7, 94, 128, 115, 207, 84, 178, 116, 120, 61, 85, 225, 208, 70, 111, 239, 140, 160, 95, 126, 6, 74, 20 }
    Session ID: {0, 0, 229, 0, 57, 140, 255, 11, 220, 44, 246, 19, 150, 78, 207, 18, 103, 155, 161, 60, 76, 244, 15, 184, 185, 137, 56, 9, 167, 236, 245, 181}
    Cipher Suite: { 0, 4 }
    Compression Method: 0
    %% Created: [Session-24, SSL_RSA_WITH_RC4_128_MD5]
    ** SSL_RSA_WITH_RC4_128_MD5
    [read] MD5 and SHA1 hashes: len = 74
    0000: 02 00 00 46 03 01 00 00 79 0B 69 41 33 D2 F6 07 ...F....y.iA3...
    0010: 5E 80 73 CF 54 B2 74 78 3D 55 E1 D0 46 6F EF 8C ^.s.T.tx=U..Fo..
    0020: A0 5F 7E 06 4A 14 20 00 00 E5 00 39 8C FF 0B DC ._..J. ....9....
    0030: 2C F6 13 96 4E CF 12 67 9B A1 3C 4C F4 0F B8 B9 ,...N..g..<L....
    0040: 89 38 09 A7 EC F5 B5 00 04 00 .8........
    *** Certificate chain

    After much trial and error, it seems to have turned out that the JDK version was to blame. The code was running on an AIX box with the IBM JDK 1.2. After upgrading to the IBM JDK 1.3.1 (and still using Sun's JSSE 1.0.2), the problem went away.
    Unfortunately, after 4 months of no problems, the problem has mysteriously come back after server's machine was rebuilt (and hence received a new certificate).

  • JSP Mysql Connection Problem

    Hi Friend,
    I am facing some problem in connecting mysql with jsp .
    When I try and connect to mysql with the following connection string
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/testdhiraj?user=root&password=dh");
    Statement statement     = con.createStatement();
    I get an error :
    java.sql.SQLException: Communication link failure: Bad handshake
    I don't know what is wrong,
    as I had tested mysql using telnet and it connects and executes sql nicely.
    Waiting for ur reply,
    Dhiraj Agrawal
    mail to : [email protected]

    Hi,
    You need to make sure that , you have given correct database name, user id and password in the connection url. and also check the jdbc driver is loaded properly. If your mysql is running in the standard port, you need not give the port as 3306.
    Here is the example :
    import java.sql.*;
         Notice, do not import org.gjt.mm.mysql.*
    or you will have problems!
    public class XampleClass
    public static void main(String[] Args)
    try {      
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    catch (Exception e) {
    System.err.println("exception while loading
    driver.");
    e.printStackTrace();
    try {
    Connection C = DriverManager.getConnection(
    "jdbc:mysql://localhost/test?user=myuser&password=mypwddb");
    // Do something with the Connection
    catch (SQLException e) {
    System.out.println("Exception: " + e);
    This is the format for conenction url :
    jdbc:mysql://[hostname][:port]/dbname[?param1=value1][&param2=value2]...
    Hope this helps you.
    Thanks,
    Senthil_Slash

  • Read/Write problems with multiple connections using MySQL & Tomcat

    hello all,
    I am developing a web-based java application that runs on a 4.1 tomcat server and uses MySQL 3.23.52 as db server.
    this program uses hundreds of tables with hundreds of rows each.
    when two or more users are connected, we are experiencing several problems:
    1. when a query is started, they get cross-results that come from both connections.
    2. when inserting/updating (most queries are long and take a few seconds), sometimes data are crossed too, sometimes they are saved incorrectly but get no error message, sometimes they are not saved and get 'null pointer' sqlexception (but tables and queries are correct).
    3. using SHOW PROCESSLIST and SHOW STATUS, we saw that MySQL server hosted no more than 3 max_used_connections, even when my.cnf parameters where set with more. when 3 or more users try to access the database, they get a bad handshake error until other connections are freed.
    any suggestions?
    thanks
    alessandro bonanni
    university of udine

    I am not using a connection pool. I read that when two different connections try to access the same data simultaneously, mysql is not secure. maybe a connection pool could solve that? or maybe is it a mysql limit?
    alessandro

  • Mpdscribble not working

    Two different systems, two different mpdscribble versions, neither one wants to work.
    1. mpdscribble-git won't install on laptop.
    mpdscribble-git 20100320-1 : A mpd client which submits information to last.fm.
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> mpdscribble-git dependencies:
    - curl (already installed)
    - glib2 (already installed)
    - libmpdclient (already installed)
    - gcc (already installed)
    - git (already installed)
    - make (already installed)
    ==> mpdscribble-git conflicts:
    - mpdscribble-0.21-4
    ==> Edit mpdscribble.install ? [Y/n] ("A" to abort)
    ==> -----------------------------------------------
    ==> n
    ==> Continue building mpdscribble-git ? [Y/n]
    ==> -----------------------------------------
    ==>
    ==> Building and installing package
    ==> The sources of mpdscribble-git were kept last time. Use them ? [Y/n]
    ==> Determining latest git revision...
    -> Version found: 20110228
    ==> Making package: mpdscribble-git 20110228-1 (Mon Feb 28 21:40:26 EST 2011)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found mpdscribble.init
    -> Found mpdscribble.conf.example
    -> Found mpdscribble.install
    ==> Validating source files with md5sums...
    mpdscribble.init ... Passed
    mpdscribble.conf.example ... Passed
    mpdscribble.install ... Passed
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Success
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Success
    ==> Starting build()...
    ==> Connecting to mpdscribble-git GIT server....
    Cloning into mpdscribble...
    error: Unable to create /tmp/yaourt-tmp-jeff/aur-mpdscribble-git/src/mpdscribble/.git/HEAD
    warning: unable to unlink /tmp/yaourt-tmp-jeff/aur-mpdscribble-git/src/mpdscribble/.git/HEAD.lock: Success
    Aborting...
    ==> ERROR: Makepkg was unable to build mpdscribble-git.
    ==> Restart building mpdscribble-git ? [y/N]
    ==> ----------------------------------------
    ==>
    ==> WARNING: Following packages have not been installed:
    mpdscribble-git
    2. mpdscribble on laptop writes to .journal file, won't connect to last.fm ('bad handshake'). username and pw are correct. pw was tried as md5sum hash, as hash in quotes ('<hash>'), and as actual plain text password.
    3. mpdscribble-git on desktop doesn't write to .journal file, doesn't connect to last.fm (same as above).
    mpdscribble.conf wrote:
    ## [mpdscribble] ##
    #host =                 # defaults to $MPD_HOST or localhost
    #port =                 #defaults to $MPD_PORT or 6600
    log = /home/user/.mpdscribble/mpdscribble.log
    verbose = 2
    sleep = 1
    musicdir = /mnt/seagate/music
    ## [last.fm] ##
    url = http://post.audioscrobbler.com/
    username = <username>
    password = e9032456528a3495df299adfc3fda450  #(for ex.)
    # Generate using "echo -n password | md5sum"
    journal = /home/user/.mpdscribble/mpdscribble.journal
    ## [libre.fm] ##
    url = http://turtle.libre.fm/
    username = <username>
    password = <pw>
    journal = /home/user/.mpdscribble/mpdscribble.journal
    Neither one are even trying to connect to libre.fm. Does it only connect to the first one? Seems like it should connect to both.  Don't know what's wrong - everything seems to be configured right. I've tried both with the .journal line in both sections, and alone in the top section. Have no idea what's wrong with -git installing on my laptop.

    bump
    >>> okay, desktop is working. Remove mpdscribble-git and put mpdscribble back on, and now it's working. Until it stops working, I guess, and then someone will make -git to get it working, until that stops working again, and then back to regular version till that breaks, and then lather, rinse repeat.
    isn't linux fun?
    Last edited by userlander (2011-03-01 16:04:14)

  • MySQL Connector/ODBC-3.52

    Hi, does anyone has or know where to get MySQL Connector/ODBC-3.52
    I think that is the solution for the problem "Bad handshake" with MySQL 4.1.1a
    greetings

    Its not yet available in binary form, you have to compile it from the source.

  • MAMP yields gobbledegook

    MAMP is returning strange "Bad handshake errors" on a MacBook Air, while it works perfectly on an identical computer on the same home network. I just installed it and the homepage works fine at the default address:
    http://localhost:8888/MAMP/?language=English
    However when I create foo.php in the test directory and load it with this URL:
    http://localhost:8889/MAMP/test/foo.php
    I get weird behavior, for either port 8888 or 8889. Here is the output:
    4
    5.0.4[random stuff that changes with a reload]Bad handshake
    Here is the source code:
    <html>
    <head>
    </head>
    <body>
    hello, world.
    <?php echo 'yo'; ?>
    hi!
    </body>
    </html>
    Again, PHP works fine on my other MacBook with the same system.
    Any ideas why I'm getting this random output?
    Rig:
    MAMP 1.7.2
    Apache port: 8888
    MySQL port: 8889
    MacBook Air 1.6 Ghz Core 2 Duo
    OS/X 10.5.5
    2G RAM
    80G hard disk, 50G free

    Thanks-where is it? Do you mean the Mac OSX Server forum?

  • Safari 8 crash / freeze due to failed HTTPS handshaking

    Since last month some networking devices in my office are malfunction. The IT staffs spend weeks diagnosing these devices, but still can't determine the source of problem. So we have to put up with the unstable internet connection for a while. I don't know why, but all the normal HTTP request seemed OK (though slow), while partial of HTTPS connections suffer from extremely long latency (up to several minutes). As an engineer, I understand this situation and I can stand for the slow connection. But the problem is, Safari 8.0 (Yosemite) is completely unusable in this environment.
    A typical syndrome is: when I visit some webpages that contain HTTPS resources (Javascripts or images, such as the avatar icon of some forum,) Safari will load only part of the page, and go freeze. Mouse cursor will turn into spinning beach ball and every element on the page is not functional; text can't be selected, form can't be focused, links can't be clicked, and even page rendering is stopped: pictures and texts are cut-off in the half, and the screen will not repaint when scrolling. If there are other tabs opened, switching to other tab will flush the whole tab content into blank, and the original content of those tab will not be repainted either. Every interactive move will get no response, including the attempt to close the stalled tab. Safari will only come back to life after the HTTPS session expires, which would take minutes before it times out. And in some rare case, the stalled HTTPS session will crash the whole web content process of that tab. The tab (or window) will just disappear by itself.
    The situation goes really really bad, because every modern web page will utilize some sort of HTTPS resource. Facebook buttons, avatar icons, login forms, they are everywhere. Even stackexchange.com is filled with such elements. Of course the slow connection is not limited to Safari; Google Chrome and even CURL command also suffer from long latency of HTTPS connection. However, Chrome and CURL may go renegotiation during SSL handshaking, and eventually construct connection after a delay. But Safari seems not capable to do this. If HTTPS connection is not established in a few seconds, the session will fail, and it will block all other UI events, until the session expires. I've no idea how Safari 8 deals with TCP connection, but these symptoms remind me the old-school "blocking mode" of socket implementation, which I've never used again after I learned select(), poll() and kqueue.
    If there is any tip of fix to mitigate the situation will be appreciated. I do hope some "defaults write" command will tweak the behavior of Safari dealing with HTTPS, or "sudo rm" some outdated database will do the magic. But please save your time and don't advise me to "Clear the History and Web Data". I've already done that, and it's not working at all. I've even setup a new user account and repeated all the test with the new account.

    I worked around the issue myself by manually commenting the offending assertions out in src/core/job.c, so this is an upstream bug. I will report it at the systemd bug tracker.

  • Question about ssh login warning: Bad protocol version identification

    I set up ssh on my computer according to Tim Haigh's suggestions given here:
    http://discussions.apple.com/thread.jspa?threadID=1674968&tstart=0
    But when I log in from my iPhone, secure.log shows this:
    sshd[534]: Bad protocol version identification 'GET / HTTP/1.1' from 208.54.83.51
    Although I do log in successfully, how can I resolve this error?

    GET / HTTP/1.1
    Looks more like a Web browser handshake, than ssh.

  • E72 WPA PSK handshake problem

    Hi,
    my company has bought a couple of E72's.
    I'm trying desperatly to get them to connect to our WLAN network, which is encrypted using WPA/WPA2 with a PSK. Every other device will just work fine, but the E72 is timing out while connecting giving an error  "bad WPA key". We did a trace on our WLAN equipment, which tells us that the E72 is never responding to the 3rd request of the 4-way handshake.
    I have the latest FW (052.005.C00.01)
    Can I get any detailed logs from the phone; did anyone experience similar problems ?
    Here's the trace from the AP:
    DOT1X Dec  7 16:46:04.892650 DEBUG DOT1X-CLIENT: (177) retransmit packet to 3c:f7:2a:3a:5a:f2
    DOT1X Dec  7 16:46:06.892773 DEBUG DOT1X-TIMEOUT: (177) retransmit (number 3) to 3c:f7:2a:3a:5a:f2
    DOT1X Dec  7 16:46:06.892791 DEBUG DOT1X-CLIENT: excessive retransmits, deleting client from 3c:f7:2a:3a:5a:f2
    DOT1X Dec  7 16:46:06.892808 WARNING DOT1X_AAA_ERR: Excessive retransmits; client: 3c:f7:2a:3a:5a:f2; mac: 3c:f7:2a:3a:5a:f2; ssid: test; AP 4/1
    DOT1X Dec  7 16:46:06.892926 DEBUG DOT1X-CLIENT: cleaning up client from 3c:f7:2a:3a:5a:f2
    Cheers,
    Bob

    Have you tried connecting to the access point with WPA disabled? Or any open access point for that matter.
    You could try to explicitly add pairwise=TKIP to your wpa_supplicant.conf, just to be sure, although it shouldn't matter. That is the only difference I see compared to mine which works for me. Otherwise it might help if you post your network profile or rc.conf.

  • Accessing PC6 and PC7 while using the handshaking-mode

    How can I access the lines PC6 and PC7 on my PCI-6503 / DIO24 Board while
    using the handshaking-mode?
    If I'm trying to access these lines by "dig_out_line" after using the "dig_scan_setup"
    function I receive the error-code -10007 (bad channel error).
    best regards
    Marc

    One feature I found - although it requires you to change album names - but if you on the settings part of iPod set the shuffle to songs, when you pick an album to play it will shuffle those songs. Now how do you apply this to what you want to do? Make your playlist and highlight all the songs and right click the mouse and choose "Get Info" and give them all the same album name. The only draw back is that this will cause the songs to loose their original album information. But when you play that album that you just "created" the iPod will shuffle the songs for you.

  • How do I log SSL Handshaking?

    How do I log SSL Handshaking? I saw refer to a ssl_engine_log, but I cant find one on my server.
    HTTP Server 10g(10.1.3.1.0)

    I am using OHS 2.0. The SSL communication is in the ErrorLog. I see logs when my server acts as the server, but not when it acts a client.
    How do log communication when my server is the client in the SSL authenication process?
    I hope this makes sense, because I am bad when it comes to explaining things :-)

  • How to log SSL Handshaking

    How do I log SSL Handshaking? I saw refer to a ssl_engine_log, but I cant find one on my server.
    HTTP Server 10g(10.1.3.1.0)

    I am using OHS 2.0. The SSL communication is in the ErrorLog. I see logs when my server acts as the server, but not when it acts a client.
    How do log communication when my server is the client in the SSL authenication process?
    I hope this makes sense, because I am bad when it comes to explaining things :-)

  • Bad CertificateRequest DN length

    Hi All,
    I have set up SOAP(2.3.1) SSL in tomcat 4.1.27 with JDK1.3.1. The client authentication (2 way) works fine when the [java_home]\jre\lib\security\cacerts has 10 trusted certs. However, when import upto 200 trusted certs in the cacerts keystore, following excepts occurs:
    server side:
    Thread-10, WRITE: SSL v3.1 Handshake, length = 2849
    Thread-10, READ: SSL v3.1 Alert, length = 2
    Thread-10, RECV SSLv3 ALERT: fatal, handshake_failure
    cliend side:
    main, READ: SSL v3.1 Handshake, length = 16384
    main, READ: SSL v3.1 Handshake, length = 2849
    main, SEND SSL v3.1 ALERT: fatal, description = handshake_failure
    main, WRITE: SSL v3.1 Alert, length = 2
    Caught SOAPException (SOAP-ENV:Client): Error opening socket: javax.net.ssl.SSLP
    rotocolException: Bad CertificateRequest DN length
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.s
    sl.SSLProtocolException: Bad CertificateRequest DN length; targetException=java.
    lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLProtocolEx
    ception: Bad CertificateRequest DN length]
    at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
    tion.java:354)
    at org.apache.soap.rpc.Call.invoke(Call.java:248)
    at TestSoap.start(TestSoap.java:76)
    at TestSoap.main(TestSoap.java:114)
    I have tried to use JDK1.4.1 and the problem solve. But, our application already work with JDK1.3.1 in production stage so that upgrading is not possible.
    It seems the cacerts has limitation about the number of trusted cert. Anyone know how to solve this with JDK1.3.1?
    Thanks a lot.
    brgds Peter

    one idea is to write your own TrustManager in which you
    dont have to load up all 200 certs at once. But rather,when
    the client cert chain is presented to you, you some how
    would match the chain with your list of trusted CAs (however you
    choose to manage it). One way to manage it is to index
    the PEMs using their distinguished name and look up based on that.
    It's probably about 50-70 lines of codes altogether.
    But not sure how you would tell Tomcat to use your trustmanager
    though. I think you have to also implement a TrustManagerFactory
    and then override JSSE with system property sun.SSL.trustmanager.type

Maybe you are looking for

  • 9300 showing MAIN Kern - Exec

    hi, I love my 9300 and proud to be 1 of its user. today morning my phone is just getting rebooted. not able to go to the main menu too.. It is showing as MAIN Kern - Exec Reason - 3 I have reset the handset couple of times but in vain... I had been t

  • Pass array to a stored procedure

    I have a comma delimited string that looks like this: 1,t,2,t,3,f,4,t So I want to parse threw ththis string I send and update the DB. The numbers are ID's and t and f is the other field. An example would be great

  • Print 6 Slides per Page

    Is it possible to have Keynote print 6 slides per page the way PowerPoint for Windows does (3 slides in each of two columns on the page), rather than 6 slides vertically along the left side of the page?

  • Datasync and domain Wide administration port problem

    Hi, After enabling domain wide administration port in WLP 8.1, wee start to see following exception on our managed servers log file. This happes in every mananaged server. Datasync.war is deployed only in adminserver as the manual says. We see this e

  • Preview won't open pictures....or anything

    So I randomly noticed just the other day that all my pictures on my computer won't open with Preview. They've randomly been set to open with Illustrator. The weirdest part is I can't even open the pictures with Preview even when I drag them to the pr