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/13 17:35:20 UTC

Service Mix Error : java.lang.IllegalStateException: Use an InOut MEP

Hi,

I need to split an xml file from the SFTP server.

When I'm running the below code, it throws the following exception

<?xml version="1.0" encoding="UTF-8"?>
 <!--
  ############################################################ 
				Developed  by  SG21843
  ############################################################
 -->
<beans	xmlns:sm="http://servicemix.apache.org/config/1.0" 
                xmlns:eip="http://servicemix.apache.org/eip/1.0"
		xmlns:quartz="http://servicemix.apache.org/quartz/1.0"
                xmlns:vfs="http://servicemix.apache.org/vfs/1.0"
		xmlns:jms="http://servicemix.apache.org/jms/1.0"
		xmlns:amq="http://activemq.apache.org/schema/core"
		xmlns:amqra="http://activemq.apache.org/schema/ra"
	        xmlns:amqpool="http://jencks.org/amqpool/2.0"
		xmlns:amex="http://amex.test/"
                xmlns:jencks="http://jencks.org/2.0"
		xmlns:validation="http://servicemix.apache.org/validation/1.0">

 <bean id="jndi"
class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
factory-method="makeInitialContext" singleton="true" />

	 <!-- the JBI container -->

	<sm:container id="jbi" useMBeanServer="true" createMBeanServer="true">
 
		<sm:activationSpecs>

			<!-- Quartz Component - Runs for every 10 min -->

			<sm:activationSpec id="servicemix-quartz" service="amex:timer"   
destinationService="amex:staticRoutingService">
				<sm:component>
						<quartz:component>
							 <quartz:endpoints>
								<quartz:endpoint service="amex:timer" endpoint="endpoint"
targetService="amex:staticRoutingService">
										<quartz:trigger>
											<quartz:simple repeatCount="500" repeatInterval="1000"
startDelay="2000" />
									        </quartz:trigger>
								</quartz:endpoint>
							</quartz:endpoints>
						</quartz:component>
				</sm:component>
			</sm:activationSpec>


			<!-- Static Routing -->

			 <sm:activationSpec id="servicemix-staticRouting">
				<sm:component>
					 <eip:component>
							<eip:endpoints>
									<eip:static-routing-slip service="amex:staticRoutingService"
endpoint="epStaticRouting">
										 <eip:targets>
												<eip:exchange-target service="amex:filePoller" />
												<!--<eip:exchange-target service="amex:wireTap" />-->
												<eip:exchange-target service="amex:xpathSplitter" />
												<!--<eip:exchange-target service="amex:pipeline" />-->
												<eip:exchange-target service="amex:serviceValidation" />
											</eip:targets>
									 </eip:static-routing-slip>
							</eip:endpoints>
					 </eip:component>
			      </sm:component>
			  </sm:activationSpec>

			  <!-- 3.  VFS Component -->

			<sm:activationSpec id="servicemix-fileInPut" service="amex:filePoller"
destinationService="amex:wireTap">
					<sm:component>
							 <bean class="org.apache.servicemix.components.vfs.FilePoller">

								<property name="path" value="file:///C:/Documents and
Settings/SG21843/Desktop/NGFD Servicemix POC/NGFD VFS/Input/" />
								 <property name="delay" value="1000" />
								 <property name="marshaler">
										<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler"/>
								  </property>
							 </bean>
					    </sm:component>
			</sm:activationSpec>

		<!-- JMS Consumer -->
		<!--
		<jms:consumer service="amex:simpleReceiver" 
						endpoint="jmsEndpoint"
						targetService="amex:xpathSplitter"
						destinationName="in-queue"
						replyDestinationName="out-queue"
						connectionFactory="#connectionFactory"
						marshaler="#replyInOutMarshaler"/>
						<bean id="replyInOutMarshaler"
class="org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler"> 
							<property name="mep" value="http://www.w3.org/2004/08/wsdl/in-out" /> 
						</bean>
						<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
							<property name="brokerURL" value="tcp://localhost:61616" />
						</bean>
		-->
		 <!-- Message Filter Component -->
		<!--
		<sm:activationSpec id="servicemix-messageFilter"
service="amex:messageFilter" destinationService="amex:xpathSplitter">
			 <sm:component>
					 <eip:component>
							<eip:endpoints>
								<eip:message-filter service="amex:messageFilter"
endpoint="endpoint">
									<eip:target>
										<eip:exchange-target service="amex:xpathSplitter" />
									</eip:target>
									<eip:filter>
										  <eip:xpath-predicate xpath="/*/*/" />
									</eip:filter>
								</eip:message-filter>
							</eip:endpoints>
					 </eip:component>
			</sm:component>
		 </sm:activationSpec>
		-->
		  <!-- Wire TAP Component -->
	
		 <sm:activationSpec id="servicemix-wireTap" service="amex:wireTap"
destinationService="amex:xpathSplitter">
			 <sm:component>
				 <eip:component>
						<eip:endpoints>
								<eip:wire-tap service="amex:wireTap" endpoint="endpoint">
									<eip:target>
										<eip:exchange-target service="amex:xpathSplitter" />
									 </eip:target>
									<eip:inListener>
										<eip:exchange-target service="amex:xpathSplitter" />
									</eip:inListener>
								</eip:wire-tap>
						</eip:endpoints>
				 </eip:component>
		      </sm:component>
		 </sm:activationSpec>
	
		<!-- Splitter -->
		 <sm:activationSpec id="servicemix-splitter" service="amex:xpathSplitter"
