dm Server
  1. dm Server
  2. DMS-396

java.lang.ClassCastException appears in the dump on shutdown of dm Server

    Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: Sprint 1
    • Fix Version/s: Sprint 9, 2.0.0.M5, 2.0.0.RELEASE
    • Component/s: None
    • Labels:
    • Environment:

      Macosx

    • Story Points:
      0

      Description

      Dump file is generating upon shutdown of dmServer contains java.lang.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)

        Activity

        Hide
        Radhika Madala (c) added a comment -

        Steps to Reproduce:

        1)Copy the spring framework 2.5.6.A version of library and bundles to the dm Server repository.
        2)Now copy the attached org.springframework.samples.springtravel-1.2.0.RELEASE.par( whose dependent bundles are manually cloned on the spring framework library)sample to DMS_HOMW/pickup directory
        3)Now start dm Server
        4)Application able to deploy by giving the list of cloned bundles in the log messages
        5)Now shutdown dm Server by hitting CTR +C
        6)Now the dump is generating in serviceability by giving the above described error message.

        Show
        Radhika Madala (c) added a comment - Steps to Reproduce: 1)Copy the spring framework 2.5.6.A version of library and bundles to the dm Server repository. 2)Now copy the attached org.springframework.samples.springtravel-1.2.0.RELEASE.par( whose dependent bundles are manually cloned on the spring framework library)sample to DMS_HOMW/pickup directory 3)Now start dm Server 4)Application able to deploy by giving the list of cloned bundles in the log messages 5)Now shutdown dm Server by hitting CTR +C 6)Now the dump is generating in serviceability by giving the above described error message.
        Hide
        Ben Hale (c) added a comment -

        Cloning Removed

        Show
        Ben Hale (c) added a comment - Cloning Removed

          People

          • Assignee:
            Unassigned
            Reporter:
            Radhika Madala (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: