java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • During startup, after splash screen ... [ERROR,SimpleApp,main] RuntimeException during startup org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lifecycleAdvisor' defined in class path resource [org/springframework/richclient/samples/simple/ctx/richclient-application-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler Caused by: java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler at org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack.registerExceptionHandler(AwtExceptionHandlerAdapterHack.java:33) at org.springframework.richclient.exceptionhandling.DefaultRegisterableExceptionHandler.registerExceptionHandler(DefaultRegisterableExceptionHandler.java:28) at org.springframework.richclient.application.config.ApplicationLifecycleAdvisor.afterPropertiesSet(ApplicationLifecycleAdvisor.java:83) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:238) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:697) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:521) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:345) at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:244) at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:152) at org.springframework.richclient.samples.simple.app.SimpleApp.main(SimpleApp.java:85)
    via by Kurt Battisti,
  • During startup, after splash screen ... [ERROR,SimpleApp,main] RuntimeException during startup org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lifecycleAdvisor' defined in class path resource [org/springframework/richclient/samples/simple/ctx/richclient-application-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler Caused by: java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler at org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack.registerExceptionHandler(AwtExceptionHandlerAdapterHack.java:33) at org.springframework.richclient.exceptionhandling.DefaultRegisterableExceptionHandler.registerExceptionHandler(DefaultRegisterableExceptionHandler.java:28) at org.springframework.richclient.application.config.ApplicationLifecycleAdvisor.afterPropertiesSet(ApplicationLifecycleAdvisor.java:83) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:238) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:697) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:521) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:345) at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:244) at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:152) at org.springframework.richclient.samples.simple.app.SimpleApp.main(SimpleApp.java:85)
    via by Kurt Battisti,
    • java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler at org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack.registerExceptionHandler(AwtExceptionHandlerAdapterHack.java:33) at org.springframework.richclient.exceptionhandling.DefaultRegisterableExceptionHandler.registerExceptionHandler(DefaultRegisterableExceptionHandler.java:28) at org.springframework.richclient.application.config.ApplicationLifecycleAdvisor.afterPropertiesSet(ApplicationLifecycleAdvisor.java:83) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:238) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:697) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:521) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:345) at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:244) at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:152) at org.springframework.richclient.samples.simple.app.SimpleApp.main(SimpleApp.java:85)
    No Bugmate found.