CAIQUM-8989: AIQUM services failed on windows after upgrade to 9.18 due to newer JDK deployment
Issue
- AIQUM services failed to start on windows after upgrade to 9.18 and above from 9.16P2 and below
- server.log:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool - 81) MSC000001: Failed to start service jboss.deployment.unit."dfm-app.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."dfm-app.war".undertow-deployment: java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable to get CN from the server certificate.
at org.wildfly.extension.undertow@27.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run
(UndertowDeploymentService.java:90) [wildfly-undertow-27.0.1.Final.jar:27.0.1.Final]
...
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable to get CN from the server certificate.
....
[stderr] (cluster-ems-configure-pool-15) Exception in thread "cluster-ems-configure-pool-15" com.netapp.dfm.collector.OcieException: com.onaro.commons.exception.ConfigurationException: Keystore was tampered with, or password was incorrect- Using elytronstore.ps1 for attempting to decrypt the password from tokens doesnt work as in the script runs without any outout
- Using credentialstore.jar file directly shows:
java -jar "C:\ProgramFiles\NetApp\ocum\lib\jeps\credentialstore.jar" -p "C:\ProgramFiles\NetApp\essentials\jboss\server\onaro\cert\server.keystore" -a jboss-t <token>
Exception in thread "main"java.lang.ExceptionInInitializerError
at com.netapp.dfm.common.lite.OcumPaths.getWindowsAppDataDir(OcumPaths.java:101)
at com.netapp.dfm.common.lite.OcumPaths.getLogDir(OcumPaths.java:138)
at com.netapp.jeps.common.LogDirectoryPropertyDefiner.getPropertyValue(LogDirectoryPropertyDefiner.java:23)
...
Caused by: java.lang.RuntimeException:java.lang.reflect.InaccessibleObjectException: Unable to make private staticnative long[]java.util.prefs.WindowsPreferences.WindowsRegOpenKey(long,byte[],int)accessible: module java.prefs does not "opens java.util.prefs" tounnamed module @23ceabc1
at com.netapp.dfm.common.lite.WindowsRegistry.<clinit>(WindowsRegistry.java:44)
... 22 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to makeprivate static native long[]java.util.prefs.WindowsPreferences.WindowsRegOpenKey(long,byte[],int)accessible: module java.prefs does not "opens java.util.prefs" tounnamed module @23ceabc1
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
...