cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

nested exception is java.lang.IllegalArgumentException: Unexpected IDOC received. Cannot process this

Former Member
0 Kudos
287

Hello,

Getting Unexpected IDOC received error If I move the Idoc integration configuration into idocintegration.xml file instead of configuring in the custom extension. I defined the mapping, activator and dummymapping service and this dummy mapping service is overridden in the custom extension.

If I put everything in the custom extension working fine. I am missing some thing not sure what it is..

 Custom extension has this..
 <int:header-value-router input-channel="idocXmlInboundChannel" header-name="IDOCTYP">
     <int:mapping value="TEST_PRODUCT_MATERIAL" channel="TESTPRODUCT" />
 </int:header-value-router>
 
 <int:service-activator id="saperpproductTESTPRODUCTServiceActivator" input-channel="TESTPRODUCT" output-channel="rawFragmentDataInputChannel" 
                 ref="saperpproductTESTPRODUCTMappingService"    method="map" />
                 
 <bean id="saperpproductTESTPRODUCTMappingService" class="com.hybris.datahub.sapidocintegration.IDOCMappingService">
     <property name="rawFragmentDataExtensionSource" value="custom extension name" />
     <property name="rawFragmentDataType" value="RawTestPCustomProduct" />
 </bean>

If I move the mapping and activator to idocintegation xml file then it is not working.. I have idocintegration as dependency in raw.xml file.

If my raw spring xml has only IDOCMappingService implementation then I am getting the above error.

Thanks in adavance.

Accepted Solutions (0)

Answers (0)