You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bingliu <li...@gmail.com> on 2010/11/29 10:22:06 UTC

Integration camel and spring-integration

Hi, I am integrating camel and spring-integration now. Please look this:
                <camel:route>
			<camel:from uri="direct:toIntegration"/>
			<camel:bean ref="testIn"/>
			<camel:to uri="spring-integration:inChannel"/>
		</camel:route>
the spring-integration configuration is this :
        <int:channel id="inChannel"/>
	<int:channel id="outChannel"/>

	<int:service-activator ref="testActivator" method="test"
input-channel="inChannel"/>
	
	<bean id="testActivator" class="com.jbsoft.msb.db.TestActivator"/>
but a problem has occur,please look this:
2010 十一月 29 17:19:22 21374 DEBUG [OSGi Console]
org.apache.camel.processor.DefaultErrorHandler     - Failed delivery for
exchangeId: 28711046-b8b8-4e89-91a9-b6ef92214a39. On delivery attempt: 0
caught: java.lang.NullPointerException
2010 十一月 29 17:19:22 21376 ERROR [OSGi Console]
org.apache.camel.processor.DefaultErrorHandler     - Failed delivery for
exchangeId: 28711046-b8b8-4e89-91a9-b6ef92214a39. Exhausted after delivery
attempt: 1 caught: java.lang.NullPointerException
java.lang.NullPointerException
	at
org.apache.camel.component.spring.integration.SpringIntegrationProducer.process(SpringIntegrationProducer.java:87)
	at
org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:106)
	at
org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:104)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:189)
	at
org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:103)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:87)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at
org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at
org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:97)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at
org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:185)
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:151)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:89)
	at
org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:75)
	at
org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:70)
	at
