Thank you for quick reply.  If you have time, I would like to understand the
reason behind this problem for curiosity sake and also will help me
understand ServiceMix better.

One another thing is that, I am using out of the box VFS FilePoller and
FileWriter (within static-recipient-list, EIP) which uses
BinaryFileMarshaler, again as is.  So how do I define a dummy XML payload,
which property should be set?

Another kind of similar problem I am facing with EIP component usage of
static-routing-slip and/or pipeline consists of the following error, again
everything works fine though, I believe it has something to do with the
response message being received:

               error: javax.jbi.messaging.MessagingException: illegal
exchange status: done

I am using lightweight components extended from TranformComponentSupport.

Here is servicemix.xml snippet, please let me know if I am doing anything
wrong here:

<!-- this is the BinaryFileMarshaler for reading and writing binay files
from a ftp server -->
            <bean id="marshaler"
class="org.apache.servicemix.components.util.BinaryFileMarshaler"
singleton="true">
                <property name="contentType" value="binarydata"/>
                <property name="attachment" value="file"/>
            </bean>

<!-- pipeline and routing slip ->
                <sm:activationSpec> 
                        <sm:component> 
                                <eip:component> 
                                <eip:endpoints>            
                                                        <eip:pipeline 
service="bc:pipeline" endpoint="endpoint">
                                                          <eip:transformer>
                                                            
<eip:exchange-target service="bc:routingSlip" />
                                                          </eip:transformer>
                                                          <eip:target>
                                                            
<eip:exchange-target service="bc:tracer" />
                                                          </eip:target>
                                                        </eip:pipeline>
                                        </eip:endpoints> 
                                </eip:component> 
                                </sm:component> 
                        </sm:activationSpec>
                        
                <sm:activationSpec> 
                        <sm:component> 
                                <eip:component> 
                                <eip:endpoints>            
                                           <eip:static-routing-slip 
service="bc:routingSlip"
endpoint="endpoint">
                                                          <eip:targets>
                                                            
<eip:exchange-target service="bc:xmltransformer" />
                                                            
<eip:exchange-target service="bc:processList" />
                                                            
<eip:exchange-target service="bc:mailsender" />
                                                          </eip:targets>
                                                        
</eip:static-routing-slip>
                                        </eip:endpoints> 
                                </eip:component> 
                                </sm:component> 
                        </sm:activationSpec>

Once agin thank you for kind help.

speed
-- 
View this message in context: 
http://www.nabble.com/EIP-components-throw-NullPointerException-tf2057346.html#a5696712
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to