Problem Note 68909: The SAS® Environment Manager Configuration step of the Load Content stage fails with "…Failed To create ev initial User and Role…"
SAS® Deployment Wizard might fail during the Load Content stage of the configuration process at the SAS Environment Manager Configuration step with a "java.lang.Exception: Failed To create ev initial User and Role" error message. An example of the message is shown here:
The vfabrchyperc_loadContent log, which is listed in the error message, contains a message that is similar to the following:
2022-02-09 13:54:48,911 [main] INFO com.sas.appserver.utils.AntProcessInvoker - Working Directory: /sas/config/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hqapi1-client-6.0.2/bin
[exec] Error running command: An unexpected error occurred
[exec] Result: 255
In addition, the SAS Environment Manager server.log file contains error messages that are similar to the following. This log file is located in SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/logs/:
09-02-2022 13:55:36,863 EST ERROR [main] [org.springframework.web.context.ContextLoader@331] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dynamicGroupManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.hyperic.hq.management.server.session.TimedDynamicGroupRecalculator com.hyperic.hq.management.server.session.DynamicGroupManagerImpl.recalculator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TimedDynamicGroupRecalculator' defined in URL [jar:file:/sas/config/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hq-engine/hq-server/webapps/ROOT/WEB-INF/lib/hqee-server-5.8.0.jar!/com/hyperic/hq/management/server/session/TimedDynamicGroupRecalculator.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.hyperic.hq.management.server.session.TimedDynamicGroupRecalculator]: Constructor threw exception; nested exception is java.lang.InstantiationError: org.quartz.JobDetail
This issue affects any SAS Software Depot with a 22w04 release. These errors indicate that the SAS Environment Manager server is not functioning correctly due to the presence of the quartz-2.3.2.jar file. When the server is not functioning, the hqapi.sh script that runs during the Load Content configuration step is failing to connect, which in turn causes the "Failed To create ev initial User and Role" error.
There is a workaround for this issue:
- Stop the SAS Environment Manager server:
SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/bin/hq-server.sh stop
- Use the following command to access the lib directory:
cd SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hq-engine/hq-server/webapps/ROOT/WEB-INF/lib
- In the lib directory, locate the quartz-2.3.2.jar file and move the file outside of the SAS file structure.
- Restart the SAS Environment Manager server:
SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/bin/hq-server.sh start
- Wait about 10 minutes and then select Retry in the "Failed To create ev initial User and Role" error message.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Environment Manager | 64-bit Enabled AIX | 2.5_M4 | 2.5_M5 | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled Solaris | 2.5_M4 | 2.5_M5 | 9.4 TS1M7 | 9.4 TS1M8 |
HP-UX IPF | 2.5_M4 | 2.5_M5 | 9.4 TS1M7 | 9.4 TS1M8 |
Linux for x64 | 2.5_M4 | 2.5_M5 | 9.4 TS1M7 | 9.4 TS1M8 |
Solaris for x64 | 2.5_M4 | 2.5_M5 | 9.4 TS1M7 | 9.4 TS1M8 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The Load Content stage of a configuration in SAS® Deployment Wizard might fail during the SAS Environment Manager Configuration step with "java.lang.Exception: Failed To create ev initial User and Role" and the server.log file shows a "java.lang.InstantiationError: org.quartz.JobDetail" error.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2023-02-23 14:01:55 |
Date Created: | 2022-02-10 16:48:43 |