<?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: NSO java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4386977#M6255</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm neither an NSO expert, nor a Java genius, but I have the following suggestions / observations:&lt;BR /&gt;&lt;BR /&gt;- re-install Java / JDBC and upgrade if possible&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;Include&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;into your classpath&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- have you updated your VM lately? Make sure both the IDE and VM are both either x86 or x64&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;public class NoSuchPaddingException, extends GeneralSecurityException: This exception is thrown when a particular padding mechanism is requested but is not available in the environment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 17:20:34 GMT</pubDate>
    <dc:creator>Alexander Stevenson</dc:creator>
    <dc:date>2021-04-14T17:20:34Z</dc:date>
    <item>
      <title>NSO java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4312706#M6198</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;Does anyone come across such issue when used ios-xr ned connect device(NSO 5.2.3)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From device trace log only following shown:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;Failed to connect to device RR1: connection refused: javax/crypto/NoSuchPaddingException&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in ncs-java-vm.log file, error is point to&amp;nbsp; '&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException&lt;/FONT&gt;&lt;/EM&gt;' which shown in below.&lt;/P&gt;
&lt;P&gt;It's seems related with the java properties, but nobody changed it, a bit wired...&lt;BR /&gt;Appreciate it if someone can&amp;nbsp;&lt;SPAN&gt;give me some ideas, thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;java.lang.NoClassDefFoundError: javax/crypto/NoSuchPaddingException&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at com.tailf.packages.ned.iosxr.IosxrNedCli.setupInstance(IosxrNedCli.java:813)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at com.tailf.packages.ned.nedcom.NedComCliBase.prepareNewInstance(NedComCliBase.java:2966)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at com.tailf.packages.ned.nedcom.NedComCliBase.newConnection(NedComCliBase.java:2747)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at com.tailf.ned.NedWorker.dorun(NedWorker.java:1518)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at com.tailf.ned.NedWorker.run(NedWorker.java:316)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Caused by: java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:382)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;...&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 03:08:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4312706#M6198</guid>
      <dc:creator>yongz2</dc:creator>
      <dc:date>2021-03-24T03:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: NSO java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4386977#M6255</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm neither an NSO expert, nor a Java genius, but I have the following suggestions / observations:&lt;BR /&gt;&lt;BR /&gt;- re-install Java / JDBC and upgrade if possible&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;Include&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;.&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;into your classpath&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- have you updated your VM lately? Make sure both the IDE and VM are both either x86 or x64&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;public class NoSuchPaddingException, extends GeneralSecurityException: This exception is thrown when a particular padding mechanism is requested but is not available in the environment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 17:20:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4386977#M6255</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2021-04-14T17:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: NSO java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4387257#M6258</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your&amp;nbsp;&lt;SPAN&gt;suggestions, the issue fixed just by restarting NSO, not sure why...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NSO is configure as HA and after re-install them from ncs-backup, upper error appeared. It's seems that there are some wrong operations during nso HA reinstall from backup, not sure, but after restart the NSO, issue fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The root cause would be related to&amp;nbsp;&lt;SPAN&gt;java properties or nso didn't get correct properties after reinstall,&amp;nbsp;anyhow, thanks for your&amp;nbsp;suggestions!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 04:27:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-java-lang-classnotfoundexception-javax-crypto/m-p/4387257#M6258</guid>
      <dc:creator>yongz2</dc:creator>
      <dc:date>2021-04-15T04:27:21Z</dc:date>
    </item>
  </channel>
</rss>

