SAP BAPI Connection

One Star

SAP BAPI Connection

Hi,
I'm trying to connect to SAP system using tSAPBapi component. When I deploy my webservice on runtime server I have this error:
Exception in component tSAPBapi_1
SAPException@1a8b2351
        at org.talend.sap.exception.SAPException$Builder.<init>(SAPException.java:239)
        at org.talend.sap.exception.SAPException$Builder.<init>(SAPException.java:234)
        at org.talend.sap.exception.SAPException.newBuilder(SAPException.java:68)
        at org.talend.sap.impl.SAPUtil.createExceptionBuilder(SAPUtil.java:122)
        at org.talend.sap.impl.SAPConnectionFactory.createConnection(SAPConnectionFactory.java:88)
        at org.talend.sap.impl.SAPConnectionFactory.createConnection(SAPConnectionFactory.java:98)
        at org.talend.sap.impl.SAPConnectionFactory.createConnection(SAPConnectionFactory.java:63)
        at edidomus.checkclientesap_preprod_0_1.CheckClienteSAP_Preprod.tJavaFlex_1Process(CheckClienteSAP_Preprod.java:1675)
        at edidomus.checkclientesap_preprod_0_1.CheckClienteSAP_Preprod.runJobInTOS(CheckClienteSAP_Preprod.java:4171)
        at edidomus.checkclientesap_preprod_0_1.CheckClienteSAP_Preprod.runJob(CheckClienteSAP_Preprod.java:4006)
        at edidomus.checkutentebycontactid_preprod_0_1.CheckUtenteByContactId_Preprod.tHashInput_4Process(CheckUtenteByContactId_Preprod.java:6218)
        at edidomus.checkutentebycontactid_preprod_0_1.CheckUtenteByContactId_Preprod.tRESTRequest_1_LoopProcess(CheckUtenteByContactId_Preprod.java:19737)
        at edidomus.checkutentebycontactid_preprod_0_1.CheckUtenteByContactId_Preprod$RestServiceProviderImpl4TalendJob.processRequest(CheckUtenteByContactId_Preprod.java:818)
        at edidomus.checkutentebycontactid_preprod_0_1.CheckUtenteByContactId_Preprod$RestServiceProviderImpl4TalendJob.handleWrongRequest(CheckUtenteByContactId_Preprod.java:948)
        at edidomus.checkutentebycontactid_preprod_0_1.CheckUtenteByContactId_Preprod$ExceptionMapper4TalendJobRestService.toResponse(CheckUtenteByContactId_Preprod.java:1052)
        at org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.toResponse(WebApplicationExceptionMapper.java:44)
        at org.apache.cxf.jaxrs.utils.ExceptionUtils.convertFaultToResponse(ExceptionUtils.java:86)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.convertFaultToResponse(JAXRSUtils.java:1601)
        at org.apache.cxf.jaxrs.JAXRSInvoker.handleFault(JAXRSInvoker.java:324)
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:213)
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:497)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
Can anyone help me?
Regards
Armando
Moderator

Re: SAP BAPI Connection

Hi Armando,
Does your webservice job work well in studio? Could you please indicate on which build version you got this issue?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: SAP BAPI Connection

Hi Sabrina, 
I have no problem in studio. I'm working with Talend ESB 6.1.1.
Regards,
Armando