org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:44)
	at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:230)
	at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:209)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:189)
	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:208)
	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:152)
	at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:113)
	at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:117)
	at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:134)
	at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:282)
	at com.jbsoft.msb.db.Activator._test1(Activator.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
	at java.lang.Thread.run(Thread.java:619)
2010 十一月 29 17:19:22 21382 DEBUG [OSGi Console]
org.apache.camel.processor.DefaultErrorHandler     - This exchange is not
handled so its marked as failed: Exchange[Message: [B@1e81d48]
2010 十一月 29 17:19:22 21382 DEBUG [OSGi Console]  
org.apache.camel.processor.Pipeline     - Message exchange has failed so
breaking out of pipeline: Exchange[Message: [B@1e81d48] Exception:
java.lang.NullPointerException
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [B@1e81d48]
	at
org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1127)
	at
org.apache.camel.util.ExchangeHelper.extractResultBody(ExchangeHelper.java:448)
	at
org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:440)
	at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
	at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:134)
	at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:282)
	at com.jbsoft.msb.db.Activator._test1(Activator.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
	at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
I see the example on the website.The configuration as same as the example?
What cause of the problem is it?Thanks
-- 
View this message in context: http://camel.465427.n5.nabble.com/Integration-camel-and-spring-integration-tp3284105p3284105.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ActiveMQ server with Camel and smtp component

Posted by Remi Malessa <re...@llgc.org.uk>.
Thanks , that worked.

Remi

On 11/29/2010 03:14 PM, Claus Ibsen wrote:
> You also need camel-mail JAR in the lib of AMQ. + all the other JARs
> listed previously.
>
>
> On Mon, Nov 29, 2010 at 4:07 PM, Remi Malessa<re...@llgc.org.uk>  wrote:
>> Thanks for the list Claus.
>>
>> I've added the jars and I'm getting exactly the same message again: "
>>
>>     Failed to resolve endpoint: smtp://mysmtpserver.com due to: No component
>> found with scheme: smtp
>>
>>
>> Can you tell me, if I have to add the component to my camel.xml , file,
>> soething like:
>>
>> <bean id="smtp" class="org.apache.camel.component.mail.MailComponent">
>> <property name="configuration">
>> <bean class="org.apache.camel.component.mail.MailConfiguration">
>> <property name="host" value="mysmtpserver.com" />
>> </bean>
>> </property>
>> </bean>
>>
>> ?
>>
>> Or if I had a proper set of libraries the Camel would pick it up
>> automatically ?
>>
>>
>> Remi
>>
>>
>>
>>
>> On 11/29/2010 10:46 AM, Claus Ibsen wrote:
>>> Hi
>>>
>>> You need the JARs which is listed as compile.
>>>
>>>
>>> [INFO] The following files have been resolved:
>>> [INFO]    aopalliance:aopalliance:jar:1.0:compile
>>> [INFO]    commons-logging:commons-logging:jar:1.1.1:test
>>> [INFO]    commons-logging:commons-logging-api:jar:1.1:compile
>>> [INFO]    javax.activation:activation:jar:1.1:compile
>>> [INFO]    javax.mail:mail:jar:1.4.3:compile
>>> [INFO]    junit:junit:jar:4.8.1:test
>>> [INFO]    log4j:log4j:jar:1.2.16:test
>>> [INFO]    org.apache.camel:camel-core:jar:2.6-SNAPSHOT:compile
>>> [INFO]    org.apache.camel:camel-spring:jar:2.6-SNAPSHOT:compile
>>> [INFO]    org.apache.camel:camel-test:jar:2.6-SNAPSHOT:test
>>> [INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
>>> [INFO]    org.jvnet.mock-javamail:mock-javamail:jar:1.7:test
>>> [INFO]    org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-context:jar:3.0.5.RELEASE:compile
>>> [INFO]
>>>   org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-core:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
>>> [INFO]    org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
>>>
>>>
>>> On Mon, Nov 29, 2010 at 11:39 AM, Remi Malessa<re...@llgc.org.uk>    wrote:
>>>> Hi.
>>>> I have ActiveMQ 5.4.1 .
>>>> It seems like it doesn't have the smtp component libraries by default.
>>>> I've tried to juggle with the Camel (on its own) installation but I've
>>>> got
>>>> it all mixed up.
>>>>
>>>> Could somebody tell me please , how to deal with it properly ?
>>>>
>>>> There is a note for Maven users at :http://camel.apache.org/mail.html ,
>>>> but
>>>> I don't use Maven (I could
>>>> start if its necessary ) and I am not sure if its possible with the
>>>> ActiveMQ
>>>> installation as the Maven files
>>>> are already in the webapps/camel directory (I am not really sure if its a
>>>> problem or not).
>>>>
>>>> Cheers
>>>> Remi
>>>>
>>>
>>
>
>


Re: ActiveMQ server with Camel and smtp component

Posted by Claus Ibsen <cl...@gmail.com>.
You also need camel-mail JAR in the lib of AMQ. + all the other JARs
listed previously.


On Mon, Nov 29, 2010 at 4:07 PM, Remi Malessa <re...@llgc.org.uk> wrote:
> Thanks for the list Claus.
>
> I've added the jars and I'm getting exactly the same message again: "
>
>    Failed to resolve endpoint: smtp://mysmtpserver.com due to: No component
> found with scheme: smtp
>
>
> Can you tell me, if I have to add the component to my camel.xml , file,
> soething like:
>
> <bean id="smtp" class="org.apache.camel.component.mail.MailComponent">
> <property name="configuration">
> <bean class="org.apache.camel.component.mail.MailConfiguration">
> <property name="host" value="mysmtpserver.com" />
> </bean>
> </property>
> </bean>
>
> ?
>
> Or if I had a proper set of libraries the Camel would pick it up
> automatically ?
>
>
> Remi
>
>
>
>
> On 11/29/2010 10:46 AM, Claus Ibsen wrote:
>>
>> Hi
>>
>> You need the JARs which is listed as compile.
>>
>>
>> [INFO] The following files have been resolved:
>> [INFO]    aopalliance:aopalliance:jar:1.0:compile
>> [INFO]    commons-logging:commons-logging:jar:1.1.1:test
>> [INFO]    commons-logging:commons-logging-api:jar:1.1:compile
>> [INFO]    javax.activation:activation:jar:1.1:compile
>> [INFO]    javax.mail:mail:jar:1.4.3:compile
>> [INFO]    junit:junit:jar:4.8.1:test
>> [INFO]    log4j:log4j:jar:1.2.16:test
>> [INFO]    org.apache.camel:camel-core:jar:2.6-SNAPSHOT:compile
>> [INFO]    org.apache.camel:camel-spring:jar:2.6-SNAPSHOT:compile
>> [INFO]    org.apache.camel:camel-test:jar:2.6-SNAPSHOT:test
>> [INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
>> [INFO]    org.jvnet.mock-javamail:mock-javamail:jar:1.7:test
>> [INFO]    org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-context:jar:3.0.5.RELEASE:compile
>> [INFO]
>>  org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-core:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
>> [INFO]    org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
>>
>>
>> On Mon, Nov 29, 2010 at 11:39 AM, Remi Malessa<re...@llgc.org.uk>  wrote:
>>>
>>> Hi.
>>> I have ActiveMQ 5.4.1 .
>>> It seems like it doesn't have the smtp component libraries by default.
>>> I've tried to juggle with the Camel (on its own) installation but I've
>>> got
>>> it all mixed up.
>>>
>>> Could somebody tell me please , how to deal with it properly ?
>>>
>>> There is a note for Maven users at :http://camel.apache.org/mail.html ,
>>> but
>>> I don't use Maven (I could
>>> start if its necessary ) and I am not sure if its possible with the
>>> ActiveMQ
>>> installation as the Maven files
>>> are already in the webapps/camel directory (I am not really sure if its a
>>> problem or not).
>>>
>>> Cheers
>>> Remi
>>>
>>
>>
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: ActiveMQ server with Camel and smtp component

Posted by Remi Malessa <re...@llgc.org.uk>.
Thanks for the list Claus.

I've added the jars and I'm getting exactly the same message again: "

     Failed to resolve endpoint: smtp://mysmtpserver.com due to: No component found with scheme: smtp


Can you tell me, if I have to add the component to my camel.xml , file, 
soething like:

<bean id="smtp" class="org.apache.camel.component.mail.MailComponent">
<property name="configuration">
<bean class="org.apache.camel.component.mail.MailConfiguration">
<property name="host" value="mysmtpserver.com" />
</bean>
</property>
</bean>

?

Or if I had a proper set of libraries the Camel would pick it up 
automatically ?


Remi




On 11/29/2010 10:46 AM, Claus Ibsen wrote:
> Hi
>
> You need the JARs which is listed as compile.
>
>
> [INFO] The following files have been resolved:
> [INFO]    aopalliance:aopalliance:jar:1.0:compile
> [INFO]    commons-logging:commons-logging:jar:1.1.1:test
> [INFO]    commons-logging:commons-logging-api:jar:1.1:compile
> [INFO]    javax.activation:activation:jar:1.1:compile
> [INFO]    javax.mail:mail:jar:1.4.3:compile
> [INFO]    junit:junit:jar:4.8.1:test
> [INFO]    log4j:log4j:jar:1.2.16:test
> [INFO]    org.apache.camel:camel-core:jar:2.6-SNAPSHOT:compile
> [INFO]    org.apache.camel:camel-spring:jar:2.6-SNAPSHOT:compile
> [INFO]    org.apache.camel:camel-test:jar:2.6-SNAPSHOT:test
> [INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
> [INFO]    org.jvnet.mock-javamail:mock-javamail:jar:1.7:test
> [INFO]    org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-context:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-core:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
> [INFO]    org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
>
>
> On Mon, Nov 29, 2010 at 11:39 AM, Remi Malessa<re...@llgc.org.uk>  wrote:
>> Hi.
>> I have ActiveMQ 5.4.1 .
>> It seems like it doesn't have the smtp component libraries by default.
>> I've tried to juggle with the Camel (on its own) installation but I've got
>> it all mixed up.
>>
>> Could somebody tell me please , how to deal with it properly ?
>>
>> There is a note for Maven users at :http://camel.apache.org/mail.html , but
>> I don't use Maven (I could
>> start if its necessary ) and I am not sure if its possible with the ActiveMQ
>> installation as the Maven files
>> are already in the webapps/camel directory (I am not really sure if its a
>> problem or not).
>>
>> Cheers
>> Remi
>>
>
>


Re: ActiveMQ server with Camel and smtp component

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You need the JARs which is listed as compile.


[INFO] The following files have been resolved:
[INFO]    aopalliance:aopalliance:jar:1.0:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:test
[INFO]    commons-logging:commons-logging-api:jar:1.1:compile
[INFO]    javax.activation:activation:jar:1.1:compile
[INFO]    javax.mail:mail:jar:1.4.3:compile
[INFO]    junit:junit:jar:4.8.1:test
[INFO]    log4j:log4j:jar:1.2.16:test
[INFO]    org.apache.camel:camel-core:jar:2.6-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-spring:jar:2.6-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-test:jar:2.6-SNAPSHOT:test
[INFO]    org.fusesource.commonman:commons-management:jar:1.0:compile
[INFO]    org.jvnet.mock-javamail:mock-javamail:jar:1.7:test
[INFO]    org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO]    org.springframework:spring-tx:jar:3.0.5.RELEASE:compile


