HI Team,
When i am doing through scheduler i am getting an error like below.
Scheduler Time:0 30 * ? * * *
and the above time is dumping of stats through monthly scheduler and it
should fire on every 2nd of month
I have updated the access token and refresh token too.
For instance: I run on march 2nd 2017 2:30 AM but it gives an exception for
that date
This is my scheduler code
public void execute(String path) {
Calendar cal = null;
cal = Calendar.getInstance();
cal.add(Calendar.HOUR, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
Calendar updatecal = null;
updatecal = Calendar.getInstance();
updatecal.add(Calendar.HOUR, 0);
updatecal.set(Calendar.MINUTE, 0);
updatecal.set(Calendar.SECOND, 0);
updatecal.set(Calendar.MILLISECOND, 0);
updatecal.add(Calendar.MONTH,-1); // to update partial stats
month_no = -1 if it already contains any stats
if (cal.get(Calendar.DAY_OF_MONTH) == 2) {
HashMap hmSchema = SchemaConnections.schedSchemaHash;
Object[] objKey = hmSchema.keySet().toArray();
for (int k = 0; k < objKey.length; k++) {
dbConn = (DBConn) hmSchema.get((objKey[k]));
getAutoReportTemplateCol();
getBusAssSeaEngCol(updatecal);
boolean flag = false;
And the exception is
avax.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:1497)
at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
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 sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at
com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:93)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at
com.netelixir.api.reportsautomation.AnalyticsDumpAutoReportsStats.getNewAnalyticsReportDefination(AnalyticsDumpAutoReportsStats.java:174)
at
com.netelixir.api.reportsautomation.SEReportDefinationsServiceImpl.getNewGAReportDefination(SEReportDefinationsServiceImpl.java:159)
at
com.netelixir.api.reportsautomation.AutoRprtsNewMntlyStats.getJsonAndInsert(AutoRprtsNewMntlyStats.java:201)
at
com.netelixir.api.reportsautomation.AutoRprtsNewMntlyStats.setCommonData(AutoRprtsNewMntlyStats.java:189)
at
com.netelixir.api.reportsautomation.AutoRprtsNewMntlyStats.getMonthlyStatsAndInsert(AutoRprtsNewMntlyStats.java:104)
at
com.netelixir.api.reportsautomation.AutoRprtsMonthlyNewGAStatsDumpThread.run(AutoRprtsMonthlyNewGAStatsDumpThread.java:84)
at java.lang.Thread.run(Thread.java:745)
Caused by: sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: timestamp check
failed
at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:352)
at
sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:249)
at sun.security.validator.Validator.validate(Validator.java:260)
at
sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1479)
... 22 more
Caused by: java.security.cert.CertPathValidatorException: timestamp check
failed
at
sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:129)
at
sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:219)
at
sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
at
sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:347)
... 28 more
Caused by: java.security.cert.CertificateNotYetValidException: NotBefore:
Thu Mar 16 14:24:00 IST 2017
at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:270)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)
at
sun.security.provider.certpath.BasicChecker.verifyTimestamp(BasicChecker.java:190)
at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144)
at
sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:119)
... 33 more
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d7524f76-04dc-4d15-9aa8-bdf7dbf5c3a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.