2 Replies Latest reply on Jan 15, 2014 5:29 PM by SanjeevChauhan

    Error with announcement service.

    SanjeevChauhan

      We are trying to consume announcment service. Service is working fine in one environment but its throwing error in other

       

      Error message is

       

      oracle.webcenter.collab.share.LoginFailedException: failure to authenticate the user ohsadmin, due to: Unexpected error occurred, due to : sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at oracle.webcenter.collab.announcement.internal.jive.JiveAnnouncementSession.login(JiveAnnouncementSession.java:154)

      at oracle.webcenter.collab.share.Session$1.call(Session.java:652)

      at oracle.webcenter.collab.share.Session$1.call(Session.java:646)

      at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)

      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

      at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)

      at oracle.webcenter.concurrent.Submission.run(Submission.java:424)

      at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:889)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:139)

      at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)

      at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:683)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: oracle.webcenter.collab.share.SessionException: Unexpected error occurred, due to : sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at oracle.webcenter.collab.forum.internal.jive.JiveAuthenticator.login(JiveAuthenticator.java:229)

      at oracle.webcenter.collab.announcement.internal.jive.JiveAnnouncementSession.login(JiveAnnouncementSession.java:129)

      ... 13 more

      Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:867)

      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235)

      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106)

      at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:254)

      at $Proxy177.getUserByUsername(Unknown Source)

      at oracle.webcenter.collab.forum.internal.jive.JiveAuthenticator.login(JiveAuthenticator.java:205)

      at oracle.webcenter.collab.announcement.internal.jive.JiveAnnouncementSession.login(JiveAnnouncementSession.java:130)

      ... 13 more

      Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:231)

      at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75)

      at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)

      at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)

      at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)

      at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:275)

      at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:95)

      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:811)

      ... 19 more

      Caused by: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:520)

      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PrivilegedPost.run(HttpSOAPConnection.java:1264)

      at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:229)

      ... 26 more

      Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)

      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1731)

      at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241)

      at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235)

      at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1206)



      Seems like I need to configure SSL certificates. Is there any document that I can follow?


      Thanks

      Sanjeev.