java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler

Spring JIRA | Kurt Battisti | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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)

    Spring JIRA | 1 decade ago | Kurt Battisti
    java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler
  2. 0

    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)

    Spring JIRA | 1 decade ago | Kurt Battisti
    java.lang.IllegalStateException: The exception handler is already set with sun.awt.exception.handler

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The exception handler is already set with sun.awt.exception.handler

      at org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack.registerExceptionHandler()
    2. org.springframework.richclient
      ApplicationLifecycleAdvisor.afterPropertiesSet
      1. org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack.registerExceptionHandler(AwtExceptionHandlerAdapterHack.java:33)
      2. org.springframework.richclient.exceptionhandling.DefaultRegisterableExceptionHandler.registerExceptionHandler(DefaultRegisterableExceptionHandler.java:28)
      3. org.springframework.richclient.application.config.ApplicationLifecycleAdvisor.afterPropertiesSet(ApplicationLifecycleAdvisor.java:83)
      3 frames
    3. Spring Beans
      DefaultListableBeanFactory.getBeansOfType
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
      4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
      5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
      8. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:238)
      8 frames
    4. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:697)
      2. org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:521)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:345)
      3 frames
    5. org.springframework.richclient
      SimpleApp.main
      1. org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:244)
      2. org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:152)
      3. org.springframework.richclient.samples.simple.app.SimpleApp.main(SimpleApp.java:85)
      3 frames