cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
810
Views
0
Helpful
2
Replies

reload cisco-iosxr-cli-7.12.4 package failed

dongwi
Level 1
Level 1

Hi, Team 

 

I try to use the cisco-iosxr-cli-7.12.4 ned with ncs 5.2 major version, but it reload failed with info:

 

admin@ncs# packages reload force

>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has been cancelled.
Error: Internal error: {failed,
{recompile_needed,
"./state/packages-in-use/1/cisco-iosxr-cli-7.12/load-dir/tailf-ned-secrets.fxs"}}

 

In order to slove this problem, I rebuild the ned with ncs 5.2, and reload again. but it fails again.

admin@ncs# packages reload force
reload-result {
package cisco-iosxr-cli-7.12
result false
info [LOAD_PACKAGE[java.lang.reflect.InvocationTargetException]]
}

 

NCS version 

[root@nso logs]# ncs --version
5.2.0.3

 

java version:

[root@nso neds]# java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK Server VM (build 25.222-b10, mixed mode)

 

Can anyone guide me to slove it, thanks.

 

Dong

 

 

2 Replies 2

dongwi
Level 1
Level 1
From java-vm.log, it seems a NullPointerException.

<ERROR> 19-Sep-2019::16:12:22.856 NedMuxManager JVM-Launcher: - Exception while executing an EXCEPTION transition for exception java.lang.reflect.InvocationTargetException
com.tailf.ncs.NcsException: java.lang.reflect.InvocationTargetException
at com.tailf.ncs.ctrl.AbstractPDEntry.load(AbstractPDEntry.java:255)
at com.tailf.ncs.ctrl.AbstractPDEntry$1.execute(AbstractPDEntry.java:84)
at com.tailf.ncs.ctrl.fsm.FSM$Transition.execute(FSM.java:286)
at com.tailf.ncs.ctrl.fsm.FSM.event(FSM.java:174)
at com.tailf.ncs.ctrl.NedMuxManager.loadPackageEvent(NedMuxManager.java:167)
at com.tailf.ncs.NcsMain.loadPackage(NcsMain.java:955)
at com.tailf.ncs.NcsMain.access$1000(NcsMain.java:88)
at com.tailf.ncs.NcsMain$8.execute(NcsMain.java:302)
at com.tailf.ncs.ctrl.fsm.FSM$Transition.execute(FSM.java:286)
at com.tailf.ncs.ctrl.fsm.FSM.event(FSM.java:174)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:693)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
at com.tailf.packages.ned.nedcom.NedComCliBase.getIdentity(NedComCliBase.java:215)
at com.tailf.packages.ned.nedcom.NedComCliBase.copyNedMetaData(NedComCliBase.java:402)
at com.tailf.packages.ned.nedcom.NedComCliBase.<init>(NedComCliBase.java:788)
at com.tailf.packages.ned.iosxr.IosxrNedCli.<init>(IosxrNedCli.java:232)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.tailf.ncs.ctrl.AbstractPDEntry.load(AbstractPDEntry.java:246)
... 12 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.tailf.packages.ned.nedcom.NedComCliBase.getIdentity(NedComCliBase.java:211)
... 21 more
Caused by: com.tailf.ned.NedException: Could not retrieve ned-id from package-meta-data.xml for ned 'com.tailf.packages.ned.iosxr.IosxrNedCli'.
at com.tailf.ned.NedConnectionBase.retrieveIdentity(NedConnectionBase.java:688)
... 26 more
Caused by: java.lang.NullPointerException
at com.tailf.ned.NedConnectionBase.retrieveIdentity(NedConnectionBase.java:683)
... 26 more
<ERROR> 19-Sep-2019::16:12:22.856 NcsMain JVM-Launcher: - Error in LOAD_PACKAGE
com.tailf.ncs.ctrl.NcsCtrlException: LOAD_PACKAGE[java.lang.reflect.InvocationTargetException]
at com.tailf.ncs.ctrl.MuxManager.addToDeployException(MuxManager.java:37)
at com.tailf.ncs.NcsMain.loadPackage(NcsMain.java:964)
at com.tailf.ncs.NcsMain.access$1000(NcsMain.java:88)
at com.tailf.ncs.NcsMain$8.execute(NcsMain.java:302)
at com.tailf.ncs.ctrl.fsm.FSM$Transition.execute(FSM.java:286)
at com.tailf.ncs.ctrl.fsm.FSM.event(FSM.java:174)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:693)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.lang.Thread.run(Thread.java:748)
<ERROR> 19-Sep-2019::16:12:22.857 NcsMain JVM-Launcher: - catched exception in mainLoop
com.tailf.ncs.ctrl.NcsCtrlException: LOAD_PACKAGE[java.lang.reflect.InvocationTargetException]
at com.tailf.ncs.ctrl.MuxManager.addToDeployException(MuxManager.java:37)
at com.tailf.ncs.NcsMain.loadPackage(NcsMain.java:964)
at com.tailf.ncs.NcsMain.access$1000(NcsMain.java:88)
at com.tailf.ncs.NcsMain$8.execute(NcsMain.java:302)
at com.tailf.ncs.ctrl.fsm.FSM$Transition.execute(FSM.java:286)
at com.tailf.ncs.ctrl.fsm.FSM.event(FSM.java:174)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:693)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.lang.Thread.run(Thread.java:748)

davmoral
Cisco Employee
Cisco Employee

Hi,

 

can you please confirm if:

  1. Compilation completed successfully
  2. You deleted the previous package from packages folder before copying the newly compiled package?