cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC Lookup Error

Former Member
0 Kudos

Hello,

I have a message mapping with a UDF that execute a JDBC Lookup:

sql = "SELECT....";

DataBaseAccessor accessor = null;

DataBaseResult resultSet = null;

try {

Channel channel = LookupService.getChannel(constantService, constantChannel);

accessor = LookupService.getDataBaseAccessor(channel);

resultSet = accessor.execute(sql);

}

catch (Exception e) {

..............

All looks well but when I test the scenario I get the following exception:

'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.

I don't have any additional configuration on the module page of the communication channel.

Thanks for your help.

Yuvan.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Print the stack trace using the following code. you will be able to debug the issue by using this. You can see the logs in Communication channel of the adapter.



AbstractTrace trace = container.getTrace();
trace.addWarning("DEBUG....");
try
{
trace.addWarning("BEFORE ACCESSOR GET CHANNEL");
accessor = LookupService.getRfcAccessor(channel);
}
catch (Exception e)
{
StackTraceElement stack= e.getStackTrace();
for(int i=0;i<stack.length;i++)
{
StackTraceElement stackTrace = stack;
trace.addWarning("Exception is at : "+stackTrace.toString());
}
}

thanks

amit

Former Member
0 Kudos

Hello Amit,

Thanks for your answer.

I already added the trace and I checked it in SXMB_MONI:

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_OrdenesPrev_to_OrdenPrevtj_</Trace>

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method...

This is the trace according to your sugestion:

<Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>

<Trace level="1" type="T">DEBUG....</Trace>

<Trace level="1" type="T">BEFORE ACCESSOR GET CHANNEL</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:131)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mapping.lookup.DataBaseAccessor.execute(DataBaseAccessor.java:62)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_.selectResourceInfo$(_OrdenesPrev_to_OrdenPrevtj_.java:178)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : java.lang.reflect.Method.invoke(Method.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.cacheContext(C2CFunctionWrapper.java:90)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.gotoNextContext(C2CFunctionWrapper.java:46)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:252)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79)</Trace> ......

Thanks.

Yuvan.

Former Member
0 Kudos

Hello,

Someone have any idea of this error. The Communication Channel works very well in other escenarios.Just fail with JDBC Lookup.

Thanks.

Yuvan.

Former Member
0 Kudos

Hi,

Can you paste the complete code here which has debugging trace you are using and also I would like to know what is the XI version and Service pack you are using.

Just to confirm, you are not using any custom adapter module, neither any Advanced settings, right?

thanks

amit

Former Member
0 Kudos

Hello Amit,

Yes I'm not using any Advanced settings.

Thanks for your help.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Message canceled

-->

- <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">

<Trace level="1" type="T">Party normalization: sender</Trace>

<Trace level="1" type="T">Sender scheme external = XIParty</Trace>

<Trace level="1" type="T">Sender agency external = http://sap.com/xi/XI</Trace>;

<Trace level="1" type="T">Sender party external =</Trace>

<Trace level="1" type="T">Sender party normalized =</Trace>

<Trace level="1" type="B" name="CL_XMS_HTTP_HANDLER-HANDLE_REQUEST" />

- <!-- ************************************

-->

<Trace level="1" type="T">XMB was called with URL /sap/xi/engine?type=entry</Trace>

<Trace level="1" type="T">COMMIT is done by XMB !</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />

<Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />

<Trace level="1" type="T">****************************************************</Trace>

<Trace level="1" type="T">* *</Trace>

<Trace level="1" type="T">* *</Trace>

<Trace level="1" type="T">XMB entry processing</Trace>

<Trace level="1" type="T">system-ID = D21</Trace>

<Trace level="1" type="T">client = 100</Trace>

<Trace level="1" type="T">language = E</Trace>

<Trace level="1" type="T">user = YDBETANC</Trace>

<Trace level="1" type="Timestamp">2008-09-03T22:05:46Z UTC-5</Trace>

<Trace level="1" type="T">* *</Trace>

<Trace level="1" type="T">* *</Trace>

<Trace level="1" type="T">****************************************************</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />

