You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Sudheer G <su...@syntelinc.com> on 2009/07/14 15:09:49 UTC

java.lang.IllegalStateException: Use an InOut MEP

Hi,

I'm using service mix 3.3.1

the config file is made of the below su's. 

The flow is as follows.

1. quartz ---> eip: static Routing --> file poller --> eip :xpath splitter
--> eip validation -->file sender

Kindly guide me where to use the pipeline components to overcome the below
error.


where I'm getting the below error :


ERROR - EIPComponent  - Error processing exchange InOnly[
  id: ID:10.126.37.124-12279337329-2:1
  status: Active
  role: provider
  service: {http://XXXX/}routingSlip
  endpoint: routeSlip
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://XXXX/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://XXXX/}timer:endpoint</fullname><description/><fireTime>Tue
Jul 14 17:48:49 IST 2009</fireTim
e></timer>
]
java.lang.IllegalStateException: Use an InOut MEP
        at
org.apache.servicemix.eip.patterns.StaticRoutingSlip.processProviderAsync(StaticRoutingSlip.java:167)
        at
org.apache.servicemix.eip.patterns.StaticRoutingSlip.processAsync(StaticRoutingSlip.java:142)
        at
org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:185)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
INFO  - JBIContainer                   - Shutting down ServiceMix JBI
Container (ServiceMix) stopped
INFO  - JBIContainer                   - Waiting for complete shutdown of
the components and service assemblies
ERROR - FilePoller                     - Failed to process file:
file:///C:/Input/
ervicemix POC/NGFD VFS/Input/HRSample-1.xml. Reason:
javax.jbi.messaging.MessagingException: java.lang.InterruptedException
javax.jbi.messaging.MessagingException: java.lang.InterruptedException
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:511)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:443)
        at
org.apache.servicemix.components.vfs.FilePoller.processFile(FilePoller.java:188)
        at
org.apache.servicemix.components.vfs.FilePoller.processFileAndDelete(FilePoller.java:162)
        at
org.apache.servicemix.components.vfs.FilePoller$1.run(FilePoller.java:151)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.waitForExchange(DeliveryChannelImpl.java:712)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:473)
        ... 7 more
-- 
View this message in context: http://www.nabble.com/java.lang.IllegalStateException%3A-Use-an-InOut-MEP-tp24479107p24479107.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: java.lang.IllegalStateException: Use an InOut MEP

Posted by Madesclair Vivian <vm...@sopragroup.com>.
Hi,

Have you solved this yet? If not, I could try to help my have no experience in several of your components so I need more details.

It seems to me that the file poller does not need to receive message. I don't know quartz nor eip'validation (eip'validation isn't in smx doc?)
Basicaly I can understand :
File poller --> routingSlip(splitter --> validation) --> file sender
Assuming that validation is using InOut MEP (i'm quite sure splitter is using InOut)
How does your quartz comes in? On which component is the Error?

Regards
Vivian


-----Message d'origine-----
De : Sudheer G [mailto:sudheer_gannavarapu@syntelinc.com] 
Envoyé : mardi 14 juillet 2009 15:10
À : users@servicemix.apache.org
Objet : java.lang.IllegalStateException: Use an InOut MEP


Hi,

I'm using service mix 3.3.1

the config file is made of the below su's. 

The flow is as follows.

1. quartz ---> eip: static Routing --> file poller --> eip :xpath splitter
--> eip validation -->file sender

Kindly guide me where to use the pipeline components to overcome the below error.


where I'm getting the below error :


ERROR - EIPComponent  - Error processing exchange InOnly[
  id: ID:10.126.37.124-12279337329-2:1
  status: Active
  role: provider
  service: {http://XXXX/}routingSlip
  endpoint: routeSlip
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://XXXX/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://XXXX/}timer:endpoint</fullname><description/><fi
ullname>reTime>Tue
Jul 14 17:48:49 IST 2009</fireTim
e></timer>
]
java.lang.IllegalStateException: Use an InOut MEP
        at
org.apache.servicemix.eip.patterns.StaticRoutingSlip.processProviderAsync(StaticRoutingSlip.java:167)
        at
org.apache.servicemix.eip.patterns.StaticRoutingSlip.processAsync(StaticRoutingSlip.java:142)
        at
org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:185)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
INFO  - JBIContainer                   - Shutting down ServiceMix JBI
Container (ServiceMix) stopped
INFO  - JBIContainer                   - Waiting for complete shutdown of
the components and service assemblies
ERROR - FilePoller                     - Failed to process file:
file:///C:/Input/
ervicemix POC/NGFD VFS/Input/HRSample-1.xml. Reason:
javax.jbi.messaging.MessagingException: java.lang.InterruptedException
javax.jbi.messaging.MessagingException: java.lang.InterruptedException
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:511)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:443)
        at
org.apache.servicemix.components.vfs.FilePoller.processFile(FilePoller.java:188)
        at
org.apache.servicemix.components.vfs.FilePoller.processFileAndDelete(FilePoller.java:162)
        at
org.apache.servicemix.components.vfs.FilePoller$1.run(FilePoller.java:151)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.waitForExchange(DeliveryChannelImpl.java:712)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:473)
        ... 7 more
--
View this message in context: http://www.nabble.com/java.lang.IllegalStateException%3A-Use-an-InOut-MEP-tp24479107p24479107.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.