on 2016 Sep 15 5:36 PM
Hi Team,
Good day!
We are having an issue in our new SAP PO system version 7.5. The scenario is IDOC to file.
The message fails in PO system during the mapping step with below error.
Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_IDOCtoFilemap; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration
Anyone encountered this error? How was it resolved?
Thanks,
Carlo
Request clarification before answering.
Hello Carlo,
Can you run the mapping program in ESR and check if the output is generated as per result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghuraman,
Good day!
To add more context to this issue, we have an ongoing project to migrate all interfaces from the old SAP PI version 7.30 to our new PO version 7.5 system.
At first, everything seems to be working fine after migration as we were able to test every interface successfully in the new PO 7.5 box. Then our Basis team did a full cache refresh and restarted the system. After that, every interface that is using mapping fails with Xerces Parser error. Even the maps which are not using any java mapping or User defined functions are failing with the same Xerces Parser error. Note that this Xerces Parser error only happen during test in the ESR Operation Mapping and at Runtime. However, this issue does not happen when we test in ESR Message Mapping.
Below is the logs from the ESR operation mapping:
com.sap.aii.ib.server.mapping.execution.MappingClassNotFoundException: META-INF/services/org.apache.xerces.xni.parser.xmlparserconfiguration at com.sap.aii.ib.server.mapping.execution.InternalMappingFinder.getInputStream(InternalMappingFinder.java:119) at com.sap.aii.ib.server.mapping.execution.InternalMappingFinder.readFile(InternalMappingFinder.java:62) at com.sap.aii.ib.server.mapping.execution.MappingLoader.getResourceAsStream(MappingLoader.java:148) at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source) at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source) at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source) at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at com.sap.aii.utilxi.hmi.core.gdi2.GdiCharStreamer.getGdiXmlReader(GdiCharStreamer.java:481) at com.sap.aii.utilxi.hmi.core.gdi2.GdiCharStreamer.readGdi(GdiCharStreamer.java:47) at com.sap.aii.utilxi.hmi.core.gdi2.GdiCharStreamer.stringToGdi(GdiCharStreamer.java:107) at com.sap.aii.utilxi.hmi.api.HmiHttpJDKClient.sendRequestAndReceiveResponse(HmiHttpJDKClient.java:277) at com.sap.aii.utilxi.hmi.api.HmiClientAdapter.informServerOfClientDestruction(HmiClientAdapter.java:127) at com.sap.aii.utilxi.hmi.api.HmiClientFactory.destroyClient(HmiClientFactory.java:139) at com.sap.aii.ib.core.hmi.IbHmiClientFactory.destroyClient(IbHmiClientFactory.java:161) at com.sap.aii.ibrep.server.lookup.SystemAccessorHmiClient.close(SystemAccessorHmiClient.java:89) at com.sap.aii.ibrep.server.lookup.LookupServiceProvider$RemoteClientDelegator.close(LookupServiceProvider.java:151) at com.sap.aii.mapping.lookup.RfcAccessor.close(RfcAccessor.java:97) at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:112) at com.sap.aii.mappingtool.tf7.rt.AMultiResIterator$MultiOutIterator.gotoNextContext(AMultiResIterator.java:112) at com.sap.aii.mappingtool.tf7.rt.AResIterator.gotoNextContext(AResIterator.java:20) at com.sap.aii.mappingtool.tf7.rt.AbstractFunctionWrapper.gotoNextContext(AbstractFunctionWrapper.java:38) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:342) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:451) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:451) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:554) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:152) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:692) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:112) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:87) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:54) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:139) at com.sap.aii.ibrep.server.mapping.exec.ExecuteIfMapCommand.execute(ExecuteIfMapCommand.java:33) at com.sap.aii.ib.server.mapping.exec.CommandManager.execute(CommandManager.java:43) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:40) at com.sap.aii.ibrep.server.mapping.MapServiceBean.execute(MapServiceBean.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:172) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:99) at com.sun.proxy.$Proxy3531.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:241) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:483) at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:83) at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72) at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43) at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:1055) at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:59) at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101) at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_WHSORD_DELVRY04_to_MT_Catalyst_SalesOrderDelivery_
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at com.sap.aii.mappingtool.tf7.Transformer.checkParserException(Transformer.java:206) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:160) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:692) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:112) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:87) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:54) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:139) at com.sap.aii.ibrep.server.mapping.exec.ExecuteIfMapCommand.execute(ExecuteIfMapCommand.java:33) at com.sap.aii.ib.server.mapping.exec.CommandManager.execute(CommandManager.java:43) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:40) at com.sap.aii.ibrep.server.mapping.MapServiceBean.execute(MapServiceBean.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:172) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:99) at com.sun.proxy.$Proxy3531.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:241) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:483) at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:83) at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72) at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43) at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:1055) at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:59) at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122) at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101) at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328) Caused by: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:277) at com.sap.aii.mappingtool.tf7.rt.xparser.XParser.run(XParser.java:124) at java.lang.Thread.run(Thread.java:812) Caused by: java.lang.ClassCastException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:270) ... 2 more Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:277) at com.sap.aii.mappingtool.tf7.rt.xparser.XParser.run(XParser.java:124) at java.lang.Thread.run(Thread.java:812) Caused by: java.lang.ClassCastException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:270) ... 2 more Root Cause: java.lang.ClassCastException: Cannot cast class org.apache.xerces.parsers.XIncludeAwareParserConfiguration to interface org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:270) at com.sap.aii.mappingtool.tf7.rt.xparser.XParser.run(XParser.java:124) at java.lang.Thread.run(Thread.java:812)
Hi Raghuraman,
Yes, we are using UDFs for some of the maps. However, we are wondering why we are getting the same error even for maps that does not use UDF.
We never had this issue before Basis had performed the full cache and restart of the system.
We have checked the ESR and did not find anything unusual there. All objects (imported archives etc.) are there in the ESR.
Aside from the ESR, what else can we check? what components can we check in NWA?
Thanks,
Carlo
Carlo,
Note that this Xerces Parser error only happen during test in the ESR Operation Mapping and at Runtime. However, this issue does not happen when we test in ESR Message Mapping.
Check if after the system restart if any NWA parameter related to Messaging is deleted or reset .
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
Thank you for your input. Can you tell me where can I find that parameter in NWA?
To summarize the issue:
1) The issue only happens for interfaces with mapping. Those interfaces without maps runs successfully.
2) For those interfaces with maps, we are able to test successfully in ESR Message Mapping. The issue only occur on the ESR Operation Mapping and during Runtime.
3) For those interfaces with maps, the issue is occurs regardless if they have RFC lookup, Java mapping or UDF.
4) This issue started to happen when our Basis team had performed full cache refresh and restarted the system.
Thanks,
Carlo
Carlos,
http://host:port/nwa/sys-config
Check parameters for Service XPI : Mapping Runtime / XPI : Messaging system , cross check the parameter with old PI system.
Can you please provide the NWA log for this error.
Br,
Manoj
Hi Manoj,
Thanks for the suggestions.
We have checked the following but did not find any inconsistencies.
We raised an OSS message to the vendor SAP and this was their response.
We are still figuring out where to check and configure the class path that SAP mentioned in their response.
Hi Carlo
Could you please attach whole trace, and is this issue intermittent or happening always ?
What functions are you using in mapping ?
Regards,
Dipika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipika,
I have attached the logs in my below reply to Raghuraman.
The issue is always happening every time we test in the ESR Operation Mapping and at Runtime.
However, the error does not appear or happen when we test in ESR Message Mapping.
The issue happens for all interface which use mapping object. Regardless whether that mapping object has a java mapping or user defined function.
Thanks,
Carlo
Hi Team,
Any ideas on what is causing this issue?
Thanks,
Carlo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
58 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.