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

    Unable to insert/update the data in Media table through impex

    Stack Overflow | 4 months ago | user964819
    mde.hybris.platform.impex.jalo.ImpExException: line 60 at main script: current handler is not set[HY--1]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot delete a file from admin console

    GitHub | 1 month ago | KengoTODA
    java.lang.IllegalStateException: You must set an handler for the HttpClientResponse before connecting
  6. 0

    Single @RequestMapping for multiple controllers

    Stack Overflow | 2 years ago | Venkat
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler [clients] to URL path [//save]: There is already handler [crm.venkat.controller.Clients@7e47dc12] mapped.

    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