개발 블로그

심각: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]java.lang.ArrayIndexOutOfBoundsException: 22282 본문

오류 해결

심각: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]java.lang.ArrayIndexOutOfBoundsException: 22282

토도 2023. 9. 25. 15:28

심각: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
java.lang.ArrayIndexOutOfBoundsException: 22282

INFO : org.springframework.web.context.support.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Mon Sep 25 03:21:14 BRT 2023]; root of context hierarchy
WARN : org.springframework.web.context.support.XmlWebApplicationContext - Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon Sep 25 03:21:14 BRT 2023]; root of context hierarchy

 

DB 연결하는데 이런 오류가 나서 

 

pom.xml 버전을 

 

<properties>
<java-version>1.6</java-version>
<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>

 

 

<properties>
<java-version>1.6</java-version>
<org.springframework-version>4.3.4.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>

 

위와 같이 4.3.4.RELEASE로 바꿔주니 오류가 해결 되었다

 

구글링 해보니 이 오류는 버전이 원인이 아니라 다양한 원인으로도 나오는 오류던데 
어쨋든 이 오류가 또 나오게 되면 프레임 워크 버전을 확인해보자