Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-181

Unwrap the bundle if required while using searching classes

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7
    • 3.8
    • bundleutils
    • None

    Description

      The exception below will be thrown while a delegating bundle is passed for annotation or resource scanning, it is better to unwrap the bundle before doing that.
      java.lang.ClassCastException: org.apache.xbean.osgi.bundle.util.DelegatingBundle cannot be cast to org.apache.felix.framework.BundleImpl
      at org.apache.felix.framework.PackageAdminImpl.getBundleType(PackageAdminImpl.java:141)
      at org.apache.felix.framework.PackageAdminImpl.getFragments(PackageAdminImpl.java:194)
      at org.apache.xbean.osgi.bundle.util.BundleResourceFinder.find(BundleResourceFinder.java:93)
      at org.apache.xbean.finder.BundleAnnotationFinder.<init>(BundleAnnotationFinder.java:55)
      at org.apache.xbean.finder.BundleAnnotationFinder.<init>(BundleAnnotationFinder.java:49)
      at org.apache.xbean.finder.BundleAnnotationFinder.<init>(BundleAnnotationFinder.java:45)
      at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initContext(ConnectorModuleBuilder.java:437)
      ... 34 more

      Attachments

        Activity

          People

            xuhaihong Haihong Xu
            xuhaihong Haihong Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: