camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hendy Irawan (JIRA)" <>
Subject [jira] Commented: (CAMEL-774) ResolverUtil under OSGi error: Could not search jar file '/org/apache/camel/converter'
Date Fri, 01 Aug 2008 06:01:00 GMT


Hendy Irawan commented on CAMEL-774:

Thanks Claus. I hope this can help getting it resolved. Let me know if it is, even a snapshot
will do very well for us.

Another question, is below "DynamicImport-Package workaround" supposed to be bug? Or it's
just the way Camel needs to be configured on OSGi? If so it should be mentioned somewhere
in the docs... not everybody knows that DynamicImport-Package even exists.. (even some OSGi


First of all, to even get this to "work" requires my own bundle to have this manifest:
DynamicImport-Package: org.apache.camel.*

Failing to do so will result in more classloading errors.

> ResolverUtil under OSGi error: Could not search jar file '/org/apache/camel/converter'
> --------------------------------------------------------------------------------------
>                 Key: CAMEL-774
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-osgi, camel-stream
>    Affects Versions: 1.4.0
>         Environment: Linux/Ubuntu, Maven 2.0.9, Camel 1.4.0, Spring 2.5.5, Spring-DM
>            Reporter: Hendy Irawan
> This is a sequel of CAMEL-577, which itself duplicated by CAMEL-558 and CAMEL-522. Probably
related to CAMEL-636, CAMEL-693, and CAMEL-689.
> First of all, to even get this to "work" requires my own bundle to have this manifest:
> DynamicImport-Package: org.apache.camel.*
> Failing to do so will result in more classloading errors.
> Even so, it still fails with this:
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Testing for class
org.apache.camel.converter.jaxp.XmlConverter matches criteria [annotated with @Converter]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Found class:
class org.apache.camel.converter.jaxp.XmlConverter in classloader: BundleDelegatingClassLoader
for [ (]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Testing for class$StreamSourceCache matches criteria
[annotated with @Converter]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Testing for class$InputStreamCache matches criteria [annotated
with @Converter]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Searching for:
annotated with @Converter in package: org/apache/camel/converter using classloader: org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - It's not an osgi
bundle classloader
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Getting resource
URL for package: org/apache/camel/converter with classloader: org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1a5db4b
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - URL from classloader:
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Decoded urlPath:
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - Scanning for
classes in [/org/apache/camel/converter] matching criteria: annotated with @Converter
> [SpringOsgiExtenderThread-2] DEBUG org.apache.camel.util.ResolverUtil - Loading from
jar: /org/apache/camel/converter
> [SpringOsgiExtenderThread-2] ERROR org.apache.camel.util.ResolverUtil - Could not search
jar file '/org/apache/camel/converter' for classes matching criteria: annotated with @Converter
due to an IOException: /org/apache/camel/converter (No such file or directory)
> /org/apache/camel/converter (No such file or directory)
> 	at Method)
> 	at<init>(
> 	at org.apache.camel.util.ResolverUtil.loadImplementationsInJar(
> 	at org.apache.camel.util.ResolverUtil.find(
> 	at org.apache.camel.util.ResolverUtil.find(
> 	at org.apache.camel.util.ResolverUtil.findAnnotated(
> 	at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(
> 	at org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(
> 	at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(
> 	at org.apache.camel.util.IntrospectionSupport.convert(
> 	at org.apache.camel.util.IntrospectionSupport.setProperty(
> 	at org.apache.camel.util.IntrospectionSupport.setProperties(
> 	at org.apache.camel.impl.DefaultComponent.setProperties(
> 	at org.apache.camel.impl.DefaultComponent.createEndpoint(
> 	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(
> 	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(
> 	at org.apache.camel.model.RouteType.resolveEndpoint(
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(
> 	at org.apache.camel.model.FromType.resolveEndpoint(
> 	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(
> 	at org.apache.camel.model.RouteType.addRoutes(
> 	at org.apache.camel.model.RouteType.addRoutes(
> 	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(
> 	at org.apache.camel.impl.DefaultCamelContext.doStart(
> 	at org.apache.camel.spring.SpringCamelContext.doStart(
> 	at org.apache.camel.impl.ServiceSupport.start(
> 	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster$
> 	at org.springframework.core.task.SyncTaskExecutor.execute(
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(
> 	at
> 	at
> 	at
> 	at
> 	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$
> 	at
> [SpringOsgiExtenderThread-2] DEBUG org.apache.camel.util.ResolverUtil - Found: [class
org.apache.camel.converter.ObjectConverter, class org.apache.camel.converter.jaxp.DomConverter,
class org.apache.camel.converter.IOConverter, class org.apache.camel.converter.jaxp.StaxConverter,
class org.apache.camel.converter.jaxp.XmlConverter, class,
class org.apache.camel.converter.jaxp.StreamSourceConverter, class org.apache.camel.converter.NIOConverter,
class org.apache.camel.converter.CollectionConverter, class org.apache.camel.converter.CamelConverter]
> The project that demonstrates this error is open source, check it out here:
> do mvn install on elfattah-api and elfattah-shell
> Then go to elfattah-shell and:
> mvn pax:provision

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message