- This topic has 8 replies, 5 voices, and was last updated 15 years, 5 months ago by
support-shalini.
-
AuthorPosts
-
pavanattitudeMemberHi,
I have downloaded MyEclipse 6.6.I am trying to connect to oracle database through MyEclipse Database explorer.But i am not able to connect.I am getting the below exception.
IOException:The network adapter could not establish the connection.
And also when I try to connect to MyEclipse Derby database,I am getting the below exception:
java.net.SocketException: Error connecting to server localhost on port 1527 with message permission denied:connect
Note:I am connect to oracle database,through SQL Command prompt.I am using windows vista OS.
Any help will be greatly appreciated.[/img]
December 1, 2008 at 1:24 pm #291469
rmcvayMemberCould Vista’s firewall be blocking the Java running ME?
December 1, 2008 at 1:25 pm #291470
rmcvayMemberAlso, the Oracle is running on your Vista PC, too, right?
December 3, 2008 at 6:19 am #291538
pavanattitudeMemberThanks a lot for your response .
yes,Oracle is running on my PS on OS,windows vista.
What i suspect is vista’s firewall might be blocking the things.Could you send me on how to overcome this..
December 3, 2008 at 11:39 pm #291607
pavanattitudeMemberToday,I tried to run the below standalone application from MyEclipse(trying to connect MYSql database)
import java.sql.Connection;
import java.sql.DriverManager;public class Testmysql {
public static void main(String[] args)throws Exception {
Class.forName(“com.mysql.jdbc.Driver”);
Connection conn=DriverManager.getConnection(“jdbc:mysql://localhost/test”, “root”, “admin”);
System.out.println(conn);
}
}I got the below exception:
Exception in thread “main” com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.SocketException: Permission denied: connectSTACKTRACE:
java.net.SocketException: java.net.SocketException: Permission denied: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:150)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:270)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2635)
at com.mysql.jdbc.Connection.<init>(Connection.java:1525)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:260)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at tetemy.main(tetemy.java:14)** END NESTED EXCEPTION **
.
The same proggrame i tried to run from command prompt,then i am able to run the proggram successfully,in this case i am able to print the connection object
I am using Windows vista(Operating System).Please guide me on how to overcome this problem.I am facing this problem from months.
Any help will be greatly appreciated.
December 21, 2009 at 1:22 am #304890
revanthgMemberThis message has not been recovered.
December 21, 2009 at 10:01 pm #304915
support-shaliniMemberThis message has not been recovered.
February 4, 2010 at 5:17 am #305828
vishwaroopMemberThis message has not been recovered.
February 4, 2010 at 9:52 pm #305851
support-shaliniMemberThis message has not been recovered.
-
AuthorPosts