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.

Reply via email to