interbase와 jdbc를 연동하려 하는데요 자꾸 오류가 납니다...
도대체 뭐가 잘못된건지 모르겠어요...
제가 초짜라...ㅠㅠ
일단 오류는 이렇게 납니다.
java.sql.SQLException: interbase.interclient.IBException: [interclient][interbase]connection rejected by remote interface
interbase.interclient.IBException: [interclient][interbase]connection rejected by remote interface
NO
at interbase.interclient.Connection.remote_ATTACH_DATABASE(Unknown Source)
at interbase.interclient.Connection.connect(Unknown Source)
at interbase.interclient.Connection.<init>(Unknown Source)
at interbase.interclient.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Jdbc.main(Jdbc.java:45)
그리고 제가 짠 소스는
public class Jdbc {
public static void main(String[] args) {
Connection con;
try {
Class.forName("interbase.interclient.Driver");
}
catch(ClassNotFoundException e){
System.out.println(e.getMessage());
}
try{
String url = "jdbc:interbase://localhost:3050/c:/Program Files/Borland/InterBase/examples/Database/employee.gdb";
con = DriverManager.getConnection(url,"SYSDBA","masterkey");
System.out.println("OK");
con.close();
}
catch(SQLException e){
System.out.println(e.getMessage());
e.printStackTrace();
System.out.println("NO");
}
}
}
이거거든요 일정의 간단한 테스트인데 도대체 오류가 왜 나는지 모르겠습니다
고수님들 도와주세요...초짜가 간절히 부탁드립니다....ㅠㅠ
|