geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (XBEAN-181) Unwrap the bundle if required while using searching classes
Date Tue, 16 Aug 2011 01:30:29 GMT
Unwrap the bundle if required while using searching classes
-----------------------------------------------------------

                 Key: XBEAN-181
                 URL: https://issues.apache.org/jira/browse/XBEAN-181
             Project: XBean
          Issue Type: Bug
          Components: bundleutils
    Affects Versions: 3.7
            Reporter: Ivan
            Assignee: Ivan
             Fix For: 3.8


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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message