You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Duncan Grant (JIRA)" <ji...@apache.org> on 2016/09/05 13:40:21 UTC
[jira] [Closed] (JCLOUDS-1171) When using karaf classloading of
autovalue classes fails if in a different bundle (e.g. jclouds-labs-google)
[ https://issues.apache.org/jira/browse/JCLOUDS-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duncan Grant closed JCLOUDS-1171.
---------------------------------
> When using karaf classloading of autovalue classes fails if in a different bundle (e.g. jclouds-labs-google)
> ------------------------------------------------------------------------------------------------------------
>
> Key: JCLOUDS-1171
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1171
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core, jclouds-karaf, jclouds-labs-google
> Reporter: Duncan Grant
> Fix For: 2.0.0
>
>
> When Class.forName is called for a class in a different bundle it will
> fail as the default karaf class loader won't load classes from other
> bundles.
> I have fixed this by using the classloader of the original
> (non-autovalue) type and assuming it will be in the same bundle as the
> autovalue type (I think this is a reasonable assumtion).
> So far the only place where I've actually seen this being an issue is
> when using the jclouds-labs-google provider within karaf. It fails
> when serialising the Firewall.Rule class within a FirewallOptions
> object.
> Have created a PR to fix this here: https://github.com/jclouds/jclouds/pull/1005
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)