4 Replies Latest reply: May 18, 2012 12:04 PM by daisy RSS

    Calling an SSL encrypted external web service from a development environment

    John Larson

      I'm working on a plugin that includes making calls to an external SSL encrypted web service. The calls fail; the stack trace is shown below. (This is Jive 4.5.5)

       

      I exercise the exact same code in unit test and it succeeds. Any one have any ideas?

       

      [INFO] [talledLocalContainer] 2011-10-10 11:39:09,811 [http-80-1] [BEFF467216FA0F07578DC383D0820285:jlarson] WARN com.jivesoftware.community.http.impl.HttpClientManagerImpl - Http connection thread was interrupted or has timed out

      [INFO] [talledLocalContainer] java.util.concurrent.ExecutionException: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

      [INFO] [talledLocalContainer]           at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)

      [INFO] [talledLocalContainer]           at java.util.concurrent.FutureTask.get(FutureTask.java:91)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.http.impl.HttpClientManagerImpl.executeWithTimeout(HttpClientManagerImpl.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.JiveHttpClientFeedFetcher.retrieveFeed(JiveHttpClientFeedFetcher.java:153)

      [INFO] [talledLocalContainer]           at org.apache.jsp.admin.main_jsp._jspService(main_jsp.java:1170)

      [INFO] [talledLocalContainer]           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

      [INFO] [talledLocalContainer]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      [INFO] [talledLocalContainer]           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

      [INFO] [talledLocalContainer]           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

      [INFO] [talledLocalContainer]           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

      [INFO] [talledLocalContainer]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.struts.JiveFilterDispatcher.doFilter(JiveFilterDispatcher.java:109)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:63)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)

      [INFO] [talledLocalContainer]           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.PageViewFilter.doFilter(PageViewFilter.java:84)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.SetRequestCharacterEncodingFilter.doFilter(SetRequestCharacterEncodingFilter.java:73)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.directwebremoting.servlet.DwrWebContextFilter.doFilter(DwrWebContextFilter.java:91)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.base.plugin.PluginFilter.doFilter(PluginFilter.java:73)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)

      [INFO] [talledLocalContainer]           at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.aaa.JiveAuthenticationTranslationFilter.doFilter(JiveAuthenticationTranslationFilter.java:207)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.aaa.SessionTrackingFilter.doFilter(SessionTrackingFilter.java:55)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)

      [INFO] [talledLocalContainer]           at com.jivesoftware.sso.saml2.metadata.MetadataDisplayFilter.doFilterHttp(MetadataDisplayFilter.java:87)

      [INFO] [talledLocalContainer]           at com.jivesoftware.sso.saml2.metadata.MetadataDisplayFilter.doFilter(MetadataDisplayFilter.java:80)

      [INFO] [talledLocalContainer]           at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)

      [INFO] [talledLocalContainer]           at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)

      [INFO] [talledLocalContainer]           at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.base.profiling.http.RequestProfilingFilter.doFilter(RequestProfilingFilter.java:47)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.RemoveJsessionIdFilter.doFilter(RemoveJsessionIdFilter.java:40)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.ApplicationStateFilter.doFilter(ApplicationStateFilter.java:136)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.community.web.filter.ResourceRoutingFilter.doFilter(ResourceRoutingFilter.java:44)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at com.jivesoftware.base.profiling.http.ServerLatencyFilter.doFilter(ServerLatencyFilter.java:90)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)

      [INFO] [talledLocalContainer]           at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      [INFO] [talledLocalContainer]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      [INFO] [talledLocalContainer]           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

      [INFO] [talledLocalContainer]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      [INFO] [talledLocalContainer]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

      [INFO] [talledLocalContainer]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

      [INFO] [talledLocalContainer]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

      [INFO] [talledLocalContainer]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

      [INFO] [talledLocalContainer]           at java.lang.Thread.run(Thread.java:680)