Problem Note 59148: SAS® Infrastructure for Risk Management and related components might fail to start and return "Exception encountered during context initialization"
SAS Infrastructure for Risk Management 3.2 and components such as SAS® Firmwide Risk for Solvency II might fail to start and return various errors. The problem occurs in situations where access to external Internet resources is restricted.
Errors and exceptions like the following occur in the server logs:
WARN (localhost-startStop-2) [org.springframework.web.context.support.XmlWebApplicationContext]
Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'jobFlowDataAccessService': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.hibernate.SessionFactory
com.sas.solutions.risk.irm.server.persistence.JobFlowDataAccessService.sessionFactory;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/spring-config/webapp-config.xml]: Invocation of init method failed;
nested exception is org.hibernate.HibernateException: Could not parse configuration
Caused by: org.dom4j.DocumentException: Connection refused: connect Nested
exception: Connection refused: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1576)
< etc >
Error starting IRMServer web application
INFO (localhost-startStop-1) [org.apache.catalina.startup.HostConfig] Deploying configuration
descriptor /meta/Lev1/Web/WebAppServer/SASServer8_1/conf/Catalina/localhost/SASIRMServer.xml
ERROR (localhost-startStop-1) [org.apache.catalina.core.StandardContext] Error listenerStart
ERROR (localhost-startStop-1) [org.apache.catalina.core.StandardContext] Context [/SASIRMServer]
startup failed due to previous errors
The problem occurs because Hibernate is loading the wrong document type definition (DTD).
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Infrastructure for Risk Management | Microsoft® Windows® for x64 | 3.2 | 3.3 | 9.4 TS1M3 | 9.4 TS1M4 |
Linux for x64 | 3.2 | 3.3 | 9.4 TS1M3 | 9.4 TS1M4 |
*
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.
"Exception encountered during context initialization" and "Error creating bean" occur with SAS Infrastructure for Risk Management and SAS® Firmwide Risk for Solvency II. The issue occurs because Hibernate is loading the wrong DTD.
Type: | Problem Note |
Priority: | high |
Topic: | Analytics ==> Financial Analysis
|
Date Modified: | 2016-10-18 09:34:04 |
Date Created: | 2016-10-12 10:31:59 |