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

SpringSource Issue Tracker | Radhika Madala (c) | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188

    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