Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: Fuji
-
Fix Version/s: Fuji
-
Component/s: Other / Misc.
-
Labels:None
-
Environment:
QA 7 Environment
Ops script #29
-
Sprint:Sprint 11
-
Epic Link:
Description
Rejection/campaign report run have failed through cron.
Steps:
1.Login to monman server and become user amlops
2.update the cron for rejection and campaign report wrapper scripts.
#This corn creates rejection reports for kwds,ads and extensions
50 9 * * * /usr/local/tsa/ops-reports/rejection-report.sh >> /tmp/rejectionreport.log 2>&1
#This corn creates campaign reports for campaigns,kwds and ads
25 10 * * * /usr/local/tsa/ops-reports/campaign-report.sh >> /tmp/campaignreport.log 2>&1
3)update MM HH values such that cron will run in few minutes later
4)Observe the redirected logs.
Actual result:
The reports are not generating due to following exception.
Snippet of log:
[amlops@aml-qa7-monman1 ops-reports]$ tail -100f /tmp/rejectionreport.log
=================== Starting YJP Rejection Report Downloader with []
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/amlops/YJPReporting/ops-reporting-build-0.0.1-SNAPSHOT/libs/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/amlops/YJPReporting/ops-reporting-build-0.0.1-SNAPSHOT/libs/yj-soap-client-1.0.1-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2014-12-23 09:54:02 [main] INFO - Using todays date: 2014-12-23
2014-12-23 09:54:02 [main] INFO - =============== Starting YJRejectionReportDownloader ================
2014-12-23 09:54:02 [main] INFO - ----------------YJRejectionReportDownloader starting
2014-12-23 09:54:02 [main] INFO - --------Default Report Settings--------
2014-12-23 09:54:02 [main] INFO - REPORT_PROPERTY_FILE_PATH : /usr/local/tsa/ops-reports/conf/report.properties
2014-12-23 09:54:02 [main] INFO - SEVER_NAME_LIST : server1,server2
2014-12-23 09:54:02 [main] INFO - REPORT_LOCATION : /var/local/tsa/sedata/yahoojapan/ops-reports/
2014-12-23 09:54:02 [main] INFO - LOG4_SETTINGS_FILE_PATH : /usr/local/tsa/ops-reports/conf/log4j.properties
2014-12-23 09:54:02 [main] INFO - DB_SETTINGS_FILE_PATH : /usr/local/tsa/ops-reports/conf/main-db-conf.xml
2014-12-23 09:54:02 [pool-1-thread-1] INFO - === Starting YJSeverListWorker for Server Name #server1 ===
2014-12-23 09:54:02 [pool-1-thread-1] INFO - ----------------YJRejectionReportDownloader starting
2014-12-23 09:54:02 [pool-1-thread-2] INFO - === Starting YJSeverListWorker for Server Name #server2 ===
2014-12-23 09:54:02 [pool-1-thread-2] INFO - ----------------YJRejectionReportDownloader starting
2014-12-23 09:54:02 [pool-1-thread-2] INFO - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@6fb3d611: display name [org.springframework.context.support.FileSystemXmlApplicationContext@6fb3d611]; startup date [Tue Dec 23 09:54:02 UTC 2014]; root of context hierarchy
2014-12-23 09:54:02 [pool-1-thread-2] INFO - Loading XML bean definitions from URL file:/usr/local/tsa/ops-reports/conf/main-db-conf.xml
2014-12-23 09:54:02 [pool-1-thread-2] WARN - Ignored XML validation warning
org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 29; schema_reference.4: Failed to read schema document 'spring-beans-2.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:383)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2444)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1786)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:709)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:378)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:604)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3091)
.
.
.
2014-12-23 09:54:02 [main] INFO - ------------YJRejectionReportDownloader done
2014-12-23 09:54:02 [main] ERROR - Error running YahooJapanRejectionReportDownloader
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.thesearchagency.opsreporting.yahoojapan.utils.Context
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at com.thesearchagency.opsreporting.yahoojapan.reporting.YJRejectionReportDownloader.run(YJRejectionReportDownloader.java:214)
at com.thesearchagency.opsreporting.yahoojapan.reporting.YJRejectionReportDownloader.main(YJRejectionReportDownloader.java:82)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.thesearchagency.opsreporting.yahoojapan.utils.Context
at com.thesearchagency.opsreporting.yahoojapan.YJSearchEngineUserDispatcher.call(YJSearchEngineUserDispatcher.java:86)
Expected Result:
All the Rejection and campaign reports should generate successfully.