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

Spring JIRA | Kurt Battisti | 1 decade ago
  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
  3. 0
    You can solve this by using an actual Service instead of an IntentService
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.
  6. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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