Hi there,
I have an applet which is using JDBC and it seems to work fine, but I need
to enabled encryption on my JDBC Connection. When I set the properties to
enable encryption I'll get the following error message:
TNS-12645: Parameter does not exist.
The code is quit simple. Compared with the examples at Oracle's site I can't
see any differences and I have even tried with different algorithms.
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a
96654/advanc.htm#1021375
Neither the stacktrace nor the log files are saying which parameter it is.
Does any one have an idea about it?
I hope for a soon reply.
Thanks in regards,
Jess
- code snip ---
java.sql.Connection con = null;
Class.forName("oracle.jdbc.driver.OracleDriver");
java.sql.DriverManager.registerDriver (new
oracle.jdbc.driver.OracleDriver());
int level = AnoServices.REQUESTED; int integriLevel =
AnoServices.REQUESTED;
java.util.Properties prop = new java.util.Properties();
prop.put("oracle.net.encryption_client",
Service.getLevelString(level));
prop.put("oracle.net.encryption_types_client", "( RC4_56 )");
prop.put("oracle.net.crypto_checksum_client",
Service.getLevelString(integriLevel));
prop.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
prop.put("user", Session.DBUSR);
prop.put("password", Session.DBPWD);
System.out.println(prop);
con = java.sql.DriverManager.getConnection(Session.DBURL, prop);
- stacktrace ---
{user=NNVA1, password=NNVA1,
oracle.net.encryption_types_client=RC4_56,
oracle.net.encryption_client=REQUESTED}
java.sql.SQLException: Oracle Error: ORA-12645
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at CacheTask.getConnection(CacheTask.java:49)
at CacheTask.<init>(CacheTask.java:22)
at RapportTypeTask.<init>(RapportTypeTask.java:8)
at RapporterForm.cacheRapporter(RapporterForm.java:3441)
at RapporterForm.init(RapporterForm.java:2594)
at Rapporter.init(Rapporter.java:38)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Received on Tue Nov 12 2002 - 13:02:04 CST