You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/07/02 09:03:52 UTC
[jira] Resolved: (CAMEL-2894)
DefaultPackageScanClassResolver.addClassLoader should check the
UnsupportedOperationException
[ https://issues.apache.org/activemq/browse/CAMEL-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-2894.
---------------------------------
Resolution: Fixed
> DefaultPackageScanClassResolver.addClassLoader should check the UnsupportedOperationException
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-2894
> URL: https://issues.apache.org/activemq/browse/CAMEL-2894
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.0
>
>
> When I was running some OSGi tests with Camel 2.4-SNAPSHOT, I got this UnsupportedOperationExcpetion,
> This is stack trace
> {code}
> Caused by: java.lang.UnsupportedOperationException
> at java.util.AbstractCollection.add(AbstractCollection.java:221)
> at org.apache.camel.impl.DefaultPackageScanClassResolver.addClassLoader(DefaultPackageScanClassResolver.java:58)
> at org.apache.camel.spring.PackageScanRouteBuilderFinder.<init>(PackageScanRouteBuilderFinder.java:52)
> at org.apache.camel.spring.CamelContextFactoryBean.findRouteBuildersByPackageScan(CamelContextFactoryBean.java:183)
> {code}
> After digging the code , I found current OsgiPackageScanClassResolver only supports to turn the bundle classloader, so we need to check this kind of error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.