SAPфорум.RU https://sapboard.ru/forum/ |
|
"Cannot create target element" потому что "Target XSD requires a value" https://sapboard.ru/forum/viewtopic.php?f=70&t=92645 |
Страница 1 из 1 |
Автор: | doleynikov [ Чт, мар 17 2016, 09:56 ] |
Заголовок сообщения: | "Cannot create target element" потому что "Target XSD requires a value" |
Приветствую, коллеги! Странная проблема. Есть графический мапинг документа в интерфейс вебсервиса. Тестовый пример проходит в тестировании мапинга, но дает ошибку при тестировании конфигурации! Вот, что выдает в дебаг логе мапинга: Code: 09:51:55 Start of test Document start Start tag [ns0:PutInvoice] Add raw attribute [ xmlns:ns0="http://www.xxx.ru/interfaces/h70/sap"] Start tag [ns0:invoice] Start tag [ns0:Number] Put value [467/001] Close tag [ns0:Number] Start tag [ns0:Date] Put value [2015-01-30] Close tag [ns0:Date] Start tag [ns0:Positions] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001263659] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i SOLMAZER Банка д/сып стекл 720мл фиол] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [6.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [633.26] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [633.26] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [113.99] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10225052/141014/0003863] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [TR] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001275647] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i Сухарница плет пласт овал 24х12х8корич] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [3.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [146.91] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [146.91] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [26.44] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10216100/100713/0067869] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [CN] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001275651] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i Сухарница плет плас прям28х19кор] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [5.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [397.59] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [397.59] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [71.57] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10216100/100713/0067869] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [CN] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001053483] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Банка д/сып прод пласт с ложкой 0,75л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [10.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [371.28] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [371.28] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [66.83] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001004861] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Банка д/сып продук пласт 1,5л овальная] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [21.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [926.81] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [926.81] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [166.83] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001281621] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Банка д/сыпуч продукт пласт Стайл 4л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [4.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [338.00] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [338.00] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [60.84] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001263667] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i SOLMAZER Бутылка д/масла стек 250мл] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [2.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [201.06] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [201.06] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [36.19] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10225052/141014/0003863] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [TR] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001263668] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i SOLMAZER Бутылка д/масла стекло 750мл] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [2.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [351.83] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [351.83] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [63.33] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10225052/141014/0003863] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [TR] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001263665] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i АКЦИЯ SOLMAZERБутылка д/мол ст Коров1л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [12.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [1333.33] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [1333.33] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [240.00] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10225052/141014/0003863] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [TR] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001184904] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Контейнер д/СВЧ пласт прямоуг 1,8л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [11.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [688.89] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [688.89] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [124.00] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001252337] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Контейнер д/СВЧ пласт Фрэш Фуд прям0,6л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [28.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [961.98] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [961.98] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [173.16] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001252338] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [Контейнер-менажница д/СВЧ пласт квад2,2л] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [36.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [4207.92] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [4207.92] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [757.43] Close tag [ns0:NDSSum] Start tag [ns0:CountryCode] Put value [RU] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Start tag [ns0:Rows] Start tag [ns0:GoodsCode] Put value [000000000001275653] Close tag [ns0:GoodsCode] Start tag [ns0:GoodsName] Put value [i Сухарница плет пласт кругл 21х21х8 кор] Close tag [ns0:GoodsName] Start tag [ns0:Count] Put value [18.000] Close tag [ns0:Count] Start tag [ns0:Sum] Put value [920.75] Close tag [ns0:Sum] Start tag [ns0:FullSum] Put value [920.75] Close tag [ns0:FullSum] Start tag [ns0:NDSSum] Put value [165.74] Close tag [ns0:NDSSum] Start tag [ns0:GTD] Put value [10216100/100713/0067869] Close tag [ns0:GTD] Start tag [ns0:CountryCode] Put value [CN] Close tag [ns0:CountryCode] Start tag [ns0:TaxRate] Put value [18.000] Close tag [ns0:TaxRate] Close tag [ns0:Rows] Close tag [ns0:Positions] Start tag [ns0:SAPID] Put value [0091063948] Close tag [ns0:SAPID] Start tag [ns0:Debitor] Put value [0000100952] Close tag [ns0:Debitor] Close tag [ns0:invoice] Close tag [ns0:PutInvoice] Document end Execution of mapping on server took 15 milli-seconds Executed successfully 09:51:55 End of test а вот, что пишет при тесте конфигурации Code: <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace> <Trace level="2" type="T">......attachment XI_Context not found </Trace> <Trace level="3" type="T">Mapping already defined in interface determination </Trace> <Trace level="3" type="T">Object ID of Interface Mapping F36A30035FE63CF281E2110F81237CF2 </Trace> <Trace level="3" type="T">Version ID of Interface Mapping D3BCE0A0BCB911E4C61AE867C0A80083 </Trace> <Trace level="1" type="T">Interface Mapping http://ru.xxx.hm.inbound.invoice hm_INVOIC02_2_InboundInvoice_OM </Trace> <Trace level="3" type="T">Mapping Steps 1 JAVA_JDK com/sap/xi/tf/_INVOIC02_2_HM_INVOICE_ </Trace> <Trace level="3" type="T">MTOM Attachments are Transferred to the Payload </Trace> <Trace level="3" type="T">Dynamic Configuration Is Empty </Trace> <Trace level="2" type="T">Mode 0 </Trace> <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._INVOIC02_2_HM_INVOICE_ </Trace> <Trace level="1" type="T"> *** START APPLICATION TRACE *** </Trace> <Trace level="3" type="T">Document start </Trace> <Trace level="3" type="T">Start tag [ns0:PutInvoice] </Trace> <Trace level="3" type="T">Add raw attribute [ xmlns:ns0="ru.xxx.hm.inbound.invoice.ws"] </Trace> <Trace level="3" type="T">Start tag [ns0:invoice] </Trace> <Trace level="3" type="T">Start tag [ns1:Number] </Trace> <Trace level="3" type="T">Add raw attribute [ xmlns:ns1="http://ru.xxx.hm.inbound.invoice"] </Trace> <Trace level="3" type="T">Put value [467/001] </Trace> <Trace level="3" type="T">Close tag [ns1:Number] </Trace> <Trace level="3" type="T">Start tag [ns1:Date] </Trace> <Trace level="3" type="T">Add raw attribute [ xmlns:ns1="http://ru.xxx.hm.inbound.invoice"] </Trace> <Trace level="3" type="T">Put value [2015-01-30] </Trace> <Trace level="3" type="T">Close tag [ns1:Date] </Trace> <Trace level="3" type="T">Start tag [ns1:Positions] </Trace> <Trace level="3" type="T">Add raw attribute [ xmlns:ns1="http://ru.xxx.hm.inbound.invoice"] </Trace> <Trace level="3" type="T">Start tag [ns1:Rows] </Trace> <Trace level="3" type="T">Start tag [ns1:GoodsCode] </Trace> <Trace level="3" type="T">Put value [000000000001263659] </Trace> <Trace level="3" type="T">Close tag [ns1:GoodsCode] </Trace> <Trace level="3" type="T">Start tag [ns1:GoodsName] </Trace> <Trace level="3" type="T">Put value [i SOLMAZER Банка д/сып стекл 720мл фиол] </Trace> <Trace level="3" type="T">Close tag [ns1:GoodsName] </Trace> <Trace level="3" type="T">Start tag [ns1:Count] </Trace> <Trace level="3" type="T">Put value [6.000] </Trace> <Trace level="3" type="T">Close tag [ns1:Count] </Trace> <Trace level="3" type="T">Start tag [ns1:Sum] </Trace> <Trace level="3" type="T">Put value [633.26] </Trace> <Trace level="3" type="T">Close tag [ns1:Sum] </Trace> <Trace level="3" type="T">Start tag [ns1:FullSum] </Trace> <Trace level="3" type="T">Put value [633.26] </Trace> <Trace level="3" type="T">Close tag [ns1:FullSum] </Trace> <Trace level="3" type="T">Start tag [ns1:NDSSum] </Trace> <Trace level="3" type="T">Put value [113.99] </Trace> <Trace level="3" type="T">Close tag [ns1:NDSSum] </Trace> <Trace level="3" type="T">Start tag [ns1:GTD] </Trace> <Trace level="3" type="T">Put value [10225052/141014/0003863] </Trace> <Trace level="3" type="T">Close tag [ns1:GTD] </Trace> <Trace level="3" type="T">Start tag [ns1:CountryCode] </Trace> <Trace level="3" type="T">Put value [TR] </Trace> <Trace level="3" type="T">Close tag [ns1:CountryCode] </Trace> <Trace level="1" type="T"> *** END APPLICATION TRACE *** </Trace> <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_INVOIC02_2_HM_INVOICE_ Thrown: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:PutInvoice/ns0:invoice/ns1:Positions/ns1:Rows/ns1:TaxRate. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:375) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:512) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:644) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) 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:71) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:119) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:72) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at sun.reflect.GeneratedMethodAccessor779.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43) 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:74) 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:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) 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:21) 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:16) 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:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy593.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor16592.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:183) at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:269) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:250) </Trace> <Trace level="1" type="T">RuntimeException when executing application mapping program com/sap/xi/tf/_INVOIC02_2_HM_INVOICE_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:PutInvoice/ns0:invoice/ns1:Positions/ns1:Rows/ns1:TaxRate. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD Thrown: com.sap.aii.ib.core.mapping.execution.ApplicationRuntimeException: RuntimeException when executing application mapping program com/sap/xi/tf/_INVOIC02_2_HM_INVOICE_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:PutInvoice/ns0:invoice/ns1:Positions/ns1:Rows/ns1:TaxRate. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:118) 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:71) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:119) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:72) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at sun.reflect.GeneratedMethodAccessor779.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43) 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:74) 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:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) 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:21) 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:16) 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:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy593.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor16592.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:183) at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:269) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:250) Caused by: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:PutInvoice/ns0:invoice/ns1:Positions/ns1:Rows/ns1:TaxRate. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:375) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:422) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:512) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:644) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) ... 37 more </Trace> <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace> Помогите разобраться? |
Автор: | doleynikov [ Чт, мар 17 2016, 10:16 ] |
Заголовок сообщения: | Re: "Cannot create target element" потому что "Target XSD requires a value" |
Извиняюсь за беспокойство. Удалять не буду - может кому-то пригодится мой опыт бега по граблям. Проблема была в том, что конфигурация создавалась копированием объектов из соседней ветки. Вот некоторые ссылки и смотрели туда - я просто недоглядел при правке. То есть, я отлаживал новый мапинг - там все ОК, а при тесте конфигурации в Interface Determination задействовался чужой мапинг. Он, естественно, ругался на сообщение! |
Автор: | Chaser009 [ Чт, мар 17 2016, 10:21 ] |
Заголовок сообщения: | Re: "Cannot create target element" потому что "Target XSD requires a value" |
Я так, помню, боролся полдня с мэппингом, который не реагировал на вносимые изменения, пока вдруг не дошло, что из-за необходимости использования RFC-Lookup, в свое время перенес объекты в другой SC. А полдня правлю мэппинг, который уже давно не используется. |
Страница 1 из 1 | Часовой пояс: UTC + 3 часа |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |