03-23-2021 06:56 PM - edited 03-23-2021 08:08 PM
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)
...
Solved! Go to Solution.
04-14-2021 10:20 AM
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!
04-14-2021 10:20 AM
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!
04-14-2021 09:27 PM
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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide