Re: [Dev] [APIM] Error occurred while connecting to back end
Hi all, Got the same issue for MB 3.2.0 when running integration tests. Workaround :- replace jks files inside test suit -> resources -> keystore.products folder from jks files taken from a wum updated MB 3.2.0 pack. Thanks, Lahiru On Wed, Dec 13, 2017 at 9:10 AM, Viduranga Gunarathne wrote: > Hi, > > Please find the link below > > https://stackoverflow.com/questions/23322676/javax-net- > ssl-sslhandshakeexception-sun-security-validator-validatorexception > > Thanks, > Viduranga > > On Tue, Dec 12, 2017 at 9:35 PM, Senuwan Withana wrote: > >> Thank Guys, I will look into it. >> >> *Senuwan Withana* >> Software Engineer - Support Team | WSO2 >> >> Email : senu...@wso2.com >> Mobile: 94773212853 >> Web: http://www.wso2.com >> >> >> >> On Tue, Dec 12, 2017 at 7:23 PM, Godwin Shrimal wrote: >> >>> Hi Senuwan, >>> >>> Check the validity period of the certificate of the ESB. Maybe it's >>> expired. >>> >>> Thanks >>> Godwin >>> >>> On Tue, Dec 12, 2017 at 6:41 PM, Senuwan Withana >>> wrote: >>> Hi Abimaran, Well, I did not generate any certificate. What I did was, tried to create an API using WSO2 API Manager, Publisher. When I was adding Production Endpoint that mentioned error was popping up. Thanks. *Senuwan Withana* Software Engineer - Support Team | WSO2 Email : senu...@wso2.com Mobile: 94773212853 Web: http://www.wso2.com On Tue, Dec 12, 2017 at 5:06 PM, Abimaran Kugathasan >>> > wrote: > Hi Senuwan, > > By checking your exception, it says, your certificate is expired. You > have to generate a new certificate. > > Caused by: java.security.cert.CertificateExpiredException: NotAfter: > Mon Jun 19 14:43:07 IST 2017 > > On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana > wrote: > >> Hi Team, >> >> I got below error when I'm trying to connect my ESB proxy into the >> API Manager. Any suggestion to solve this error? >> >> >> [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error >> occurred while connecting to backend : https://localhost:8243/service >> s/EmailSender, reason : sun.security.validator.ValidatorException: >> PKIX path validation failed: >> java.security.cert.CertPathValidatorException: >> timestamp check failed >> javax.net.ssl.SSLHandshakeException: >> sun.security.validator.ValidatorException: >> PKIX path validation failed: >> java.security.cert.CertPathValidatorException: >> timestamp check failed >> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) >> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) >> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) >> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) >> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa >> ndshaker.java:1514) >> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands >> haker.java:216) >> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) >> at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) >> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) >> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo >> cketImpl.java:1375) >> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. >> java:1403) >> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. >> java:1387) >> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >> ocketFactory.java:533) >> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >> ocketFactory.java:401) >> at org.apache.http.impl.conn.DefaultClientConnectionOperator.op >> enConnection(DefaultClientConnectionOperator.java:178) >> at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M >> anagedClientConnectionImpl.java:304) >> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec >> t(DefaultRequestDirector.java:610) >> at org.apache.http.impl.client.DefaultRequestDirector.execute(D >> efaultRequestDirector.java:445) >> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs >> tractHttpClient.java:863) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:82) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:106) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:57) >> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sen >> dHttpHEADRequest(APIProviderHostObject.java:4781) >> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF >> unction_isURLValid(APIProviderHostObject.java:4173) >> at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccesso
Re: [Dev] [APIM] Error occurred while connecting to back end
Hi, Please find the link below https://stackoverflow.com/questions/23322676/javax-net-ssl-sslhandshakeexception-sun-security-validator-validatorexception Thanks, Viduranga On Tue, Dec 12, 2017 at 9:35 PM, Senuwan Withana wrote: > Thank Guys, I will look into it. > > *Senuwan Withana* > Software Engineer - Support Team | WSO2 > > Email : senu...@wso2.com > Mobile: 94773212853 > Web: http://www.wso2.com > > > > On Tue, Dec 12, 2017 at 7:23 PM, Godwin Shrimal wrote: > >> Hi Senuwan, >> >> Check the validity period of the certificate of the ESB. Maybe it's >> expired. >> >> Thanks >> Godwin >> >> On Tue, Dec 12, 2017 at 6:41 PM, Senuwan Withana >> wrote: >> >>> Hi Abimaran, >>> >>> Well, I did not generate any certificate. What I did was, tried to >>> create an API using WSO2 API Manager, Publisher. When I was adding >>> Production Endpoint that mentioned error was popping up. >>> >>> Thanks. >>> *Senuwan Withana* >>> Software Engineer - Support Team | WSO2 >>> >>> Email : senu...@wso2.com >>> Mobile: 94773212853 >>> Web: http://www.wso2.com >>> >>> >>> >>> On Tue, Dec 12, 2017 at 5:06 PM, Abimaran Kugathasan >>> wrote: >>> Hi Senuwan, By checking your exception, it says, your certificate is expired. You have to generate a new certificate. Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Jun 19 14:43:07 IST 2017 On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana wrote: > Hi Team, > > I got below error when I'm trying to connect my ESB proxy into the API > Manager. Any suggestion to solve this error? > > > [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred > while connecting to backend : https://localhost:8243/service > s/EmailSender, reason : sun.security.validator.ValidatorException: > PKIX path validation failed: > java.security.cert.CertPathValidatorException: > timestamp check failed > javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: > PKIX path validation failed: > java.security.cert.CertPathValidatorException: > timestamp check failed > at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) > at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) > at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa > ndshaker.java:1514) > at sun.security.ssl.ClientHandshaker.processMessage(ClientHands > haker.java:216) > at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) > at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) > at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo > cketImpl.java:1375) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. > java:1403) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. > java:1387) > at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS > ocketFactory.java:533) > at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS > ocketFactory.java:401) > at org.apache.http.impl.conn.DefaultClientConnectionOperator.op > enConnection(DefaultClientConnectionOperator.java:178) > at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M > anagedClientConnectionImpl.java:304) > at org.apache.http.impl.client.DefaultRequestDirector.tryConnec > t(DefaultRequestDirector.java:610) > at org.apache.http.impl.client.DefaultRequestDirector.execute(D > efaultRequestDirector.java:445) > at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs > tractHttpClient.java:863) > at org.apache.http.impl.client.CloseableHttpClient.execute(Clos > eableHttpClient.java:82) > at org.apache.http.impl.client.CloseableHttpClient.execute(Clos > eableHttpClient.java:106) > at org.apache.http.impl.client.CloseableHttpClient.execute(Clos > eableHttpClient.java:57) > at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sen > dHttpHEADRequest(APIProviderHostObject.java:4781) > at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF > unction_isURLValid(APIProviderHostObject.java:4173) > at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe > thodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) > at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime > .java:52) > at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_10 > (/publish
Re: [Dev] [APIM] Error occurred while connecting to back end
Thank Guys, I will look into it. *Senuwan Withana* Software Engineer - Support Team | WSO2 Email : senu...@wso2.com Mobile: 94773212853 Web: http://www.wso2.com On Tue, Dec 12, 2017 at 7:23 PM, Godwin Shrimal wrote: > Hi Senuwan, > > Check the validity period of the certificate of the ESB. Maybe it's > expired. > > Thanks > Godwin > > On Tue, Dec 12, 2017 at 6:41 PM, Senuwan Withana wrote: > >> Hi Abimaran, >> >> Well, I did not generate any certificate. What I did was, tried to create >> an API using WSO2 API Manager, Publisher. When I was adding Production >> Endpoint that mentioned error was popping up. >> >> Thanks. >> *Senuwan Withana* >> Software Engineer - Support Team | WSO2 >> >> Email : senu...@wso2.com >> Mobile: 94773212853 >> Web: http://www.wso2.com >> >> >> >> On Tue, Dec 12, 2017 at 5:06 PM, Abimaran Kugathasan >> wrote: >> >>> Hi Senuwan, >>> >>> By checking your exception, it says, your certificate is expired. You >>> have to generate a new certificate. >>> >>> Caused by: java.security.cert.CertificateExpiredException: NotAfter: >>> Mon Jun 19 14:43:07 IST 2017 >>> >>> On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana >>> wrote: >>> Hi Team, I got below error when I'm trying to connect my ESB proxy into the API Manager. Any suggestion to solve this error? [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred while connecting to backend : https://localhost:8243/service s/EmailSender, reason : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa ndshaker.java:1514) at sun.security.ssl.ClientHandshaker.processMessage(ClientHands haker.java:216) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo cketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. java:1387) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS ocketFactory.java:533) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS ocketFactory.java:401) at org.apache.http.impl.conn.DefaultClientConnectionOperator.op enConnection(DefaultClientConnectionOperator.java:178) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M anagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnec t(DefaultRequestDirector.java:610) at org.apache.http.impl.client.DefaultRequestDirector.execute(D efaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs tractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(Clos eableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(Clos eableHttpClient.java:106) at org.apache.http.impl.client.CloseableHttpClient.execute(Clos eableHttpClient.java:57) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sen dHttpHEADRequest(APIProviderHostObject.java:4781) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF unction_isURLValid(APIProviderHostObject.java:4173) at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime .java:52) at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_10 (/publisher/modules/api/add.jag:225) at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher /modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti me.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction. java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObjec t.java:
Re: [Dev] [APIM] Error occurred while connecting to back end
Hi Senuwan, Check the validity period of the certificate of the ESB. Maybe it's expired. Thanks Godwin On Tue, Dec 12, 2017 at 6:41 PM, Senuwan Withana wrote: > Hi Abimaran, > > Well, I did not generate any certificate. What I did was, tried to create > an API using WSO2 API Manager, Publisher. When I was adding Production > Endpoint that mentioned error was popping up. > > Thanks. > *Senuwan Withana* > Software Engineer - Support Team | WSO2 > > Email : senu...@wso2.com > Mobile: 94773212853 > Web: http://www.wso2.com > > > > On Tue, Dec 12, 2017 at 5:06 PM, Abimaran Kugathasan > wrote: > >> Hi Senuwan, >> >> By checking your exception, it says, your certificate is expired. You >> have to generate a new certificate. >> >> Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon >> Jun 19 14:43:07 IST 2017 >> >> On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana >> wrote: >> >>> Hi Team, >>> >>> I got below error when I'm trying to connect my ESB proxy into the API >>> Manager. Any suggestion to solve this error? >>> >>> >>> [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred >>> while connecting to backend : https://localhost:8243/service >>> s/EmailSender, reason : sun.security.validator.ValidatorException: PKIX >>> path validation failed: java.security.cert.CertPathValidatorException: >>> timestamp check failed >>> javax.net.ssl.SSLHandshakeException: >>> sun.security.validator.ValidatorException: >>> PKIX path validation failed: java.security.cert.CertPathValidatorException: >>> timestamp check failed >>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) >>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) >>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) >>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) >>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa >>> ndshaker.java:1514) >>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands >>> haker.java:216) >>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) >>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) >>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) >>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo >>> cketImpl.java:1375) >>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. >>> java:1403) >>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl. >>> java:1387) >>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >>> ocketFactory.java:533) >>> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >>> ocketFactory.java:401) >>> at org.apache.http.impl.conn.DefaultClientConnectionOperator.op >>> enConnection(DefaultClientConnectionOperator.java:178) >>> at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M >>> anagedClientConnectionImpl.java:304) >>> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec >>> t(DefaultRequestDirector.java:610) >>> at org.apache.http.impl.client.DefaultRequestDirector.execute(D >>> efaultRequestDirector.java:445) >>> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs >>> tractHttpClient.java:863) >>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >>> eableHttpClient.java:82) >>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >>> eableHttpClient.java:106) >>> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >>> eableHttpClient.java:57) >>> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sen >>> dHttpHEADRequest(APIProviderHostObject.java:4781) >>> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF >>> unction_isURLValid(APIProviderHostObject.java:4173) >>> at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >>> thodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:498) >>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) >>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) >>> at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_10 >>> (/publisher/modules/api/add.jag:225) >>> at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher >>> /modules/api/add.jag) >>> at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti >>> me.java:2430) >>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) >>> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObjec >>> t.java:97) >>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) >>> at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_5( >>> /publisher/modules/api/module.jag:18) >>> at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher >>> /modules/api/module.jag) >>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRunti
Re: [Dev] [APIM] Error occurred while connecting to back end
Hi Abimaran, Well, I did not generate any certificate. What I did was, tried to create an API using WSO2 API Manager, Publisher. When I was adding Production Endpoint that mentioned error was popping up. Thanks. *Senuwan Withana* Software Engineer - Support Team | WSO2 Email : senu...@wso2.com Mobile: 94773212853 Web: http://www.wso2.com On Tue, Dec 12, 2017 at 5:06 PM, Abimaran Kugathasan wrote: > Hi Senuwan, > > By checking your exception, it says, your certificate is expired. You have > to generate a new certificate. > > Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon > Jun 19 14:43:07 IST 2017 > > On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana wrote: > >> Hi Team, >> >> I got below error when I'm trying to connect my ESB proxy into the API >> Manager. Any suggestion to solve this error? >> >> >> [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred >> while connecting to backend : https://localhost:8243/services/EmailSender, >> reason : sun.security.validator.ValidatorException: PKIX path validation >> failed: java.security.cert.CertPathValidatorException: timestamp check >> failed >> javax.net.ssl.SSLHandshakeException: >> sun.security.validator.ValidatorException: >> PKIX path validation failed: java.security.cert.CertPathValidatorException: >> timestamp check failed >> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) >> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) >> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) >> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) >> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa >> ndshaker.java:1514) >> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands >> haker.java:216) >> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) >> at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) >> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) >> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo >> cketImpl.java:1375) >> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) >> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) >> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >> ocketFactory.java:533) >> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLS >> ocketFactory.java:401) >> at org.apache.http.impl.conn.DefaultClientConnectionOperator. >> openConnection(DefaultClientConnectionOperator.java:178) >> at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M >> anagedClientConnectionImpl.java:304) >> at org.apache.http.impl.client.DefaultRequestDirector.tryConnec >> t(DefaultRequestDirector.java:610) >> at org.apache.http.impl.client.DefaultRequestDirector.execute(D >> efaultRequestDirector.java:445) >> at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs >> tractHttpClient.java:863) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:82) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:106) >> at org.apache.http.impl.client.CloseableHttpClient.execute(Clos >> eableHttpClient.java:57) >> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sen >> dHttpHEADRequest(APIProviderHostObject.java:4781) >> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF >> unction_isURLValid(APIProviderHostObject.java:4173) >> at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) >> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) >> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) >> at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_10 >> (/publisher/modules/api/add.jag:225) >> at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher >> /modules/api/add.jag) >> at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti >> me.java:2430) >> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) >> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) >> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) >> at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_5( >> /publisher/modules/api/module.jag:18) >> at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher >> /modules/api/module.jag) >> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) >> at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._ >> c_anonymous_2(/publisher/site/blocks/item-add/ajax/add.jag:233) >> at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.c >> all(/publisher/site/blocks/item-add/ajax/add.jag) >> at org.mozilla.javascript.opti
Re: [Dev] [APIM] Error occurred while connecting to back end
Hi Senuwan, By checking your exception, it says, your certificate is expired. You have to generate a new certificate. Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Jun 19 14:43:07 IST 2017 On Tue, Dec 12, 2017 at 4:41 PM, Senuwan Withana wrote: > Hi Team, > > I got below error when I'm trying to connect my ESB proxy into the API > Manager. Any suggestion to solve this error? > > > [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred > while connecting to backend : https://localhost:8243/services/EmailSender, > reason : sun.security.validator.ValidatorException: PKIX path validation > failed: java.security.cert.CertPathValidatorException: timestamp check > failed > javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: > PKIX path validation failed: java.security.cert.CertPathValidatorException: > timestamp check failed > at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) > at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) > at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) > at sun.security.ssl.ClientHandshaker.serverCertificate( > ClientHandshaker.java:1514) > at sun.security.ssl.ClientHandshaker.processMessage( > ClientHandshaker.java:216) > at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) > at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) > at sun.security.ssl.SSLSocketImpl.performInitialHandshake( > SSLSocketImpl.java:1375) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) > at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket( > SSLSocketFactory.java:533) > at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket( > SSLSocketFactory.java:401) > at org.apache.http.impl.conn.DefaultClientConnectionOperato > r.openConnection(DefaultClientConnectionOperator.java:178) > at org.apache.http.impl.conn.ManagedClientConnectionImpl.open( > ManagedClientConnectionImpl.java:304) > at org.apache.http.impl.client.DefaultRequestDirector.tryConnect( > DefaultRequestDirector.java:610) > at org.apache.http.impl.client.DefaultRequestDirector.execute( > DefaultRequestDirector.java:445) > at org.apache.http.impl.client.AbstractHttpClient.doExecute( > AbstractHttpClient.java:863) > at org.apache.http.impl.client.CloseableHttpClient.execute( > CloseableHttpClient.java:82) > at org.apache.http.impl.client.CloseableHttpClient.execute( > CloseableHttpClient.java:106) > at org.apache.http.impl.client.CloseableHttpClient.execute( > CloseableHttpClient.java:57) > at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject. > sendHttpHEADRequest(APIProviderHostObject.java:4781) > at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject. > jsFunction_isURLValid(APIProviderHostObject.java:4173) > at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) > at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) > at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_ > 10(/publisher/modules/api/add.jag:225) > at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/ > publisher/modules/api/add.jag) > at org.mozilla.javascript.ScriptRuntime.applyOrCall( > ScriptRuntime.java:2430) > at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) > at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) > at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) > at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_5( > /publisher/modules/api/module.jag:18) > at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/ > publisher/modules/api/module.jag) > at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) > at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._ > c_anonymous_2(/publisher/site/blocks/item-add/ajax/add.jag:233) > at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0. > call(/publisher/site/blocks/item-add/ajax/add.jag) > at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) > at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._ > c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:9) > at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0. > call(/publisher/site/blocks/item-add/ajax/add.jag) > at org.mozilla.javascript.ContextFactory.doTopCall( > ContextFactory.java:394) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) > at org.jaggeryjs.rhino.publisher.site.blocks.item_add.aj
[Dev] [APIM] Error occurred while connecting to back end
Hi Team, I got below error when I'm trying to connect my ESB proxy into the API Manager. Any suggestion to solve this error? [2017-12-12 16:38:56,137] ERROR - APIProviderHostObject Error occurred while connecting to backend : https://localhost:8243/services/EmailSender, reason : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026) at sun.security.ssl.Handshaker.process_record(Handshaker.java:961) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:533) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.sendHttpHEADRequest(APIProviderHostObject.java:4781) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_isURLValid(APIProviderHostObject.java:4173) at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_10(/publisher/modules/api/add.jag:225) at org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_5(/publisher/modules/api/module.jag:18) at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_anonymous_2(/publisher/site/blocks/item-add/ajax/add.jag:233) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:9) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.exec(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppMa