camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TheWinch <vincent.girardrey...@thalesgroup.com>
Subject Re: Error using camel-file with windows
Date Thu, 17 Sep 2009 07:09:12 GMT

Hi Claus,

I have tested several configurations. 

1. As long as I stick to some relative format, it works fine, but I don't
know where the scanned directories are supposed to be located. Have an idea
for this point ?
2. I have tested routes like "file://C:/toto",  "file:///C:/toto",
"file:C:/toto", and I get each time the following message (the NPE appears
twice if I use an absolute path for the "to" part of the route) :

09:04:39,380 | INFO  | localShell       | ultOsgiApplicationContextCreator |
ultOsgiApplicationContextCreator   67 | Discovered configurations
{osgibundle:/META-INF/spring/*.xml} in bundle [DiVA :: Sensors Manager
(eu.diva.tis.context.sensors.manager)]
09:04:39,395 | INFO  | tenderThread-155 | OsgiBundleXmlApplicationContext  |
pport.AbstractApplicationContext  411 | Refreshing
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1cad795:
display name
[OsgiBundleXmlApplicationContext(bundle=eu.diva.tis.context.sensors.manager,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Sep 17
09:04:39 CEST 2009]; root of context hierarchy
09:04:39,411 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
URL [bundle://188.0:0/META-INF/spring/bundle-context-osgi.xml]
09:04:39,426 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
URL [bundle://188.0:0/META-INF/spring/bundle-context.xml]
09:04:39,458 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
OSGi
resource[classpath:META-INF/cxf/cxf.xml|bnd.id=188|bnd.sym=eu.diva.tis.context.sensors.manager]
09:04:39,489 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
OSGi
resource[classpath:META-INF/cxf/cxf-extension-soap.xml|bnd.id=188|bnd.sym=eu.diva.tis.context.sensors.manager]
09:04:39,505 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
OSGi
resource[classpath:META-INF/cxf/cxf-extension-http.xml|bnd.id=188|bnd.sym=eu.diva.tis.context.sensors.manager]
09:04:39,536 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
OSGi
resource[classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml|bnd.id=188|bnd.sym=eu.diva.tis.context.sensors.manager]
09:04:39,552 | INFO  | tenderThread-155 | XmlBeanDefinitionReader          |
tory.xml.XmlBeanDefinitionReader  323 | Loading XML bean definitions from
URL [bundle://188.0:0/META-INF/spring/camel-context.xml]
09:04:39,583 | INFO  | tenderThread-155 | OsgiBundleXmlApplicationContext  |
pport.AbstractApplicationContext  426 | Bean factory for application context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1cad795]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@4540a2
09:04:39,645 | INFO  | tenderThread-155 | WaiterApplicationContextExecutor |
WaiterApplicationContextExecutor  245 | No outstanding OSGi service
dependencies, completing initialization for
OsgiBundleXmlApplicationContext(bundle=eu.diva.tis.context.sensors.manager,
config=osgibundle:/META-INF/spring/*.xml)
09:04:39,661 | INFO  | tenderThread-156 | OsgiBundleXmlApplicationContext  |
Context$BeanPostProcessorChecker  121 | Bean 'cxf' is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
09:04:39,661 | INFO  | tenderThread-156 | DefaultCamelContext              |
e.camel.impl.DefaultCamelContext  138 | JMX enabled. Using
InstrumentationLifecycleStrategy.
09:04:39,677 | INFO  | tenderThread-156 | DefaultListableBeanFactory       |
pport.DefaultListableBeanFactory  414 | Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@4540a2:
defining beans
[sensorServiceOsgi,cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.servicemix.cxf.transport.http_osgi.OsgiTransportFactory,osgiDestinationRegistry,serviceImpl,sensorService,camelContext:beanPostProcessor,camelContext];
root of factory hierarchy
09:04:39,677 | INFO  | tenderThread-156 | OsgiServiceFactoryBean           |
r.support.OsgiServiceFactoryBean  299 | Publishing service under classes
[{eu.diva.tis.api.ws.sensor.Sensor}]
09:04:39,755 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitStartingEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,755 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitEndedEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,755 | INFO  | tenderThread-156 | ReflectionServiceFactoryBean     |
.support.JaxWsServiceFactoryBean  163 | Creating Service
{http://tis.diva.eu/schemas/sensorsvc/1.0}SensorService from class
eu.diva.tis.api.ws.sensor.Sensor
09:04:39,770 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitStartingEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,770 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitEndedEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,770 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitStartingEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,786 | WARN  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext  128 | No spring-event endpoint enabled to
handle event:
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitEndedEvent[source=org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean@6302ea]
09:04:39,786 | INFO  | tenderThread-156 | ServerImpl                       |
e.cxf.frontend.ServerFactoryBean  118 | Setting the server's publish address
to be /SensorService
09:04:39,786 | INFO  | tenderThread-156 | SpringCamelContext               |
.camel.spring.SpringCamelContext   98 | Starting Apache Camel as property
ShouldStartContext is true
09:04:39,786 | INFO  | tenderThread-156 | DefaultCamelContext              |
e.camel.impl.DefaultCamelContext  896 | Apache Camel 2.0-M3
(CamelContext:camelContext) is starting
09:04:39,817 | INFO  | tenderThread-156 | DefaultCamelContext              |
e.camel.impl.DefaultCamelContext  889 | Apache Camel 2.0-M3
(CamelContext:camelContext) started
09:04:39,817 | INFO  | tenderThread-156 | OsgiBundleXmlApplicationContext  |
ractOsgiBundleApplicationContext  324 | Publishing application context as
OSGi service with properties
{org.springframework.context.service.name=eu.diva.tis.context.sensors.manager,
Bundle-SymbolicName=eu.diva.tis.context.sensors.manager,
Bundle-Version=1.0.0}
09:04:40,817 | ERROR | 7: FileComponent | FileConsumer                     |
rg.apache.camel.processor.Logger  248 | 
java.lang.NullPointerException
	at
org.apache.camel.osgi.OsgiFactoryFinder.getResource(OsgiFactoryFinder.java:85)
	at
org.apache.camel.osgi.OsgiFactoryFinder.findClass(OsgiFactoryFinder.java:51)
	at
org.apache.camel.component.file.GenericFileEndpoint.createGenericFileStrategy(GenericFileEndpoint.java:130)
	at
org.apache.camel.component.file.GenericFileEndpoint.getGenericFileProcessStrategy(GenericFileEndpoint.java:114)
	at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:162)
	at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:120)
	at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:93)
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:98)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

-- 
View this message in context: http://www.nabble.com/Error-using-camel-file-with-windows-tp25475829p25486220.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message