On Mon, Nov 29, 2010 at 11:39 AM, Remi Malessa <re...@llgc.org.uk> wrote:
> Hi.
> I have ActiveMQ 5.4.1 .
> It seems like it doesn't have the smtp component libraries by default.
> I've tried to juggle with the Camel (on its own) installation but I've got
> it all mixed up.
>
> Could somebody tell me please , how to deal with it properly ?
>
> There is a note for Maven users at :http://camel.apache.org/mail.html , but
> I don't use Maven (I could
> start if its necessary ) and I am not sure if its possible with the ActiveMQ
> installation as the Maven files
> are already in the webapps/camel directory (I am not really sure if its a
> problem or not).
>
> Cheers
> Remi
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

ActiveMQ server with Camel and smtp component

Posted by Remi Malessa <re...@llgc.org.uk>.
Hi.
I have ActiveMQ 5.4.1 .
It seems like it doesn't have the smtp component libraries by default.
I've tried to juggle with the Camel (on its own) installation but I've 
got it all mixed up.

Could somebody tell me please , how to deal with it properly ?

There is a note for Maven users at :http://camel.apache.org/mail.html , 
but I don't use Maven (I could
start if its necessary ) and I am not sure if its possible with the 
ActiveMQ installation as the Maven files
are already in the webapps/camel directory (I am not really sure if its 
a problem or not).

