Continuing the error saga:

The thing is that, file is written in the archive directory very well and
also transformed to XML as required.  But when I look at the log file (have
utrned on the DEBUG) I see bunch of "null" errors.

Would you please shed some light on it:  FYI, when I use
FilePoller->FileWriter wihtout any static-recipient-list I don't see any
errors.  But as soon as I introduce the static-recipient-list, I see these
errors.
Is it because enddoint="endpoint" and "endpoint" not defined anywhere.  
Also, another thing to note is that, I am transferring a binary file as an
attachment and I believe the message contents could be null, if that's the
case than how do we specify a fake XML message.

Here is the servicemix.xml snippet:

<sm:activationSpec componentName="filePoller" service="foo:filePoller"
destinationService="foo:recipients">
  <sm:component>
    <bean class="org.apache.servicemix.components.file.FilePoller"> 
                                <property name="workManager" 
ref="workManager"/> 
                                <property name="deleteFile" value="false"/>
                                <property name="file"
value="c:/projects/acgTest/incoming/vendor"/>
                                <property name="period" value="6000000"/>
                                <property name="marshaler" ref="marshaler"/> 
                                </bean>
                        </sm:component> 
                </sm:activationSpec>
                
                <sm:activationSpec> 
                        <sm:component> 
                                <eip:component> 
                                <eip:endpoints> 
                                <eip:static-recipient-list 
service="foo:recipients"
endpoint="endpoint"> 
                                  <eip:recipients>
                                        <eip:exchange-target 
service="foo:fileWriter" />
// archive
                                  </eip:recipients> 
                                </eip:static-recipient-list> 
                                        </eip:endpoints> 
                                </eip:component> 
                                </sm:component> 
                        </sm:activationSpec> 

                    <!-- Archive the file -->
                <sm:activationSpec componentName="fileWriter"
service="foo:fileWriter" endpoint="endpoint"> 
                        <sm:component> 
                                <bean 
class="org.apache.servicemix.components.file.FileWriter">
                                        <property name="directory"
value="c:/projects/acgTest/archive/vendor"/>
                                        <property name="autoCreateDirectory" 
value="true"/>
                                        <property name="marshaler" 
ref="marshaler"/> 
                                </bean>
                        </sm:component> 
                </sm:activationSpec>

16:39:47,346 | DEBUG | Thread-11  | SedaQueue                |
.jbi.nmr.flow.seda.SedaQueue$1  224 |
[EMAIL PROTECTED] dequeued
exchange: MessageExchange[
  id: ID:skadakia-2616-1152661186826-1:0
  status: Active
  role: provider
  service: {http://servicemix.org/demo/}recipients
  endpoint: endpoint
  in: 
]
16:39:47,346 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  577 | Processing inbound exchange:
MessageExchange[
  id: ID:skadakia-2616-1152661186826-1:0
  status: Active
  role: provider
  service: {http://servicemix.org/demo/}recipients
  endpoint: endpoint
  in: 
]
16:39:47,346 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  613 | Received: MessageExchange[
  id: ID:skadakia-2616-1152661186826-1:0
  status: Active
  role: provider
  service: {http://servicemix.org/demo/}recipients
  endpoint: endpoint
  in: 
]
16:39:47,346 | DEBUG | Thread-11  | EIPSpringComponent       |
emix.common.AsyncBaseLifeCycle  376 | Received exchange: status: Active,
role: Provider
16:39:47,356 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  404 | Send
ID:skadakia-2616-1152661186826-2:0 in
DeliveryChannel{ID:skadakia-2611-1152661184913-0:0}
16:39:47,356 | DEBUG | Thread-11  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.jaxp.StringSource.getInputStream(StringSource.java:56)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(SourceTransformer.java:221)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString(MessageExchangeImpl.java:695)
        at java.lang.String.valueOf(String.java:2131)
        at java.lang.StringBuffer.append(StringBuffer.java:370)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:343)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:410)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:447)
        at org.apache.servicemix.eip.EIPEndpoint.send(EIPEndpoint.java:202)
        at
org.apache.servicemix.eip.patterns.StaticRecipientList.processAsync(StaticRecipientList.java:155)
        at org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:238)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:397)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:42)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:622)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:226)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:534)
16:39:47,366 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  343 | Sent: null
16:39:47,366 | DEBUG | Thread-11  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.jaxp.StringSource.getInputStream(StringSource.java:56)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(SourceTransformer.java:221)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString(MessageExchangeImpl.java:695)
        at java.lang.String.valueOf(String.java:2131)
        at java.lang.StringBuffer.append(StringBuffer.java:370)
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.resolveAddress(DefaultBroker.java:390)
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:286)
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:713)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:374)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:410)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:447)
        at org.apache.servicemix.eip.EIPEndpoint.send(EIPEndpoint.java:202)
        at
org.apache.servicemix.eip.patterns.StaticRecipientList.processAsync(StaticRecipientList.java:155)
        at org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:238)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:397)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:42)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:622)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:226)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:534)
16:39:47,366 | DEBUG | Thread-11  | DefaultBroker            |
rvicemix.jbi.nmr.DefaultBroker  390 | Routing exchange null to:
ServiceEndpoint[service={http://servicemix.org/demo/}xmltransformer,endpoint=endpoint]
16:39:47,366 | DEBUG | Thread-11  | SedaFlow                 |
emix.jbi.nmr.flow.AbstractFlow  115 | Called Flow send
16:39:47,366 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  404 | Send
ID:skadakia-2616-1152661186826-2:1 in
DeliveryChannel{ID:skadakia-2611-1152661184913-0:0}
16:39:47,376 | DEBUG | Thread-11  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString

Thank You.

Sundeep

-- 
View this message in context: 
http://www.nabble.com/servicemix-eip-error%3A-Use-an-InOnly-or-RobustInOnly-MEP-tf1916514.html#a5280568
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to