You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Ivan (JIRA)" <ji...@apache.org> on 2011/08/22 09:10:29 UTC

[jira] [Commented] (XBEAN-181) Unwrap the bundle if required while using searching classes

    [ https://issues.apache.org/jira/browse/XBEAN-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088550#comment-13088550 ] 

Ivan commented on XBEAN-181:
----------------------------

Commit changes to trunk at revision: 1160131.

> 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