java.lang.ClassCastException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext

SpringSource Issue Tracker | Glyn Normington (c) | 8 years ago
  1. 0

    Running ImportPromotionTests with cloning enabled causes three dumps to be taken during shutdown after the tests have run (and passed). Each of the three dumps has the same cause which is the following ClassCastException: java.lang.ClassCastException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext at com.springsource.kernel.dmfragment.internal.ServiceProxyRetryDisablingBundleListener.bundleChanged(ServiceProxyRetryDisablingBundleListener.java:63) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1366) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1317) at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:667) at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:578) at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 8 years ago | Glyn Normington (c)
    java.lang.ClassCastException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext
  2. 0
  3. 0

    Running ImportPromotionTests with cloning enabled causes three dumps to be taken during shutdown after the tests have run (and passed). Each of the three dumps has the same cause which is the following ClassCastException: java.lang.ClassCastException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext at com.springsource.kernel.dmfragment.internal.ServiceProxyRetryDisablingBundleListener.bundleChanged(ServiceProxyRetryDisablingBundleListener.java:63) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1366) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1317) at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:667) at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:578) at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 8 years ago | Glyn Normington (c)
    java.lang.ClassCastException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to

    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.ClassCastException

      org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext cannot be cast to org.springframework.context.ApplicationContext

      at com.springsource.kernel.dmfragment.internal.ServiceProxyRetryDisablingBundleListener.bundleChanged()
    2. com.springsource.kernel
      ServiceProxyRetryDisablingBundleListener.bundleChanged
      1. com.springsource.kernel.dmfragment.internal.ServiceProxyRetryDisablingBundleListener.bundleChanged(ServiceProxyRetryDisablingBundleListener.java:63)
      1 frame
    3. Eclipse OSGi
      BundleContextImpl.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
      1 frame
    4. Eclipse OSGi
      ListenerQueue.dispatchEventSynchronous
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:219)
      2. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
      2 frames
    5. Eclipse OSGi
      InternalSystemBundle$1.run
      1. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1366)
      2. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1317)
      3. org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:667)
      4. org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:578)
      5. org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243)
      5 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:637)
      1 frame