camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bingliu <liubing1...@gmail.com>
Subject An camel's exception in osgi
Date Mon, 20 Sep 2010 15:28:28 GMT

Hello,when i used camel in osgi, an exception has be throwed at some time. 
-----------------------------------------------------------------------------------------
2010 九月 20 22:48:51 5391 INFO  [SpringOsgiExtenderThread-1]
org.apache.camel.spring.handler.CamelNamespaceHandler     -
camel-osgi.jar/camel-spring-osgi.jar not detected in classpath
2010 九月 20 22:48:51 5392 DEBUG [SpringOsgiExtenderThread-1]
org.apache.camel.spring.handler.CamelNamespaceHandler     - Using
org.apache.camel.spring.CamelContextFactoryBean as
CamelContextBeanDefinitionParser
2010 九月 20 22:48:52 6756 DEBUG [SpringOsgiExtenderThread-1]
org.apache.camel.spring.handler.CamelNamespaceHandler     - Registered
default: org.apache.camel.spring.CamelProducerTemplateFactoryBean with id:
template on camel context: camelContext
2010 九月 20 22:48:52 6757 DEBUG [SpringOsgiExtenderThread-1]
org.apache.camel.spring.handler.CamelNamespaceHandler     - Registered
default: org.apache.camel.spring.CamelConsumerTemplateFactoryBean with id:
consumerTemplate on camel context: camelContext
2010 九月 20 22:48:53 7466 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.spring.SpringCamelContext     - Set the application context
classloader to: BundleDelegatingClassLoader for [Business
(com.jbsoft.business)]
2010 九月 20 22:48:53 7568 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.spring.CamelContextFactoryBean     - Found JAXB created
routes: [Route[[From[direct:demo]] ->
[To[bean:queryAccInfoByAccno?method=process],
To[direct:demochoice12715534]]], Route[[From[direct:demochoice12715534]] ->
[Choice[[When[simple{${in.body[accinfo_accno_count]} != 0} ->
[To[bean:queryChgAccByAccno?method=process], To[direct:demochoice7721332]]]]
Otherwise[[]]]]], Route[[From[direct:demochoice7721332]] ->
[Choice[[When[simple{${in.body[chg_cur_acc_count]} != 0} ->
[To[bean:queryRsDrawByAccno?method=process],
To[direct:demochoice29867746]]]] Otherwise[[]]]]],
Route[[From[direct:demochoice29867746]] ->
[Choice[[When[simple{${in.body[chg_typrsdraw]} == 2} ->
[To[bean:insertAmt?method=process]]]] Otherwise[[]]]]]]
2010 九月 20 22:48:54 7932 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.spring.SpringCamelContext     - onApplicationEvent:
org.springframework.context.event.ContextRefreshedEvent[source=OsgiBundleXmlApplicationContext(bundle=com.jbsoft.business,
config=osgibundle:/META-INF/spring/*.xml): startup date [Mon Sep 20 22:48:50
CST 2010]; root of context hierarchy]
2010 九月 20 22:48:54 7932 INFO  [SpringOsgiExtenderThread-2]
org.apache.camel.impl.DefaultCamelContext     - Apache Camel 2.3.0
(CamelContext: camelContext) is starting
2010 九月 20 22:48:54 7933 INFO  [SpringOsgiExtenderThread-2]
org.apache.camel.impl.DefaultCamelContext     - JMX enabled. Using
ManagedManagementStrategy.
2010 九月 20 22:48:54 8177 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.management.DefaultManagementAgent     - Starting JMX agent
on server: com.sun.jmx.mbeanserver.JmxMBeanServer@1dffb78
2010 九月 20 22:48:54 8325 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.management.DefaultManagementAgent     - Registered MBean
with objectname:
org.apache.camel:context=bing-PC/camelContext,type=context,name="camelContext"
2010 九月 20 22:48:54 8415 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.management.DefaultManagementAgent     - Registered MBean
with objectname:
org.apache.camel:context=bing-PC/camelContext,type=services,name=DefaultTypeConverter(0xad40a0)
2010 九月 20 22:48:54 8415 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.impl.converter.DefaultTypeConverter     - Loading type
converters ...
2010 九月 20 22:48:54 8417 INFO  [SpringOsgiExtenderThread-2]
org.apache.camel.impl.converter.AnnotationTypeConverterLoader     - Loading
file META-INF/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
bundleresource://93.fwk15020296/META-INF/services/org/apache/camel/TypeConverter
2010 九月 20 22:48:54 8418 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.impl.DefaultPackageScanClassResolver     - Searching for
annotations of org.apache.camel.Converter in packages:
[org.apache.camel.component.file, org.apache.camel.component.bean,
org.apache.camel.converter]
2010 九月 20 22:48:54 8432 DEBUG [SpringOsgiExtenderThread-2]
org.apache.camel.impl.DefaultPackageScanClassResolver     - Cannot read
entries in url:
bundleresource://93.fwk15020296/org/apache/camel/component/file/
java.io.FileNotFoundException: \org\apache\camel\component\file (The system
cannot find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at
org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:273)
	at
org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:180)
	at
org.apache.camel.impl.DefaultPackageScanClassResolver.findAnnotated(DefaultPackageScanClassResolver.java:100)
	at
org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:64)
	at
org.apache.camel.impl.converter.DefaultTypeConverter.loadTypeConverters(DefaultTypeConverter.java:378)
	at
org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:402)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:53)
	at
org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1191)
	at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:604)
	at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:676)
	at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:1240)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1097)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1037)
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:912)
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:665)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:301)
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:888)
	at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
	at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------------------------------------
I see the information:'camel-osgi.jar/camel-spring-osgi.jar not detected in
classpath'.But i don't know what cause of problem is.
The runtime environment :
JDK 1.6.18
Spring 3.0.1
Camel 2.3.0
Spring osgi 1.2.1
Eclipse 3.5.2
How can I solve the problem? Thanks
-- 
View this message in context: http://camel.465427.n5.nabble.com/An-camel-s-exception-in-osgi-tp2846740p2846740.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message