destinationService="amex:receiver">
			 <sm:component>
				 <eip:component>
						<eip:endpoints>
							<eip:xpath-splitter service="amex:xpathSplitter" endpoint="endpoint"  
xpath="/*/*" >
									 <eip:target>
											<eip:exchange-target service="amex:pipeline" />
									 </eip:target>
									<!--<eip:namespace-context id="nsContext">
										 <eip:namespaces>
											    <eip:namespace
prefix="amex">http://www.americanexpress.com/businesstravel/DAGRProfile</eip:namespace>
										  </eip:namespaces>
									</eip:namespace-context>-->
								
							</eip:xpath-splitter>
						</eip:endpoints>
				 </eip:component>
			</sm:component>
		  </sm:activationSpec>

		<!-- Pipeline -->
		<sm:activationSpec id="servicemix-pipeLine" service="amex:pipeline"
destinationService="amex:receiver">
			 <sm:component>
				 <eip:component>
						<eip:endpoints>
								<eip:pipeline service="amex:pipeline" endpoint="endpoint">
									<eip:transformer>
										<eip:exchange-target service="amex:receiver" />
									 </eip:transformer>
									 <eip:target>
											<eip:exchange-target service="amex:xpathSplitter" />
									 </eip:target>
								  </eip:pipeline>
					</eip:endpoints>
				 </eip:component>
		      </sm:component>
		 </sm:activationSpec>
	



		   <!-- Validation -->
		   <!--
		 <sm:activationSpec id="servicemix-validation"
service="amex:serviceValidation" destinationService="amex:serviceValidation"
>
			 <sm:component>
				 <validation:component>
				           <validation:endpoints>
						<validation:endpoint service="amex:serviceValidation" 
						        endpoint="endpoint" 
		                                       
schemaResource="file:///C:/Documents and Settings/SG21843/Desktop/NGFD
Servicemix POC/NGFD VFS/HRSample-1.xsd"
		                                        handlingErrorMethod="FAULT_FLOW">
				    				<property name="errorHandlerFactory">
								     		<bean
class="org.apache.servicemix.validation.handler.MessageAggregatingErrorHandlerFactory">
				      							<property name="rootPath" value="file:///C:/Documents and
Settings/SG21843/Desktop/NGFD Servicemix POC/NGFD
VFS/Fault/payload/messages"/>
				    							<property name="namespace"
value="http://www.servicemix.org/fault"/>
			    								<property name="includeStackTraces" value="false"/>
								      		</bean>
							    	</property>
						</validation:endpoint>
					</validation:endpoints>
				</validation:component>
			</sm:component>
	 </sm:activationSpec>
	-->

	<!-- Deprecated Validation -->
	<!--
	 <sm:activationSpec id="servicemix-validation"
service="amex:serviceValidation" endpoint="SchemaValidator"
destinationService="amex:receiver">
		    <sm:component>
			        <bean
class="org.apache.servicemix.components.validation.ValidateComponent">
				            <property name="schemaResource" value="file:///C:/Documents
and Settings/SG21843/Desktop/NGFD Servicemix POC/NGFD VFS/HRSample-1.xsd"/>
			        </bean>
		    </sm:component>
	</sm:activationSpec>
	-->
	 <!-- Write files to the outbox directory -->
	   <sm:activationSpec id="servicemix-fileOutPut"   
service="amex:receiver">
			   <sm:component>
				     <bean class="org.apache.servicemix.components.vfs.FileWriter">

					    <property name="path" value="file:///C:/Documents and
Settings/SG21843/Desktop/NGFD Servicemix POC/NGFD VFS/Output/" />
					    <property name="marshaler">
						      <bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler"/>
					    </property>
				     </bean>
			    </sm:component>
	   </sm:activationSpec>

	<!-- Trace the Component -->
	<!--
	<sm:activationSpec componentName="trace" service="amex:trace">
		<sm:component>
				<bean class="org.apache.servicemix.components.util.TraceComponent" />
		</sm:component>
	</sm:activationSpec>
	-->
	</sm:activationSpecs>
</sm:container>
 </beans> 





ERROR :


ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:18
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:47 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:19
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:48 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:20
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52: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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:21
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:50 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:22
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:51 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:23
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:52 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:24
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:53 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:25
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:54 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:26
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:55 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)
ERROR - EIPComponent                   - Error processing exchange InOnly[
  id: ID:10.126.37.124-12274b52302-2:27
  status: Active
  role: provider
  service: {http://amex.test/}staticRoutingService
  endpoint: epStaticRouting
  in: <?xml version="1.0"
encoding="UTF-8"?><timer><name>{http://amex.test/}timer:endpoint</name><group>DEFAULT</group><f
ullname>DEFAULT.{http://amex.test/}timer:endpoint</fullname><description/><fireTime>Mon
Jul 13 20:52:56 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:/Documents and Settings/SG21843/Desktop/NGFD S
ervicemix POC/NGFD VFS/Input/HRSample.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
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED paused.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED paused.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
INFO  - JBIContainer                   - Components and service assemblies
have been shut down
INFO  - JBIContainer                   - Deactivating component
#SubscriptionManager#
INFO  - JBIContainer                   - ServiceMix JBI Container
(ServiceMix) stopped
Terminate batch job (Y/N)?

-- 
View this message in context: http://www.nabble.com/Service-Mix-Error-%3A-java.lang.IllegalStateException%3A-Use-an-InOut-MEP-tp24464026p24464026.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.