Hi!
Habe Probleme beim Verbindungsaufbau in dieser Zeile:
Komme nicht über conn=..... hinüber.
Bekomme immer folgende Exception, die nicht im Catch gefangen wird:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at oracle.security.o3logon.C0.r(C0)
at oracle.security.o3logon.C0.l(C0)
at oracle.security.o3logon.C1.c(C1)
at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)
at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Database.<init>(Database.java:13)
at Database.main(Database.java:152)
Bitte um Hilfe!
LG, Klaus
Habe Probleme beim Verbindungsaufbau in dieser Zeile:
Code:
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.172.128:1521:oracle", "test", "*****");
}
catch (ClassNotFoundException e) {
System.out.println("Driver not found");
}
catch (SQLException e) {
while (e != null) {
System.out.println(i + ".:\nMessage: " + e.getMessage()
+ "\nSQLState: " + e.getSQLState() + "\nErrorCode: "
+ e.getErrorCode());
e = e.getNextException();
i++;
}
}
Komme nicht über conn=..... hinüber.
Bekomme immer folgende Exception, die nicht im Catch gefangen wird:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at oracle.security.o3logon.C0.r(C0)
at oracle.security.o3logon.C0.l(C0)
at oracle.security.o3logon.C1.c(C1)
at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)
at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Database.<init>(Database.java:13)
at Database.main(Database.java:152)
Bitte um Hilfe!
LG, Klaus