[
https://issues.apache.org/activemq/browse/CAMEL-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44658#action_44658
]
Hendy Irawan commented on CAMEL-774:
------------------------------------
FYI, the bundle #20 mentioned by the error logger is camel-core:
osgi> b 20
[EMAIL PROTECTED]:file:org.apache.camel.camel-core_1.4.0.jar/ [20]
Id=20, Status=ACTIVE Data
Root=/home/ceefour/project/elfattah/elfattah-shell/runner/equinox/org.eclipse.osgi/bundles/20/data
No registered services.
No services in use.
Exported packages
org.apache.camel.model.loadbalancer; version="1.4.0"[exported]
org.apache.camel.component.dataset; version="1.4.0"[exported]
org.apache.camel.language.simple; version="1.4.0"[exported]
org.apache.camel.processor.loadbalancer; version="1.4.0"[exported]
org.apache.camel.processor.aggregate; version="1.4.0"[exported]
org.apache.camel.component.log; version="1.4.0"[exported]
org.apache.camel.converter.jaxp; version="1.4.0"[exported]
org.apache.camel.processor.resequencer; version="1.4.0"[exported]
org.apache.camel.processor.interceptor; version="1.4.0"[exported]
org.apache.camel.impl.converter; version="1.4.0"[exported]
org.apache.camel.management; version="1.4.0"[exported]
org.apache.camel.util.jndi; version="1.4.0"[exported]
org.apache.camel.util; version="1.4.0"[exported]
org.apache.camel.impl; version="1.4.0"[exported]
org.apache.camel.builder.xml; version="1.4.0"[exported]
org.apache.camel.component.list; version="1.4.0"[exported]
org.apache.camel.component.direct; version="1.4.0"[exported]
org.apache.camel.component.seda; version="1.4.0"[exported]
org.apache.camel.component.ref; version="1.4.0"[exported]
org.apache.camel.component.file; version="1.4.0"[exported]
org.apache.camel.converter; version="1.4.0"[exported]
org.apache.camel.language.bean; version="1.4.0"[exported]
org.apache.camel.model.config; version="1.4.0"[exported]
org.apache.camel.model.dataformat; version="1.4.0"[exported]
org.apache.camel.processor; version="1.4.0"[exported]
org.apache.camel.component.mock; version="1.4.0"[exported]
org.apache.camel.component.timer; version="1.4.0"[exported]
org.apache.camel.component.vm; version="1.4.0"[exported]
org.apache.camel.model.language; version="1.4.0"[exported]
org.apache.camel.model; version="1.4.0"[exported]
org.apache.camel.converter.stream; version="1.4.0"[exported]
org.apache.camel.builder; version="1.4.0"[exported]
org.apache.camel.component.jmx; version="1.4.0"[exported]
org.apache.camel.spi; version="1.4.0"[exported]
org.apache.camel; version="1.4.0"[exported]
org.apache.camel.component.bean; version="1.4.0"[exported]
org.apache.camel.language; version="1.4.0"[exported]
org.apache.camel.view; version="1.4.0"[exported]
org.apache.camel.processor.validation; version="1.4.0"[exported]
org.apache.camel.processor.idempotent; version="1.4.0"[exported]
org.apache.camel.processor.exceptionpolicy; version="1.4.0"[exported]
org.apache.camel.component.file.strategy; version="1.4.0"[exported]
Imported packages
javax.activation; version="0.0.0"<System Bundle [0]>
javax.management; version="0.0.0"<System Bundle [0]>
javax.management.modelmbean; version="0.0.0"<System Bundle [0]>
javax.management.monitor; version="0.0.0"<System Bundle [0]>
javax.management.remote; version="0.0.0"<System Bundle [0]>
javax.naming; version="0.0.0"<System Bundle [0]>
javax.naming.spi; version="0.0.0"<System Bundle [0]>
javax.xml.bind.annotation; version="0.0.0"<System Bundle [0]>
javax.xml.namespace; version="0.0.0"<System Bundle [0]>
javax.xml.parsers; version="0.0.0"<System Bundle [0]>
javax.xml.stream; version="0.0.0"<System Bundle [0]>
javax.xml.transform; version="0.0.0"<System Bundle [0]>
javax.xml.transform.dom; version="0.0.0"<System Bundle [0]>
javax.xml.transform.sax; version="0.0.0"<System Bundle [0]>
javax.xml.transform.stream; version="0.0.0"<System Bundle [0]>
javax.xml.validation; version="0.0.0"<System Bundle [0]>
javax.xml.xpath; version="0.0.0"<System Bundle [0]>
org.apache.commons.logging; version="1.1.1"<[EMAIL
PROTECTED]:file:org.ops4j.pax.logging.pax-logging-api_1.1.1.jar/ [12]>
org.osgi.framework; version="1.4.0"<System Bundle [0]>
org.springframework.jmx.export.annotation; version="2.5.5"<[EMAIL
PROTECTED]:file:org.springframework.bundle.spring.context_2.5.5.jar/ [15]>
org.springframework.jmx.export.assembler; version="2.5.5"<[EMAIL
PROTECTED]:file:org.springframework.bundle.spring.context_2.5.5.jar/ [15]>
org.springframework.jmx.export.metadata; version="2.5.5"<[EMAIL
PROTECTED]:file:org.springframework.bundle.spring.context_2.5.5.jar/ [15]>
org.w3c.dom; version="0.0.0"<System Bundle [0]>
org.xml.sax; version="0.0.0"<System Bundle [0]>
No fragment bundles
Named class space
org.apache.camel.camel-core; bundle-version="1.4.0"[provided]
No required bundles
> ResolverUtil under OSGi error: Could not search jar file
> '/org/apache/camel/converter'
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-774
> URL: https://issues.apache.org/activemq/browse/CAMEL-774
> 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 1.1.0
> 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 [org.elfattah.shell (org.elfattah.shell)]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil -
> Testing for class
> org.apache.camel.converter.stream.StreamCacheConverter$StreamSourceCache
> matches criteria [annotated with @Converter]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil -
> Testing for class
> org.apache.camel.converter.stream.StreamCacheConverter$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: [EMAIL PROTECTED]
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil - URL
> from classloader: bundleresource://20/org/apache/camel/converter
> [SpringOsgiExtenderThread-2] TRACE org.apache.camel.util.ResolverUtil -
> Decoded urlPath: /org/apache/camel/converter
> [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)
> java.io.FileNotFoundException: /org/apache/camel/converter (No such file or
> directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at
> org.apache.camel.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:476)
> at org.apache.camel.util.ResolverUtil.find(ResolverUtil.java:362)
> at org.apache.camel.util.ResolverUtil.find(ResolverUtil.java:277)
> at
> org.apache.camel.util.ResolverUtil.findAnnotated(ResolverUtil.java:253)
> at
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:66)
> at
> org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:218)
> at
> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:64)
> at
> org.apache.camel.util.IntrospectionSupport.convert(IntrospectionSupport.java:216)
> at
> org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:194)
> at
> org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:167)
> at
> org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:187)
> at
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:89)
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:270)
> at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
> at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:100)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:102)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
> at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:73)
> at
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:77)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:214)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:90)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:537)
> at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:529)
> at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
> at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
> at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
> at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
> at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
> at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:306)
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:279)
> at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
> at java.lang.Thread.run(Thread.java:619)
> [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
> org.apache.camel.converter.stream.StreamCacheConverter, 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:
> http://svn.assembla.com/svn/elfattah/trunk
> 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.