I am trying to connect to a SAS-driven remote database from within R, using RJDBC. The first time I do a dbConnect
, I get an error:
Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],
: java.lang.NoClassDefFoundError: com/sas/net/crypto/CryptoException
When I do the dbConnect
a second time after the first call, it connects fine, and I get back an object of class JDBCConnection
.
I looked in the sas.core.jar
file (from the latest 94M2 SAS JDBC drivers), and can see CryptoException
listed in there. However, I am also curious why it was trying to throw a CryptoException
.
Question 1: How can I silently ignore the error on the first dbConnect
call?
Question 2: Why was it trying to throw a CryptoException
? What can I do to prevent this? (This may cancel question 1.)