- <!-- ************************************

-->

<Trace level="1" type="T">Message-GUID = 7557A9407A0411DDA07400145E48FE14</Trace>

<Trace level="1" type="T">PLNAME = CENTRAL</Trace>

<Trace level="1" type="T">QOS = EO</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_ASYNC" />

- <!-- ************************************

-->

<Trace level="1" type="T">Get definition of external pipeline = CENTRAL</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />

<Trace level="1" type="T">Get definition of internal pipeline = SAP_CENTRAL</Trace>

<Trace level="1" type="T">Queue name : XBTI0000</Trace>

<Trace level="1" type="T">Generated prefixed queue name = XBTI0000</Trace>

<Trace level="1" type="T">Schedule message in qRFC environment</Trace>

<Trace level="1" type="T">Setup qRFC Scheduler OK!</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="T">Going to persist message</Trace>

<Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>

<Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>

<Trace level="1" type="T">- Exit CALL_PIPELINE_ASYNC</Trace>

<Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

<Trace level="1" type="T">--start sender interface action determination</Trace>

<Trace level="1" type="T">select interface oa_OrdenesPrev*</Trace>

<Trace level="1" type="T">select interface namespace urn:hilanet:pp:planord:a_prd</Trace>

<Trace level="1" type="T">no interface found</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />

<Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>

<Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />

- <!-- ************************************

-->

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>

<Trace level="1" type="T">system-ID = D21</Trace>

<Trace level="1" type="T">client = 100</Trace>

<Trace level="1" type="T">language = E</Trace>

<Trace level="1" type="T">user = YDBETANC</Trace>

<Trace level="1" type="Timestamp">2008-09-03T22:05:46Z UTC-5</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />

- <!-- ************************************

-->

<Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />

<Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>

- <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">

- <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">

<Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>

<Trace level="1" type="T">Cache Content is up to date</Trace>

</Trace>

</Trace>

</Trace>

</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />

- <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">

- <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">

<Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>

<Trace level="1" type="T">Cache Content is up to date</Trace>

</Trace>

</Trace>

</Trace>

</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />

<Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT" />

- <!-- ************************************

-->

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV" />

- <!-- ************************************

-->

<Trace level="1" type="T">number of receivers: 1</Trace>

<Trace level="1" type="T">Single-receiver split case</Trace>

<Trace level="1" type="T">Post-split internal queue name = XBTOP___0001</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="T">Persisting single message for post-split handling</Trace>

<Trace level="1" type="T" />

<Trace level="1" type="T">Going to persist message + call qRFC now...</Trace>

<Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>

<Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>

<Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />

<Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>

<Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />

- <!-- ************************************

-->

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>

<Trace level="1" type="T">system-ID = D21</Trace>

<Trace level="1" type="T">client = 100</Trace>

<Trace level="1" type="T">language = E</Trace>

<Trace level="1" type="T">user = YDBETANC</Trace>

<Trace level="1" type="Timestamp">2008-09-03T22:05:47Z UTC-5</Trace>

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />

- <!-- ************************************

-->

<Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />

<Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>

<Trace level="1" type="T">Start with pipeline element PLEL= 5EC3C53B4BB7B62DE10000000A1148F5</Trace>

<Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />

- <!-- ************************************

-->

<Trace level="1" type="T">Interface Mapping urn:hilanet:pp:planord:a_prd OrdenesPrev_to_OrdenPrevtj</Trace>

<Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>

<Trace level="1" type="T">DEBUG....</Trace>

<Trace level="1" type="T">BEFORE ACCESSOR GET CHANNEL</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:131)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mapping.lookup.DataBaseAccessor.execute(DataBaseAccessor.java:62)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_.selectResourceInfo$(_OrdenesPrev_to_OrdenPrevtj_.java:178)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : java.lang.reflect.Method.invoke(Method.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.cacheContext(C2CFunctionWrapper.java:90)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.gotoNextContext(C2CFunctionWrapper.java:46)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:252)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : java.lang.reflect.Method.invoke(Method.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)</Trace>

