wss1208:尝试生成随机对称密钥时出现异常[null]

flvlnr44  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(230)

我正在寻找一些帮助与webservice客户端,我试图更新。我尝试连接到的web服务更新了他们的证书,我能够更新证书,从intellij运行项目,并连接到提供者web服务。以前的开发人员用jetty插件配置了应用程序,使其从intellij运行,到目前为止效果良好。之后,我进入下一步,尝试在tomcat/jetty/resin中运行项目,resin是我们的生产应用服务器。这就是我被困的地方。在这三个例子中,我都得到了下面的错误,而我的谷歌搜索结果显示出的有用信息很少。据我自己承认,我对这件事或多或少一无所知。我一直在学习,因为最后一个开发人员离开时没有留下任何文档,也没有人在离开前接受交叉培训。这也是在我来这里之前,所以我得到的任何信息都是二手的。
所以我有两个问题,第一,当我把它移到一个独立的应用程序服务器上时,有什么东西我遗漏了吗?可能与此有关,为什么它可以通过intellij而不是应用服务器运行呢?
感谢您的帮助。

[21-04-22 13:42:04.182] {resin-port-8443-27} WSS1208: Exception [ null ] when trying to generate random symmetric key
[21-04-23 10:09:15.513] {resin-port-8443-629} WSSTUBE0024: Error in Securing Outbound Message.
                       com.sun.xml.wss.XWSSecurityException: Unable to Generate Symmetric Key
                        at com.sun.xml.wss.impl.misc.SecurityUtil.generateSymmetricKey(SecurityUtil.java:163)
                        at com.sun.xml.wss.impl.filter.EncryptionFilter.process(EncryptionFilter.java:449)
                        at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:101)
                        at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
                        at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
                        at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
                        at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:388)
                        at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:323)
                        at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
                        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
                        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
                        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
                        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
                        at com.sun.xml.ws.client.Stub.process(Stub.java:464)
                        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
                        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
                        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
                        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
                        at com.sun.proxy.$Proxy101.getStatus(Unknown Source)
                        at myCompany.MyCompanyInterface$getStatus.call(Unknown Source)
                        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
                        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
                        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
                        at ca.myCompany.myApp.MyAppWSService.$tt__getStatus(MyAppWSService.groovy:71)
                        at ca.myCompany.myApp.MyAppWSService.$_getStatus_closure2.doCall(MyAppWSService.groovy)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.lang.reflect.Method.invoke(Method.java:498)
                        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
                        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
                        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
                        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
                        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
                        at groovy.lang.Closure.call(Closure.java:426)
                        at groovy.lang.Closure.call(Closure.java:442)
                        at org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:90)
                        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
                        at org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:87)
                        at ca.myCompany.myApp.MyAppWSService.getStatus(MyAppWSService.groovy)
                        at ca.myCompany.myApp.MyAppWSService$getStatus.call(Unknown Source)
                        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
                        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
                        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
                        at ca.myCompany.myApp.MyAppWSController.getStatus(MyAppWSController.groovy:43)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.lang.reflect.Method.invoke(Method.java:498)
                        at org.codehaus.groovy.grails.web.servlet.mvc.MixedGrailsControllerHelper.invoke(MixedGrailsControllerHelper.java:154)
                        at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleAction(AbstractGrailsControllerHelper.java:375)
                        at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.executeAction(AbstractGrailsControllerHelper.java:252)
                        at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:205)
                        at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:126)
                        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:72)
                        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
                        at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:347)
                        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
                        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
                        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:159)
                        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
                        at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
                        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
                        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
                        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
                        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:131)
                        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290)
                        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:298)
                        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:116)
                        at org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:178)
                        at org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:144)
                        at org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:135)
                        at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal(UrlMappingsFilter.java:216)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:69)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.codehaus.groovy.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
                        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[21-04-23 10:09:15.513] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
                        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
                        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                        at com.caucho.server.rewrite.SetRequestSecureFilterChain.doFilter(SetRequestSecureFilterChain.java:86)
                        at com.caucho.server.rewrite.MatchFilterChain.doFilter(MatchFilterChain.java:106)
                        at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
                        at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
                        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290)
                        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:838)
                        at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1353)
                        at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1309)
                        at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1293)
                        at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1201)
                        at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:997)
                        at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
                        at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
                        at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
                        at com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
                        at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                        at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
                       Caused by: java.lang.NullPointerException
                        at java.security.Provider$ServiceKey.<init>(Provider.java:872)
                        at java.security.Provider$ServiceKey.<init>(Provider.java:865)
                        at java.security.Provider.getService(Provider.java:1039)
                        at sun.security.jca.ProviderList$ServiceList.tryGet(ProviderList.java:437)
                        at sun.security.jca.ProviderList$ServiceList.access$200(ProviderList.java:376)
                        at sun.security.jca.ProviderList$ServiceList$1.hasNext(ProviderList.java:486)
                        at javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:338)
                        at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:168)
                        at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:223)
                        at com.sun.xml.wss.impl.misc.SecurityUtil.generateSymmetricKey(SecurityUtil.java:147)
                        ... 112 more

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题