Hybris-C4C集成| 与https://xxx.crm.ondemand.com通信时的HTTP响应" 401:未经授权"

2020-09-19 03:53发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


4条回答
昵称总是被占用
2020-09-19 04:41

嗨,

根据建议,我使用自定义代理扩展名进行了测试。 现在我正在错误以下。 在C4C系统中还需要进行任何特定的设置/配置吗?

  2018-06-06 13:20:12,088 [INFO] [c.h.d.c.a.s.p.i.DefaultC4cSoapPublisher]有1个客户
  2018-06-06 13:20:12,088 [INFO] [c.h.d.c.a.s.p.i.DefaultC4cSoapPublisher]创建1个肥皂请求
  2018-06-06 13:20:12,088 [INFO] [c.h.d.c.a.s.p.i.DefaultC4cSoapPublisher]肥皂请求[1]
  2018-06-06 13:20:15,473 [DEBUG] [c.h.d.c.a.s.i.MessageIdInterceptor]原始端点地址:https://xxxxxxx.crm.ondemand.com/sap/bc/srt/scs/sap/businesspartnerreplic
  信息素
  2018-06-06 13:20:15,474 [DEBUG] [c.h.d.c.a.s.i.MessageIdInterceptor]修改的端点地址:https://xxxxxxx.crm.ondemand.com/sap/bc/srt/scs/sap/businesspartnerreplic
  ationin?MessageId = 463CFBA6-A54D-449A-8545-98AAB553C59D
  2018-06-06 13:20:17,115 [WARN] [o.a.c.p.PhaseInterceptorChain] {http://sap.com/xi/A1S/Global}BusinessPartnerReplicationInService#{http://sap.com/xi/A1S/Gl的拦截器
  obal} ReplicateBusinessPartner引发了异常,现在结束
  org.apache.cxf.interceptor.Fault:无法发送消息。
          在org.apache.cxf.interceptor.MessageSenderInterceptor $ MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)〜[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)〜[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)[cxf-rt-frontend-simple-3.1.7.jar:3.1.7]
          在org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)[cxf-rt-frontend-jaxws-3.1.7.jar:3.1.7]
          在com.sun.proxy。$ Proxy267.replicateBusinessPartner(未知来源)[na:na]
          在com.hybris.datahub.c4c.adapter.soapadapter.processor.soap.impl.DefaultC4cJaxwsSoapProcessor.sendMessage(DefaultC4cJaxwsSoapProcessor.java:93)[c4c-integration-
  soap-adapter-6.3.0.0-RC4.jar:na]
          在com.hybris.datahub.c4c.adapter.soapadapter.processor.soap.impl.DefaultC4cJaxwsSoapProcessor.process(DefaultC4cJaxwsSoapProcessor.java:80)[c4c-integration-soap
  -adapter-6.3.0.0-RC4.jar:na]
          在com.hybris.datahub.c4c.adapter.soapadapter.publisher.impl.DefaultC4cSoapPublisher.publish(DefaultC4cSoapPublisher.java:82)[c4c-integration-soap-adapter-6.3.0。
  0-RC4.jar:na]
          在com.hybris.datahub.c4c.adapter.soapadapter.core.C4cSoapAdapter.publish(C4cSoapAdapter.java:43)[c4c-integration-soap-adapter-6.3.0.0-RC4.jar:na]
          在com.hybris.datahub.service.publication.impl.DefaultDataHubPublicationService.startPublication(DefaultDataHubPublicationService.java:259)[datahub-service-6.3.0
  .2-RC1.jar:6.3.0.2-RC1]
          com.hybris.datahub.service.publication.impl.DefaultDataHubPublicationService.publish(DefaultDataHubPublicationService.java:101)[datahub-service-6.3.0.2-RC1.ja
  r:6.3.0.2-RC1]
          在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[na:1.8.0_112]
          在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[na:1.8.0_112]
          在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_112]
          在java.lang.reflect.Method.invoke(Method.java:498)〜[na:1.8.0_112]
          在org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在org.springframework.transaction.interceptor.TransactionInterceptor $ 1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.3.3.RELEASE.jar:4.3.3.R
  ELEASE]
          在org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)[spring-tx-4.3.3.RELEASE.jar:4。
  3.3。发布]
          在org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
          在com.sun.proxy。$ Proxy147.publish(未知来源)[na:na]
          在com.hybris.datahub.service.impl.PublicationActionHandler.publishToTargetSystems(PublicationActionHandler.java:342)[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC1
  ]
          在com.hybris.datahub.service.impl.PublicationActionHandler.handlePublicationAction(PublicationActionHandler.java:126)[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC
  1]
          在com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:95)[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC1]
          在com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:69)[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC1]
          在com.hybris.datahub.command.impl.AbstractPerformCommand.lambda $ execute $ 0(AbstractPerformCommand.java:56)[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC1]
          在java.util.concurrent.CompletableFuture $ AsyncRun.run(CompletableFuture.java:1626)〜[na:1.8.0_112]
          在com.hybris.datahub.service.ExceptionHandlingAsyncTaskExecutor $ 2.run(ExceptionHandlingAsyncTaskExecutor.java:79)〜[datahub-service-6.3.0.2-RC1.jar:6.3.0.2-RC1]
          在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)〜[na:1.8.0_112]
          在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)〜[na:1.8.0_112]
          在java.lang.Thread.run(Thread.java:745)〜[na:1.8.0_112]
  引起原因:java.io.IOException:服务器返回的HTTP响应代码:500 for URL:https://xxxxxxx.crm.ondemand.com/sap/bc/srt/scs/sap/businesspartnerreplicationin?
  id = 463CFBA6-A54D-449A-8545-98AAB553C59D
          在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)〜[na:1.8.0_112]
          在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)〜[na:1.8.0_112]
          在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)〜[na:1.8.0_112]
          在java.lang.reflect.Constructor.newInstance(Constructor.java:423)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection $ 10.run(HttpURLConnection.java:1926)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection $ 10.run(HttpURLConnection.java:1921)〜[na:1.8.0_112]
          在java.security.AccessController.doPrivileged(本机方法)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)〜[na:1.8.0_112]
          在sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)〜[na:1.8.0_112]
          在org.apache.cxf.transport.http.URLConnectionHTTPConduit $ URLConnectionWrappedOutputStream.closeInputStream(URLConnectionHTTPConduit.java:324)〜[cxf-rt-transports
  -http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit $ WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1625)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit $ WrappedOutputStream.handleResponse(HTTPConduit.java:1551)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit $ WrappedOutputStream.close(HTTPConduit.java:1348)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)〜[cxf-core-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.interceptor.MessageSenderInterceptor $ MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)〜[cxf-core-3.1.7.jar:3.1.7]
          ...省略了37个通用框架
  引起原因:java.io.IOException:服务器返回的HTTP响应代码:500 for URL:https://xxxxxxx.crm.ondemand.com/sap/bc/srt/scs/sap/businesspartnerreplicationin?
  id = 463CFBA6-A54D-449A-8545-98AAB553C59D
          在sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)〜[na:1.8.0_112]
          在sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(HttpURLConnection.java:3005)〜[na:1.8.0_112]
          在sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFields(HttpsURLConnectionImpl.java:283)〜[na:1.8.0_112]
          在org.apache.cxf.transport.http.Headers.readFromConnection(Headers.java:271)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.URLConnectionHTTPConduit $ URLConnectionWrappedOutputStream.updateCookiesBeforeRetransmit(URLConnectionHTTPConduit.java:297)〜[cxf-
  rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit $ WrappedOutputStream.handleRetransmits(HTTPConduit.java:1410)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          在org.apache.cxf.transport.http.HTTPConduit $ WrappedOutputStream.handleResponse(HTTPConduit.java:1546)〜[cxf-rt-transports-http-3.1.7.jar:3.1.7]
          ...省略了41个通用框架
  2018-06-06 13:20:17,137 [错误] [c.h.d.s.i.PublicationActionHandler]发布错误:1
  

一周热门 更多>