camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Ali Tokmen" <savas-ali.tok...@bull.net>
Subject Re: Definining interceptors in camel-cxf
Date Fri, 23 Jan 2009 15:44:33 GMT
Hello

Unfortunately, Camel 2.0-SNAPSHOT and CXF 2.2-SNAPSHOT (versions present 
on the 23/01/2009) seem to break. I have an exception:

    java.lang.NullPointerException
           at
    org.apache.camel.component.cxf.CxfProducer.createClientFromClientFactoryBean(CxfProducer.java:97)
           at
    org.apache.camel.component.cxf.CxfProducer.<init>(CxfProducer.java:70)
           at
    org.apache.camel.component.cxf.CxfEndpoint.createProducer(CxfEndpoint.java:74)
           at
    org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:92)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:64)
           at
    org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:253)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:64)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:64)
           at
    org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:253)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
           at
    org.apache.camel.processor.DelegateProcessor.doStart(DelegateProcessor.java:68)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
           at
    org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:54)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
           at
    org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
           at
    org.apache.camel.impl.DefaultConsumer.doStart(DefaultConsumer.java:85)
           at
    org.apache.camel.component.jms.JmsConsumer.doStart(JmsConsumer.java)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:421)
           at
    org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:683)
           at
    org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:652)
           at
    org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:166)
           at
    org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:161)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:96)
           at
    org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115)
           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:274)
           at
    org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
           at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
           at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
           at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
           at
    org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:232)
           at org.apache.camel.spring.Main.doStart(Main.java:186)
           at
    org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
           at
    org.ow2.jonas.camel.server.CamelWrapper$CamelThread.run(CamelWrapper.java:101)
           ... 1 more

There's also a "regression" in Camel: the org.apache.camel.Component and 
org.apache.camel.Endpoint interfaces are not generic anymore. Is that 
expected?

Cheers

S. Ali Tokmen
savas-ali.tokmen@bull.net

Office: +33 4 76 29 76 19
GSM:    +33 66 43 00 555

Bull, Architect of an Open World TM
http://www.bull.com



Willem Jiang a écrit :
> Just one more thing for the using camel-2.0-snapshot, you also need to
> use the latest CXF 2.2-snapshot, or CXF 2.1.4-snapshot.
>
> Willem
>
> Willem Jiang wrote:
>   
>> You can get camel-2.0 snapshot from
>> http://people.apache.org/repo/m2-snapshot-repository/
>>
>> Willem
>>
>> S. Ali Tokmen wrote:
>>     
>>> Hello Willem
>>>
>>> Which repository would you recommend to me for testing with
>>> camel-2.0-snapshot; should I compile manually?
>>>
>>> Thanks
>>>
>>> PS: My source code is public, on
>>> svn://svn.forge.objectweb.org/svnroot/jonas/sandbox/camel-jonas4
>>>
>>> S. Ali Tokmen
>>> savas-ali.tokmen@bull.net
>>>
>>> Office: +33 4 76 29 76 19
>>> GSM:    +33 66 43 00 555
>>>
>>> Bull, Architect of an Open World TM
>>> http://www.bull.com
>>>
>>>
>>>
>>> Willem Jiang a écrit :
>>>       
>>>> Ah, You already found the answer :)
>>>> Can you try the last Camel-2.0 snapshot, there are some changes on the
>>>> CXF bus. Please let me know if anything is broken there.
>>>>
>>>> Willem


Mime
View raw message