camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Topping <topp...@codehaus.org>
Subject Re: Defining a CXF bus in Blueprint for use with cxfbean endpoint
Date Wed, 23 Nov 2011 19:35:54 GMT

On Nov 23, 2011, at 12:05 PM, Claus Ibsen wrote:

> From the XSD
> http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd
> 
> I can see a "bus" attribute.

Thanks Claus.  I guess you must be talking about the element at line 54, as I mentioned that's
a child of the cxfEndpoint.  It seems like a fair assumption that the definition of such a
bus would be scoped to the containing cxfEndpoint, no?  That's why I tried it with the config
as I posted it (so I could add a bus later), but get the exception below.

Of the example configuration I posted, how would I use that to specify a bus for the cxfbean
endpoint, or failing that, configure the cxfEndpoint as I have so it even works?  That code
I posted earlier does not work, even without a bus.  From what I've been able to gather from
the documentation, the cxf endpoint is only for JAX-WS resources, but I tried it with JAX-RS
anyway, so I'm not surprised it fails.  

I realize this is my first question to the Camel list and apologize if I am not structuring
my question very well.

Here is the exception:

org.apache.cxf.interceptor.Fault: Could not send Message.
	at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:456)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:94)[142:org.apache.camel.camel-cxf:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:115)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:285)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:92)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:321)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:212)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:304)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[67:org.apache.camel.camel-core:2.9.0.SNAPSHOT]
	at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:105)[149:org.apache.camel.camel-jms:2.9.0.SNAPSHOT]
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:560)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:498)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:467)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050)[108:org.springframework.jms:3.0.6.RELEASE]
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)[108:org.springframework.jms:3.0.6.RELEASE]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]
	at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]
Caused by: java.net.MalformedURLException: Invalid address. Endpoint address cannot be null.
	at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:741)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.transport.http.HTTPConduit.getURL(HTTPConduit.java:725)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.transport.http.HTTPConduit.setupURL(HTTPConduit.java:672)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:461)[140:org.apache.cxf.bundle:2.4.3]
	at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)[140:org.apache.cxf.bundle:2.4.3]
	... 39 more

Cheers, Brian
Mime
View raw message