<Trace level="1" type="T">Exception is at : $Proxy222.processFunction(Unknown Source)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : java.lang.reflect.Method.invoke(Method.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code))</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.JCO$Server.loop(JCO.java:8231)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.mw.jco.JCO$Server.run(JCO.java:8147)</Trace>

<Trace level="1" type="T">Exception is at : com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)</Trace>

<Trace level="1" type="T">Exception is at : java.security.AccessController.doPrivileged1(Native Method)</Trace>

<Trace level="1" type="T">*** APPLICATION TRACE TRUNCATED (for more details see LogViewer)***</Trace>

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_OrdenesPrev_to_OrdenPrevtj_</Trace>

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:406) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code)) Root Cause: com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:350) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code)) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.cacheContext(C2CFunctionWrapper.java:97) at com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.gotoNextContext(C2CFunctionWrapper.java:46) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:252) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))</Trace>

<Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_OrdenesPrev_to_OrdenPrevtj_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5]</Trace>

<Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_OrdenesPrev_to_OrdenPrevtj_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:73) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code)) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:406) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code)) Root Cause: com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso. The message is: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:350) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code)) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[co.com.hilanet.xi.mapping.CustomMappingException: Problem when calling an adapter by using communication channel Sys_DCrystalPrd_Producto_JDBC_Client (Party: , Service: Sys_DCrystalPrd, Object ID: ed783fe34d84364f842a1e26d0afa8e2) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/CallSapAdapter'. Cause Exception: 'Exception thrown in method process. The transaction is marked for rollback.'.] in class com.sap.xi.tf._OrdenesPrev_to_OrdenPrevtj_ method selectResourceInfo$[com.sap.aii.mappingtool.flib3.Constant@63a265f5, com.sap.aii.mappingtool.flib3.Constant@639165f5, com.sap.aii.mappingtool.flib3.CollapseContexts@7a6765f5] at com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.cacheContext(C2CFunctionWrapper.java:97) at com.sap.aii.mappingtool.tf3.rt.C2CFunctionWrapper.gotoNextContext(C2CFunctionWrapper.java:46) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:252) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy222.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.listen(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.work(JCO.java(Compiled Code)) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code)) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))</Trace>

<Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>

</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />

<Trace level="1" type="System_Error">Error exception return from pipeline processing!</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-CANCEL_ERROR_MESSAGE" />

- <!-- ************************************

-->

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

</SAP:Trace>

Former Member
0 Kudos

Hi,

It looks like there is some problem in your mapping. please paste the complete java lookup code you are using and test the mapping again in IR. specially for the field /ns1:OrdenesPrevisionales_MT_Rq/OrdenPrevisional/recurso . Fix this mapping and hoefully it will resolve your issue.

thanks

amit

Former Member
0 Kudos

Hi Amit,

The error is in the execute method of the DataBaseAccessor. If I comment this code, the mapping works.

I'm using a UDF in this way (I removed some commented code just to test the JDBC Lookup):

public void selectResourceInfo(String[] service,String[] channel,String[] materials,ResultList result,Container container){

MappingTrace trace;

trace = container.getTrace();

DataBaseResult resultSet = null;

String sql;

sql = "SELECT co_fabrica FROM dt_muestras_ref WHERE co_muestra = 8047";

DataBaseAccessor accessor = null;

try {

Channel chann = LookupService.getChannel(service[0], channel[0]);

accessor = LookupService.getDataBaseAccessor(chann);

// Execute the Query

resultSet = accessor.execute(sql);

} catch (Exception e) {

trace.addWarning(e.getMessage());

}

finally{

....

}

Former Member
0 Kudos

Hi,

Are you on XI 7.0 SP 14?

As far as I remember there was bug introduced in one of the recent patches of SP14 (7.0) and SP22(3.0) in lookup for which the fix is released in patch 6 of XI TOOLS 7.00 SP14. Try applying this patch, it might fix your issue.

thanks

aMit

Former Member
0 Kudos

Hello,

Former Member
0 Kudos

Hello,

We have PI 7.0 sp12. Wi'll check this. Then I' ll give you points.

Yuvan.