You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Hari Sundharesan (JIRA)" <ji...@apache.org> on 2011/05/16 11:02:47 UTC
[jira] [Commented] (CAMEL-3904) Add osgi based quickfix test
[ https://issues.apache.org/jira/browse/CAMEL-3904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033924#comment-13033924 ]
Hari Sundharesan commented on CAMEL-3904:
-----------------------------------------
I tried installing and running camel-quickfix 2.6.0 on sm 4.3.
ailed (OsgiBundleXmlApplicationContext(bundle=mw-sm4-tradefixclient, config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route53: Route[[From[quickfix:egorig.cfg]] -> [OnException[[class jav... because of Failed to resolve endpoint: quickfix://egorig.cfg due to: Cannot auto create component: quickfix
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)[68:org.apache.camel.camel-core:2.6.0]
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)[75:org.apache.camel.camel-spring:2.6.0]
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:237)[75:org.apache.camel.camel-spring:2.6.0]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[71:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[71:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[71:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[71:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[72:org.springframework.osgi.extender:1.2.0]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_12]
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route53: Route[[From[quickfix:egorig.cfg]] -> [OnException[[class jav... because of Failed to resolve endpoint: quickfix://egorig.cfg due to: Cannot auto create component: quickfix
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)[68:org.apache.camel.camel-core:2.6.0]
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.camel.component.quickfixj.QuickfixjComponent.<clinit>(QuickfixjComponent.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_12]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_12]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_12]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_12]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 41 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found by org.apache.camel.camel-quickfix [249]
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)[:1.6.0_12]
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)[:1.6.0_12]
... 49 more
This is what I have installed:
[ 249] [Active ] [ ] [ ] [ 60] camel-quickfix (2.6.0)
[ 250] [Active ] [ ] [ ] [ 60] wrap_mvn_org.quickfixj_quickfixj-all_1.5.0 (0)
[ 253] [Active ] [ ] [ ] [ 60] wrap_mvn_org.apache.mina_mina-core_1.1.7 (0)
[ 257] [Active ] [ ] [ ] [ 60] slf4j-api (1.5.3)
Fragments: 265
[ 265] [Resolved ] [ ] [ ] [ 60] slf4j-log4j12 (1.5.3)
Hosts: 257
[ 268] [Active ] [ ] [Failed ] [ 60] Middleware TradeFix (1.0.0)
> Add osgi based quickfix test
> ----------------------------
>
> Key: CAMEL-3904
> URL: https://issues.apache.org/jira/browse/CAMEL-3904
> Project: Camel
> Issue Type: Test
> Components: osgi
> Affects Versions: 2.6.0
> Reporter: Claus Ibsen
> Priority: Minor
>
> There may be problem using camel-quickfix in osgi. We need an unit test of it in tests/camel-itest-osgi
> See Fuse forum
> http://fusesource.com/forums/thread.jspa?threadID=2926&tstart=0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira