Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2005, 01:13 AM
Registered User
 
Join Date: Mar 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Stephen Lam
Default Java Compliation Error !!

Dear all,

How are you. I have problem cannot solve.
Please help me to solve the problem. :-)

I capture the error message here.

What is
localhost:3306 port running??
I mySQL database is set to 3306.

Code:
SecureConnectionServerMain.connect(): {user=projava, password=sasquatch}
Trying to connect to: rmi://localhost:1099/SecureDriver
Security manager set to java.rmi.RMISecurityManager@121f1d
[u]java.sql.SQLException: Communication failure during handshake. Is there a server
 running on localhost:3306?</u>
        at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:275)
        at org.gjt.mm.mysql.Connection.<init>(Connection.java:230)
        at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at com.isnetworks.crypto.database.server.SimpleDatasourceManager$Datasou
rce.getConnection(SimpleDatasourceManager.java:124)
        at com.isnetworks.crypto.database.server.SimpleDatasourceManager.getConn
ection(SimpleDatasourceManager.java:47)
        at com.isnetworks.crypto.database.server.SecureConnectionServerImpl.getC
onnection(SecureConnectionServerImpl.java:74)
        at com.isnetworks.crypto.database.server.SecureConnectionServerImpl.getC
onnection(SecureConnectionServerImpl.java:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
        at java.lang.Thread.run(Thread.java:534)
Stephen
 
Old April 13th, 2005, 09:19 PM
Authorized User
 
Join Date: Nov 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

please show part og your code

as sometime only error message isn't helpful






Similar Threads
Thread Thread Starter Forum Replies Last Post
Java IO error bb1234_00 Java Basics 2 March 26th, 2007 07:25 AM
Java Script error? Manoj_21 ASP.NET 1.0 and 1.1 Basics 1 August 8th, 2006 09:40 AM
tomcat error: using java beans rus_1496 Apache Tomcat 6 February 15th, 2005 08:18 PM
Error With Java Mail RajeshGudimetla J2EE 1 December 16th, 2004 01:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.