After upgrading the system agent from 11.5/12+ to 12.1.1 SP1 the system agent fails to start after having modified agentparm.txt to use OpenJDK 11/17.
Following error messages are noticed
From defaultlog_agent.log
06/20/2023 09:46:31.564+0300 1 main.MainThread.CybRunnerPluginDriver.runApplication[:126] - CybRunnerPluginDriver terminated:
java.lang.IllegalArgumentException: Invalid key length
at cybermation.library.security.j.a(j.java:103)
at cybermation.library.security.j.b(j.java:215)
at cybermation.library.security.j.a(j.java:81)
at cybermation.library.security.m.a(m.java:189)
at cybermation.plugins.runner.CybRunnerLicense.getVerbsSubverbs(CybRunnerLicense.java:46)
at cybermation.plugins.runner.CybRunnerPlugin$SubscriptionInfo.getVerbs(CybRunnerPlugin$SubscriptionInfo.java:107)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager$SubscriptionInfo.<init>(CybRMIExternalPluginBaseManager$SubscriptionInfo.java:1116)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager.setSubscriptionInfo(CybRMIExternalPluginBaseManager.java:1007)
at cybermation.plugins.runner.CybRunnerPlugin.<init>(CybRunnerPlugin.java:51)
at cybermation.plugins.runner.CybRunnerPluginDriver.runApplication(CybRunnerPluginDriver.java:101)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(CybPluginManager.java:343)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:520)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:340)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:510)
06/20/2023 09:46:31.566+0300 1 main.MainThread.CybAgentDriver.runApplication[:408] - cybermation.library.plugins.CybPluginException: Plugin instantiation failed
at cybermation.agent.plugins.manager.CybPluginManager.a(CybPluginManager.java:355)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:520)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:340)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:510)
Caused by: java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(CybPluginManager.java:343)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:520)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:340)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:510)
Caused by: cybermation.library.plugins.CybPluginInitializationException: CybRunnerPluginDriver terminated
at cybermation.plugins.runner.CybRunnerPluginDriver.runApplication(CybRunnerPluginDriver.java:127)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(CybPluginManager.java:343)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:520)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:340)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:510)
Caused by: java.lang.IllegalArgumentException: Invalid key length
at cybermation.library.security.j.a(j.java:103)
at cybermation.library.security.j.b(j.java:215)
at cybermation.library.security.j.a(j.java:81)
at cybermation.library.security.m.a(m.java:189)
at cybermation.plugins.runner.CybRunnerLicense.getVerbsSubverbs(CybRunnerLicense.java:46)
at cybermation.plugins.runner.CybRunnerPlugin$SubscriptionInfo.getVerbs(CybRunnerPlugin$SubscriptionInfo.java:107)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager$SubscriptionInfo.<init>(CybRMIExternalPluginBaseManager$SubscriptionInfo.java:1116)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager.setSubscriptionInfo(CybRMIExternalPluginBaseManager.java:1007)
at cybermation.plugins.runner.CybRunnerPlugin.<init>(CybRunnerPlugin.java:51)
at cybermation.plugins.runner.CybRunnerPluginDriver.runApplication(CybRunnerPluginDriver.java:101)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(CybPluginManager.java:343)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:520)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:340)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:510)
From nohup.stderr
java.lang.ClassNotFoundException: jakarta.xml.bind.DatatypeConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at cybermation.library.xml.DatatypeConverter.<clinit>(Unknown Source)
at cybermation.library.security.v.<clinit>(Unknown Source)
at cybermation.library.security.m.a(Unknown Source)
at cybermation.plugins.runner.CybRunnerLicense.getVerbsSubverbs(Unknown Source)
at cybermation.plugins.runner.CybRunnerPlugin$SubscriptionInfo.getVerbs(Unknown Source)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager$SubscriptionInfo.<init>(Unknown Source)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager.setSubscriptionInfo(Unknown Source)
at cybermation.plugins.runner.CybRunnerPlugin.<init>(Unknown Source)
at cybermation.plugins.runner.CybRunnerPluginDriver.runApplication(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(Unknown Source)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(Unknown Source)
at cybermation.agent.CybAgentDriver.runApplication(Unknown Source)
at cybermation.agent.CybAgentDriver.main(Unknown Source)
java.lang.NullPointerException
at cybermation.library.xml.DatatypeConverter.printHexBinary(Unknown Source)
at cybermation.library.security.v.<clinit>(Unknown Source)
at cybermation.library.security.m.a(Unknown Source)
at cybermation.plugins.runner.CybRunnerLicense.getVerbsSubverbs(Unknown Source)
at cybermation.plugins.runner.CybRunnerPlugin$SubscriptionInfo.getVerbs(Unknown Source)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager$SubscriptionInfo.<init>(Unknown Source)
at cybermation.plugins.library.base.CybRMIExternalPluginBaseManager.setSubscriptionInfo(Unknown Source)
at cybermation.plugins.runner.CybRunnerPlugin.<init>(Unknown Source)
at cybermation.plugins.runner.CybRunnerPluginDriver.runApplication(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at cybermation.agent.plugins.manager.CybPluginManager.a(Unknown Source)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(Unknown Source)
at cybermation.agent.CybAgentDriver.runApplication(Unknown Source)
at cybermation.agent.CybAgentDriver.main(Unknown Source)
Agent failed to initialize ...Plugin instantiation failed
Release: 12.1.1
Component: Workload Automation System Agent
System Agent 11.5/12 runs with JRE version 1.8.
During upgrade the system agent performs several things of config that is required to be able to run with OpenJDK 11/17.
You would need to chose OpenJDK 11/17 during upgrade/installation when you want to use OpenJDK 11/17 instead of JRE 1.8.
Incase, if you want to replace the JRE with 1.8 to JAVA 11/17 after upgrade to 12.1.1, as a workaround you may follow below steps.
1) Stop the Agent and take backup of agentparam.txt file
2) Update the oscomponent.classpath in agentparam.txt as below.
oscomponent.classpath=jars/*.jar:jars/ext/*
To
oscomponent.classpath=jars/*.jar:jars/ext/*:jars/ext/java1x/*.jar
3) Start the Agent