控制器中的set-certificate Nullpointer异常

2020-08-27 16:09发布

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

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

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


 cd/usr/sap/HXE/HDB90
 xs设置证书hxehost.cert.io -k/home/cert/cert.io-key.pk8 -c cert.io-cert.pem --verbose
 
将域hxehost.cert.io的SSL证书设置为XSA_ADMIN ...无法设置域证书:尝试调用com.sap.xs2rt返回的空对象的方法java.lang.Integer.intValue()时 .controller.configstore.entries.StoredDomain.isPlatformCertificate()
 
 cd/usr/sap/HXE/HDB90/hxehost.cert.io/trace 
tail -f xscontroller_0.log
 [2019-03-21 17:45:40:961]-[Controller.Domain]-[log]-[XSA_ADMIN]-[set-certificate(edde)-269069]:添加新的X.509证书用于  [2019-03-21 17:45:41:198]-[Controller.Exceptions]-[错误]-[XSA_ADMIN]-[设置证书(edde)-269069]: 意外的内部控制器错误。  java.lang.NullPointerException:尝试调用从com.sap.xs2rt的com.sap.xs2rt.controller.configstore.entries.StoredDomain.isPlatformCertificate()返回的空对象的方法java.lang.Integer.intValue()时 .controller.impl.DomainCertificatesControllerImpl.setDomainCertificate(DomainCertificatesControllerImpl.java:168)位于com.sap.xs2rt.controller.impl.server.rest.DomainCertificatesResourceHandler.lambda $ putDomainCertificatesByDomainGuid $ 3(DomainCertificsap)  com.sap.xs2rt上的controller.impl.server.rest.ResourceHandlerBase.executeRequestImpl(ResourceHandlerBase.java:426)在com.sap.xs2rt上的com.sap.xs2rt.controller.impl.server.rest.ResourceHandlerBase.executeRequest(ResourceHandlerBase.java:295)  controller.impl.server.rest.DomainCertificatesResourceHandler.putDomainCertificatesByDomainGuid(DomainCertificatesResourceHandler.java:132)在sun.reflect.GeneratedMethodAccessor6503.invoke(未知源)在sun.reflect.DelegatingMethodAc  cessorImpl.invoke(DelegatingMethodAccessorImpl.java:43),位于org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda $ static $ 0(ResourceMethodInvocationHandlerFactory.java),位于java.lang.reflect.Method.invoke(Method.java:498)  :76)在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher $ 1.run(AbstractJavaResourceMethodDispatcher.java:148)在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) 在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)处org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider $ ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)处 .glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)在org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(资源 在org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)在org.glassfish.jersey.server.ServerRuntime $ 1.run(ServerRuntime.java:277)在org。  org.glassfish.jersey.internal.Errors $ 1.call(Errors.java:268)的org.glassfish.jersey.internal.Errors $ 1.call(Errors.java:272)  org.glassfish.jersey.internal.Errors.process(Errors.java:298)的org.glassfish.jersey.internal.Errors.process(Errors.java:268)的Errors.java:316)  org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)处的.process.internal.RequestScope.runInScope(RequestScope.java:289)org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java)  :703)在org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:377)在org.glassfish.grizzly.http.server.HttpHandler $ 1.run(HttpHandler.java:224)在org.glassfish  .grizzly.threadpool.AbstractThrea  org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:573)的dPool $ Worker.doWork(AbstractThreadPool.java:593)在java.lang.Thread.run(Thread.java:836)的[2019  -03-21 17:45:41:198]-[Controller.Domain]-[log]-[。]-[。]:未能设置域证书com.sap.xs2rt.controller.impl.server.rest  com.sap.xs2rt.controller.impl.server.rest.ResourceHandlerBase.executeRequestImpl(ResourceHandlerBase.java:486)上的.ResourceHandlerUtils $ ResourceRequestException,com.sap.xs2rt.controller.impl.server.rest.ResourceHandlerBase.executeRequest(ResourceHandlerBase。  java:295)位于com.sap.xs2rt.controller.impl.server.rest.DomainCertificatesResourceHandler.putDomainCertificatesByDomainGuid(DomainCertificatesResourceHandler.java:132)位于sun.reflect.GeneratedMethodAccessor6503.invoke(Unknown Source)在sun.reflect.DeleginMethodAccess  org.glassfish.jersey.ser处的java.lang.reflect.Method.invoke(Method.java:498)的DelegatingMethodAccessorImpl.java:43) 在org.glassfish.jersey.ver.model.internal.ResourceMethodInvocationHandlerFactory.lambda $ static $ 0(ResourceMethodInvocationHandlerFactory.java:76)在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher $ 1.run(AbstractJavaResourceMethodDispatcher.java:148)在org.glassfish.jersey。  org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider $ ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)处的server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)  org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)上的model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)在org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(  org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)处的org.glassfish.jersey.java:415)  sh.jersey.server.ServerRuntime $ 1.run(ServerRuntime.java:277)在org.glassfish.jersey.internal.Errors $ 1.call(Errors.java:272)在org.glassfish.jersey.internal.Errors $ 1.call  (org.glassfish.jersey.internal.Errors.process(Errors.java:316)(org.glassfish.jersey.internal.Errors.process(Errors.java:298))(Errors.java:268)。  org.glassfish。Jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)的jersey.internal.Errors.process(Errors.java:268)org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime。  org.glassfish.jersey.server.ApplicationHandler.handle(java:256)(org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:377)位于org.glassfish.grizzly  org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:593)上的.http.server.HttpHandler $ 1.run(HttpHandler.java:224)在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker上。 运行(AbstractThreadPool.j  ava:573)at java.lang.Thread.run(Thread.java:836)原因:java.lang.NullPointerException:尝试调用com返回的空对象的方法java.lang.Integer.intValue()时 com.sap.xs2rt.controller的.sap.xs2rt.controller.configstore.entries.StoredDomain.isPlatformCertificate()位于com.sap.xs2rt.controller.impl.DomainCertificatesControllerImpl.setDomainCertificate(DomainCertificatesControllerImpl.java:168)  rest.DomainCertificatesResourceHandler.lambda $ putDomainCertificatesByDomainGuid $ 3(DomainCertificatesResourceHandler.java:143)at com.sap.xs2rt.controller.impl.server.rest.ResourceHandlerBase.executeRequestImpl(ResourceHandlerBase.java:426)... 27更多
1条回答
渐行渐远_HoldOn
2020-08-27 17:09

罗伯特你好,

当我尝试将证书安装到HANA扩展应用程序服务中时,我得到了相同的错误消息。 对于我而言,帮助使用SAP注释2243019中所述的命令

 XSA reset-certificate 

来重置证书。

请注意,

彼得

一周热门 更多>