Cheers
Remi

Re: Integration camel and spring-integration

Posted by Bingliu <li...@gmail.com>.
Thanks, the problem has been solved.I configure the "inOut=true" in the
options.
-- 
View this message in context: http://camel.465427.n5.nabble.com/Integration-camel-and-spring-integration-tp3284105p3284149.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Integration camel and spring-integration

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Looks like you either have to set MEP to InOnly or add an inputChannel
option on the spring-integration endpoint so it knows where to receive
the reply from SI.

Of course the Camel component should have better validation so it can
thrown a better error message. I will create a ticket.


On Mon, Nov 29, 2010 at 10:22 AM, Bingliu <li...@gmail.com> wrote:
>
> Hi, I am integrating camel and spring-integration now. Please look this:
>                <camel:route>
>                        <camel:from uri="direct:toIntegration"/>
>                        <camel:bean ref="testIn"/>
>                        <camel:to uri="spring-integration:inChannel"/>
>                </camel:route>
> the spring-integration configuration is this :
>        <int:channel id="inChannel"/>
>        <int:channel id="outChannel"/>
>
>        <int:service-activator ref="testActivator" method="test"
> input-channel="inChannel"/>
>
>        <bean id="testActivator" class="com.jbsoft.msb.db.TestActivator"/>
> but a problem has occur,please look this:
> 2010 十一月 29 17:19:22 21374 DEBUG [OSGi Console]
> org.apache.camel.processor.DefaultErrorHandler     - Failed delivery for
> exchangeId: 28711046-b8b8-4e89-91a9-b6ef92214a39. On delivery attempt: 0
> caught: java.lang.NullPointerException
> 2010 十一月 29 17:19:22 21376 ERROR [OSGi Console]
> org.apache.camel.processor.DefaultErrorHandler     - Failed delivery for
> exchangeId: 28711046-b8b8-4e89-91a9-b6ef92214a39. Exhausted after delivery
> attempt: 1 caught: java.lang.NullPointerException
> java.lang.NullPointerException
>        at
> org.apache.camel.component.spring.integration.SpringIntegrationProducer.process(SpringIntegrationProducer.java:87)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:106)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:104)
>        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:189)
>        at
> org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:103)
>        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:87)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at
> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>        at
> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:97)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:185)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:151)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:89)
>        at
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>        at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:75)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:70)
>        at
> org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:44)
>        at
> org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:230)
>        at
> org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:209)
>        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:189)
>        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:208)
>        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:152)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:113)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:117)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:134)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:282)
>        at com.jbsoft.msb.db.Activator._test1(Activator.java:46)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
>        at java.lang.Thread.run(Thread.java:619)
> 2010 十一月 29 17:19:22 21382 DEBUG [OSGi Console]
> org.apache.camel.processor.DefaultErrorHandler     - This exchange is not
> handled so its marked as failed: Exchange[Message: [B@1e81d48]
> 2010 十一月 29 17:19:22 21382 DEBUG [OSGi Console]
> org.apache.camel.processor.Pipeline     - Message exchange has failed so
> breaking out of pipeline: Exchange[Message: [B@1e81d48] Exception:
> java.lang.NullPointerException
> org.apache.camel.CamelExecutionException: Exception occurred during
> execution on the exchange: Exchange[Message: [B@1e81d48]
>        at
> org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1127)
>        at
> org.apache.camel.util.ExchangeHelper.extractResultBody(ExchangeHelper.java:448)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:440)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:134)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:282)
>        at com.jbsoft.msb.db.Activator._test1(Activator.java:46)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
>        at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
> I see the example on the website.The configuration as same as the example?
> What cause of the problem is it?Thanks
> --
> View this message in context: http://camel.465427.n5.nabble.com/Integration-camel-and-spring-integration-tp3284105p3284105.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/