<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting a CryptoException class not found error when connecting with JDBC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/306736#M266467</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it please possible to describe the steps you used to resolve this problem in more detail.&lt;/P&gt;&lt;P&gt;Specifically, what lines of code should one add in RStudio to resolve this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 09:25:40 GMT</pubDate>
    <dc:creator>NickMaki</dc:creator>
    <dc:date>2016-10-24T09:25:40Z</dc:date>
    <item>
      <title>Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195628#M266460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted a question on StackOverflow regarding this, and someone referred me to this site, so I'll post here as well.&lt;/P&gt;&lt;P&gt;StackOverflow: &lt;A href="http://stackoverflow.com/q/31207186/2038785" style="font-size: 10pt; line-height: 1.5em;" title="http://stackoverflow.com/q/31207186/2038785"&gt;r - Java exception error during RJDBC::dbConnect: how to silently ignore? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as you can read there, I am doing a dbConnect using a JDBC driver (specifically the 94M2 version), within the R environment using RJDBC. However, at the first connect, I get a class not found error for com.sas.net.crypto.CryptoException. My classpath contains sas.core.jar and sas.intrnet.javatools.jar. I can see the CryptoException class in the sas.core.jar though. A second attempt to connect works fine though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering two things:&lt;/P&gt;&lt;P&gt;- why would it try to throw a CryptoException? Am I missing some cryptographic libraries?&lt;/P&gt;&lt;P&gt;- why does it not see it in sas.core.jar?, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 03:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195628#M266460</guid>
      <dc:creator>wthielen</dc:creator>
      <dc:date>2015-07-04T03:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195629#M266461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see , such question should be submitted to sas support.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm" title="http://support.sas.com/ctx/supportform/createForm"&gt;Technical Support Form&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195629#M266461</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-04T12:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195630#M266462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to perform a SAS/Share or SAS/IOM connection?&amp;nbsp; Share you connection string and any set properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195630#M266462</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-07-04T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195631#M266463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies. I am using a jdbc:sharenet:// URL to the WRDS cloud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code can be found on my GitHub: &lt;A href="https://github.com/wthielen/wrds/blob/7edfbfe89ddc329618be72e591cc0bd50e294ea4/R/wrds.R#L47" title="https://github.com/wthielen/wrds/blob/7edfbfe89ddc329618be72e591cc0bd50e294ea4/R/wrds.R#L47"&gt;wrds/wrds.R at 7edfbfe89ddc329618be72e591cc0bd50e294ea4 · wthielen/wrds · GitHub&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195631#M266463</guid>
      <dc:creator>wthielen</dc:creator>
      <dc:date>2015-07-04T12:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195632#M266464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to add additional jars into your classpath.&amp;nbsp; Also, SAS may require a specific version of the JRE.&amp;nbsp; I agree that you might want to track this with SAS Tech Support for the best advice, and anything you can do to create a standalone example might be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195632#M266464</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-07-06T14:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195633#M266465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are not getting the results you want from .jaddClassPath() because a JVM has not yet been initiated.&amp;nbsp; So, the sas.core.jar is not in the classpath for RJDBC.&amp;nbsp; Try call .jinit() before .jaddClassPath and check what you have by using print(.jclassPath()) if you receive the error again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 15:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195633#M266465</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-07-06T15:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195634#M266466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, FriedEgg! Adding the .jinit() fixed the issue. If you have a StackOverflow account, please add the same answer there, and I'll accept it as the answer. Otherwise, I'll do it. Please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/195634#M266466</guid>
      <dc:creator>wthielen</dc:creator>
      <dc:date>2015-07-07T13:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/306736#M266467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it please possible to describe the steps you used to resolve this problem in more detail.&lt;/P&gt;&lt;P&gt;Specifically, what lines of code should one add in RStudio to resolve this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 09:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/306736#M266467</guid>
      <dc:creator>NickMaki</dc:creator>
      <dc:date>2016-10-24T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a CryptoException class not found error when connecting with JDBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/328062#M266468</link>
      <description>&lt;P&gt;Hello --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I'm late to the party. This error message can mean one of a few things in the context of an R + RJDBC + rJava --&amp;gt; JDBC --&amp;gt; SAS/SHARE connection, but each&amp;nbsp;centers around an inabiity for the stack to properly find the component drivers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Be sure you have downloaded BOTH&amp;nbsp;required SAS JDBC drivers (&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;sas.core.jar&lt;/FONT&gt; and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sas.intrnet.javatools.jar&amp;nbsp;&lt;/FONT&gt;) to the same directory on your machine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; Be sure you have an &lt;FONT face="courier new,courier"&gt;.Renviron&lt;/FONT&gt; file that explictly lists both of these files, in appropriate syntax for your platform. Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mac:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CLASSPATH="/Users/my_user/Documents/JDBC_Drivers/sas.core.jar:/Users/my_user/Documents/JDBC_Drivers/sas.intrnet.javatools.jar"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CLASSPATH="C:/Users/my_user/Documents/JDBC_Drivers/sas.core.jar;C:/Users/my_user/Documents/JDBC_Drivers/sas.intrnet.javatools.jar"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the semicolon delimiter for the Windows version!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; If you are connecting to &lt;A href="https://wrds-web.wharton.upenn.edu/" target="_self"&gt;WRDS&lt;/A&gt;, the &lt;FONT face="courier new,courier"&gt;.Rprofile&lt;/FONT&gt; code you were given (search the WRDS website for "Using R with WRDS") includes a path to &lt;FONT face="courier new,courier"&gt;sas.intrnet.javatools.jar.&lt;/FONT&gt; Make sure you update this path to reflect where you have actually placed this driver! It should be the same as in your &lt;FONT face="courier new,courier"&gt;.Renviron&lt;/FONT&gt; file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; If you are using RStudio, be sure that you have placed your &lt;FONT face="courier new,courier"&gt;.Renviron&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;.Rprofile&lt;/FONT&gt; files in a location that RStudio knows to look. This directory is controlled by the preference setting &lt;STRONG&gt;General &amp;gt; Default working directory (when not in a project)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bonus Info!&lt;/STRONG&gt; Be sure you are using RJDBC version&amp;nbsp;&lt;SPAN&gt;0.2-5 or later!&amp;nbsp;Version previous to 0.2-5 experienced a major bug that caused queries resulting in more than 32767 observations to return zero observations instead!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps someone!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-CryptoException-class-not-found-error-when-connecting/m-p/328062#M266468</guid>
      <dc:creator>andf</dc:creator>
      <dc:date>2017-01-27T16:50:20Z</dc:date>
    </item>
  </channel>
</rss>

