Skip to Content
0

StackOverflow exception when importing external XSD to integration Designer (SAP PI 7.4 AEX)

Sep 21, 2017 at 02:50 PM

40

avatar image
Former Member

Hi,

we are on SAP PI 7.4 AEX. I am trying to import an external definition (this one: http://www.editeur.org/files/ONIX%203/ONIX_BookProduct_XSD_schema+codes_Issue_38.zip)

Importing ONIX_BookProduct_3.0_reference.xsd gives me a java StackOverflow Error (34000 lines:)). Here an excerpt:

javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.StackOverflowError java.lang.RuntimeException: java.lang.StackOverflowError at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:99) 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.$Proxy1322.convertExternalDocument(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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: java.lang.StackOverflowError at java.util.TreeMap.cmp(TreeMap.java:4504) at java.util.TreeMap.get(TreeMap.java:4381) at com.sap.aii.utilxi.xsd.api.XsdHelper.getTagForNode(XsdHelper.java:875) at com.sap.aii.utilxi.xsd.api.XsdNode.throwNotAllowedElementException(XsdNode.java:379) at com.sap.aii.utilxi.xsd.api.XsdRestriction.setBaseSimpleType2(XsdRestriction.java:246) ... (9.000 more) at com.sap.aii.utilxi.xsd.api.XsdSimpleType.loadSpecificity(XsdSimpleType.java:115) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:259) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdSchemaFromXdomRoot(XsdNode.java:320) at com.sap.aii.utilxi.xsd.api.XsdHandler.parseSchema(XsdHandler.java:155) at com.sap.aii.utilxi.xsd.api.XsdHandler.parseSchema(XsdHandler.java:129) at com.sap.aii.ibrep.server.extdef.XsdInternalServerExternalCategoryService.convertToXsd(XsdInternalServerExternalCategoryService.java:71) at com.sap.aii.ibrep.server.extdef.XsdInternalServerExternalCategoryService.convert(XsdInternalServerExternalCategoryService.java:34) at com.sap.aii.ibrep.server.extdef.ServerExternalConversionService.convert(ServerExternalCategoryServiceProvider.java:42) at com.sap.aii.ibrep.server.misc.RepSpecMiscServicesBean.convertExternalDocument(RepSpecMiscServicesBean.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) ... 36 more javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.StackOverflowError at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:99) 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.$Proxy1322.convertExternalDocument(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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: java.lang.RuntimeException: java.lang.StackOverflowError ... 37 more Caused by: java.lang.StackOverflowError at java.util.TreeMap.cmp(TreeMap.java:4504) at java.util.TreeMap.get(TreeMap.java:4381) at com.sap.aii.utilxi.xsd.api.XsdHelper.getTagForNode(XsdHelper.java:875) at com.sap.aii.utilxi.xsd.api.XsdNode.throwNotAllowedElementException(XsdNode.java:379) at com.sap.aii.utilxi.xsd.api.XsdRestriction.setBaseSimpleType2(XsdRestriction.java:246) ....(at com.sap.aii.utilxi.xsd.api.XsdRestriction.setBaseSimpleType2(XsdRestriction.java:246) is repeated 34000 times) ... (17.000 more) at com.sap.aii.utilxi.xsd.api.XsdSimpleType.loadSpecificity(XsdSimpleType.java:115) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:259) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdNodeFromXdomElement(XsdNode.java:347) at com.sap.aii.utilxi.xsd.api.XsdNode.load(XsdNode.java:274) at com.sap.aii.utilxi.xsd.api.XsdNode.getXsdSchemaFromXdomRoot(XsdNode.java:320) at com.sap.aii.utilxi.xsd.api.XsdHandler.parseSchema(XsdHandler.java:155) at com.sap.aii.utilxi.xsd.api.XsdHandler.parseSchema(XsdHandler.java:129) at com.sap.aii.ibrep.server.extdef.XsdInternalServerExternalCategoryService.convertToXsd(XsdInternalServerExternalCategoryService.java:71) at com.sap.aii.ibrep.server.extdef.XsdInternalServerExternalCategoryService.convert(XsdInternalServerExternalCategoryService.java:34) at com.sap.aii.ibrep.server.extdef.ServerExternalConversionService.convert(ServerExternalCategoryServiceProvider.java:42) at com.sap.aii.ibrep.server.misc.RepSpecMiscServicesBean.convertExternalDocument(RepSpecMiscServicesBean.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) ... 36 more

I think it is looping to infinity somewhere.

The line at com.sap.aii.utilxi.xsd.api.XsdRestriction.setBaseSimpleType2(XsdRestriction.java I find 34.000 times in the trace.

Any suggestions?

Thank you!

Regards

Holger

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers