cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
751
Views
10
Helpful
2
Replies

NSO java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException

yongz2
Cisco Employee
Cisco Employee

Dear All,

Does anyone come across such issue when used ios-xr ned connect device(NSO 5.2.3)?

 

From device trace log only following shown:

Failed to connect to device RR1: connection refused: javax/crypto/NoSuchPaddingException

 

But in ncs-java-vm.log file, error is point to  'java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException' which shown in below.

It's seems related with the java properties, but nobody changed it, a bit wired...
Appreciate it if someone can give me some ideas, thanks!


java.lang.NoClassDefFoundError: javax/crypto/NoSuchPaddingException
at com.tailf.packages.ned.iosxr.IosxrNedCli.setupInstance(IosxrNedCli.java:813)
at com.tailf.packages.ned.nedcom.NedComCliBase.prepareNewInstance(NedComCliBase.java:2966)
at com.tailf.packages.ned.nedcom.NedComCliBase.newConnection(NedComCliBase.java:2747)
at com.tailf.ned.NedWorker.dorun(NedWorker.java:1518)
at com.tailf.ned.NedWorker.run(NedWorker.java:316)
Caused by: java.lang.ClassNotFoundException: javax.crypto.NoSuchPaddingException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 

 

1 Accepted Solution

Accepted Solutions

Alex Stevenson
Cisco Employee
Cisco Employee

Hello,

 

I'm neither an NSO expert, nor a Java genius, but I have the following suggestions / observations:

- re-install Java / JDBC and upgrade if possible

Include . into your classpath

- have you updated your VM lately? Make sure both the IDE and VM are both either x86 or x64

- public class NoSuchPaddingException, extends GeneralSecurityException: This exception is thrown when a particular padding mechanism is requested but is not available in the environment.

 

Hope this helps!

View solution in original post

2 Replies 2

Alex Stevenson
Cisco Employee
Cisco Employee

Hello,

 

I'm neither an NSO expert, nor a Java genius, but I have the following suggestions / observations:

- re-install Java / JDBC and upgrade if possible

Include . into your classpath

- have you updated your VM lately? Make sure both the IDE and VM are both either x86 or x64

- public class NoSuchPaddingException, extends GeneralSecurityException: This exception is thrown when a particular padding mechanism is requested but is not available in the environment.

 

Hope this helps!

Hi Alex,

 

Thanks for your suggestions, the issue fixed just by restarting NSO, not sure why...

 

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.

 

The root cause would be related to java properties or nso didn't get correct properties after reinstall, anyhow, thanks for your suggestions!

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: