Console Output
+ /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.5.0/bin/mvn clean deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Scheduler 1.14.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appng-scheduler ---
[INFO] Deleting /var/lib/jenkins/workspace/appNG_Scheduler/target
[INFO]
[INFO] --- openapi-generator-maven-plugin:5.1.1:generate (rest-api) @ appng-scheduler ---
[INFO] Generating with dryRun=false
[INFO] Output directory (/var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi) does not exist, or is inaccessible. No file (.openapi-generator-ignore) will be evaluated.
[INFO] OpenAPI Generator: java (client)
[INFO] Generator 'java' is considered stable.
[INFO] Environment variable JAVA_POST_PROCESS_FILE not defined so the Java code may not be properly formatted. To define it, try 'export JAVA_POST_PROCESS_FILE="/usr/local/bin/clang-format -i"' (Linux/Mac)
[INFO] NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[INFO] Processing operation getJobState
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/model/JobRecord.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/test/java/org/appng/scheduler/openapi/model/JobRecordTest.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/docs/JobRecord.md
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/model/JobState.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/test/java/org/appng/scheduler/openapi/model/JobStateTest.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/docs/JobState.md
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/SchedulerApi.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/test/java/org/appng/scheduler/openapi/SchedulerApiTest.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/docs/SchedulerApi.md
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/pom.xml
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/README.md
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/build.gradle
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/build.sbt
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/settings.gradle
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/gradle.properties
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/AndroidManifest.xml
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/.travis.yml
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/ApiClient.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/ServerConfiguration.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/ServerVariable.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/api/openapi.yaml
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/JavaTimeFormatter.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/auth/HttpBasicAuth.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/auth/HttpBearerAuth.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/auth/ApiKeyAuth.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/gradlew
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/gradlew.bat
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/gradle/wrapper/gradle-wrapper.properties
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/gradle/wrapper/gradle-wrapper.jar
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/git_push.sh
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/.gitignore
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/auth/Authentication.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java/org/appng/scheduler/openapi/invoke/RFC3339DateFormat.java
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/.openapi-generator-ignore
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/.openapi-generator/VERSION
[INFO] writing file /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/.openapi-generator/FILES
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:add-source (default) @ appng-scheduler ---
[INFO] Source directory: /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/constants added.
[INFO] Source directory: /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/openapi/src/main/java added.
[INFO]
[INFO] --- appng-maven-plugin:1.20.2:generateApplicationConstants (applicationConstants) @ appng-scheduler ---
[INFO] generate application constants for [/var/lib/jenkins/workspace/appNG_Scheduler/application-home/application.xml, org.appng.application.scheduler.PropertyConstants, /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/constants]
[INFO]
[INFO] --- appng-maven-plugin:1.20.2:generateMessageConstants (messageConstants) @ appng-scheduler ---
[INFO] generate message constants for [/var/lib/jenkins/workspace/appNG_Scheduler/application-home/dictionary/messages-scheduler.properties, org.appng.application.scheduler.MessageConstants, /var/lib/jenkins/workspace/appNG_Scheduler/target/generated-sources/constants]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appng-scheduler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ appng-scheduler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /var/lib/jenkins/workspace/appNG_Scheduler/target/classes
[INFO] /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java: /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java uses or overrides a deprecated API.
[INFO] /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appng-scheduler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ appng-scheduler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /var/lib/jenkins/workspace/appNG_Scheduler/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M3:test (default-test) @ appng-scheduler ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.appng.application.scheduler.SchedulingTest
2021-09-24 09:20:47,134 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2021-09-24 09:20:47,171 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@23529fee, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4fe767f3, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@2805c96b, org.springframework.test.context.support.DirtiesContextTestExecutionListener@184cf7cf, org.springframework.test.context.transaction.TransactionalTestExecutionListener@2fd6b6c7, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5bfa9431]
2021-09-24 09:20:49,245 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2021-09-24 09:20:50,362 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2021-09-24 09:20:50,415 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [beans-test.xml]
2021-09-24 09:20:50,742 INFO [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@7880cdf3: startup date [Fri Sep 24 09:20:50 CEST 2021]; root of context hierarchy
2021-09-24 09:20:52,386 INFO [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
Sep 24, 2021 9:20:53 AM ch.sla.jdbcperflogger.Logger info
INFO: Using config file jdbcperflogger-fallback.xml
2021-09-24 09:20:54,253 INFO [main] org.quartz.impl.StdSchedulerFactory: Using default implementation for ThreadExecutor
2021-09-24 09:20:54,295 INFO [main] org.quartz.core.SchedulerSignalerImpl: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2021-09-24 09:20:54,295 INFO [main] org.quartz.core.QuartzScheduler: Quartz Scheduler v.2.3.1 created.
2021-09-24 09:20:54,650 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: JobStoreCMT initialized.
2021-09-24 09:20:54,651 INFO [main] org.quartz.core.QuartzScheduler: Scheduler meta-data: Quartz Scheduler (v2.3.1) 'Scheduler_localhost' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
2021-09-24 09:20:54,652 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler 'Scheduler_localhost' initialized from an externally provided properties instance.
2021-09-24 09:20:54,652 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler version: 2.3.1
2021-09-24 09:20:54,652 INFO [main] org.quartz.core.QuartzScheduler: JobFactory set to: org.appng.application.scheduler.quartz.SpringQuartzSchedulerFactory@64f857e7
2021-09-24 09:20:55,062 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executing SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql]
2021-09-24 09:20:55,080 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executed SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql] in 18 ms.
2021-09-24 09:20:56,554 INFO [main] org.hibernate.validator.internal.util.Version: HV000001: Hibernate Validator 6.0.17.Final
2021-09-24 09:20:57,446 WARN [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!
2021-09-24 09:20:57,619 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_longRunningJob
2021-09-24 09:20:57,680 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_longRunningJob-crontrigger-1908505175' for job 'localhost.appng-scheduler_longRunningJob' with expression '0 0/10 * 1/1 * ? *'
2021-09-24 09:20:57,685 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_indexJob
2021-09-24 09:20:57,689 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_houseKeepingJob
2021-09-24 09:20:57,694 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Freed 0 triggers from 'acquired' / 'blocked' state.
2021-09-24 09:20:57,696 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovering 0 jobs that were in-progress at the time of the last shut-down.
2021-09-24 09:20:57,696 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovery complete.
2021-09-24 09:20:57,696 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 'complete' triggers.
2021-09-24 09:20:57,697 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 stale fired job entries.
2021-09-24 09:20:57,698 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:20:58,144 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_mytestjob
2021-09-24 09:20:58,151 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_mytestjob-crontrigger-853955254' for job 'localhost.appng-scheduler_mytestjob' with expression '0 0/10 * * * ? 2042'
2021-09-24 09:21:01,272 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_anotherJob
2021-09-24 09:21:01,278 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_anotherJob-crontrigger-503427379' for job 'localhost.appng-scheduler_anotherJob' with expression '0 0/20 * * * ? 2042'
2021-09-24 09:21:01,342 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:01,369 INFO [main] org.appng.application.scheduler.SchedulerUtils: Deleted job: localhost.appng-scheduler_mytestjob
2021-09-24 09:21:01,412 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:01,425 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_indexJob-crontrigger-1391249801' for job 'localhost.appng-scheduler_indexJob' with expression '0 0/5 * * * ? 2042'
2021-09-24 09:21:01,473 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:01,777 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:02,134 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:02,148 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.simpletrigger-1563929103' for job 'org.appng.application.scheduler.job.IndexJob' with start time 'Fri Sep 24 09:21:02 CEST 2021'
2021-09-24 09:21:02,230 ERROR [Scheduler_localhost] org.quartz.core.ErrorLogger : An error occured instantiating job to be executed. job= 'localhost.appng-scheduler_indexJob'
org.quartz.SchedulerException: Job instantiation failed [See nested exception: java.lang.ClassCastException: org.springframework.context.support.GenericApplicationContext cannot be cast to org.appng.core.model.ApplicationContext]
at org.springframework.scheduling.quartz.AdaptableJobFactory.newJob(AdaptableJobFactory.java:45)
at org.quartz.core.JobRunShell.initialize(JobRunShell.java:127)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:392)
Caused by: java.lang.ClassCastException: org.springframework.context.support.GenericApplicationContext cannot be cast to org.appng.core.model.ApplicationContext
at org.appng.application.scheduler.quartz.SpringQuartzSchedulerFactory.createJobInstance(SpringQuartzSchedulerFactory.java:68)
at org.appng.application.scheduler.quartz.SpringQuartzSchedulerFactory.createJobInstance(SpringQuartzSchedulerFactory.java:53)
at org.springframework.scheduling.quartz.AdaptableJobFactory.newJob(AdaptableJobFactory.java:41)
... 2 more
2021-09-24 09:21:02,246 INFO [Scheduler_localhost] org.springframework.scheduling.quartz.LocalDataSourceJobStore: All triggers of Job localhost.simpletrigger-1563929103 set to ERROR state.
2021-09-24 09:21:02,261 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:02,275 INFO [main] org.appng.application.scheduler.SchedulerUtils: Deleted trigger 'localhost.appng-scheduler_indexJob-crontrigger-1391249801' for job 'localhost.appng-scheduler_indexJob' with expression '0 0/5 * * * ? 2042'
2021-09-24 09:21:02,327 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:02,401 INFO [main] org.springframework.context.support.GenericApplicationContext: Closing org.springframework.context.support.GenericApplicationContext@7880cdf3: startup date [Fri Sep 24 09:20:50 CEST 2021]; root of context hierarchy
2021-09-24 09:21:02,407 INFO [main] org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 2147483647
2021-09-24 09:21:02,409 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:02,410 INFO [main] org.springframework.scheduling.quartz.SchedulerFactoryBean: Shutting down Quartz Scheduler
2021-09-24 09:21:02,411 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutting down.
2021-09-24 09:21:02,411 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:02,412 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutdown complete.
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.141 s - in org.appng.application.scheduler.SchedulingTest
[INFO] Running org.appng.application.scheduler.service.JobStateRestControllerTest
2021-09-24 09:21:02,427 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2021-09-24 09:21:02,427 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@573870cb, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5b88af70, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@2739ecc0, org.springframework.test.context.support.DirtiesContextTestExecutionListener@2932e15f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3d98729a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2375a976]
2021-09-24 09:21:02,438 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2021-09-24 09:21:02,531 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2021-09-24 09:21:02,552 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [beans-test.xml]
2021-09-24 09:21:02,637 INFO [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@4bc21e34: startup date [Fri Sep 24 09:21:02 CEST 2021]; root of context hierarchy
2021-09-24 09:21:02,671 INFO [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-09-24 09:21:02,724 INFO [main] org.quartz.impl.StdSchedulerFactory: Using default implementation for ThreadExecutor
2021-09-24 09:21:02,727 INFO [main] org.quartz.core.SchedulerSignalerImpl: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2021-09-24 09:21:02,727 INFO [main] org.quartz.core.QuartzScheduler: Quartz Scheduler v.2.3.1 created.
2021-09-24 09:21:02,728 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: JobStoreCMT initialized.
2021-09-24 09:21:02,728 INFO [main] org.quartz.core.QuartzScheduler: Scheduler meta-data: Quartz Scheduler (v2.3.1) 'Scheduler_localhost' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
2021-09-24 09:21:02,728 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler 'Scheduler_localhost' initialized from an externally provided properties instance.
2021-09-24 09:21:02,728 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler version: 2.3.1
2021-09-24 09:21:02,728 INFO [main] org.quartz.core.QuartzScheduler: JobFactory set to: org.appng.application.scheduler.quartz.SpringQuartzSchedulerFactory@7809b43a
2021-09-24 09:21:02,830 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executing SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql]
2021-09-24 09:21:02,856 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executed SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql] in 26 ms.
2021-09-24 09:21:02,958 WARN [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!
2021-09-24 09:21:02,979 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_longRunningJob
2021-09-24 09:21:02,985 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_longRunningJob-crontrigger-1175156694' for job 'localhost.appng-scheduler_longRunningJob' with expression '0 0/10 * 1/1 * ? *'
2021-09-24 09:21:02,988 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_indexJob
2021-09-24 09:21:02,990 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_houseKeepingJob
2021-09-24 09:21:02,992 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Freed 0 triggers from 'acquired' / 'blocked' state.
2021-09-24 09:21:02,993 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovering 0 jobs that were in-progress at the time of the last shut-down.
2021-09-24 09:21:02,993 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovery complete.
2021-09-24 09:21:02,993 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 'complete' triggers.
2021-09-24 09:21:02,994 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 stale fired job entries.
2021-09-24 09:21:02,995 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:04,931 INFO [main] org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder$StaticRequestMappingHandlerMapping: Mapped "{[/jobState/{application}/{job}],methods=[GET],produces=[application/json;charset=UTF-8]}" onto public org.springframework.http.ResponseEntity<org.appng.scheduler.openapi.model.JobState> org.appng.application.scheduler.service.JobStateRestController.getJobState(java.lang.String,java.lang.String,java.lang.Integer,boolean,java.util.List<java.lang.String>,org.appng.api.model.Site)
2021-09-24 09:21:05,021 INFO [main] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter: Looking for @ControllerAdvice: org.springframework.test.web.servlet.setup.StubWebApplicationContext@3340ce58
2021-09-24 09:21:05,105 INFO [main] org.springframework.mock.web.MockServletContext: Initializing Spring FrameworkServlet ''
2021-09-24 09:21:05,106 INFO [main] org.springframework.test.web.servlet.TestDispatcherServlet: FrameworkServlet '': initialization started
2021-09-24 09:21:05,111 INFO [main] org.springframework.test.web.servlet.TestDispatcherServlet: FrameworkServlet '': initialization completed in 5 ms
2021-09-24 09:21:05,316 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:05,319 INFO [main] org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder$StaticRequestMappingHandlerMapping: Mapped "{[/jobState/{application}/{job}],methods=[GET],produces=[application/json;charset=UTF-8]}" onto public org.springframework.http.ResponseEntity<org.appng.scheduler.openapi.model.JobState> org.appng.application.scheduler.service.JobStateRestController.getJobState(java.lang.String,java.lang.String,java.lang.Integer,boolean,java.util.List<java.lang.String>,org.appng.api.model.Site)
2021-09-24 09:21:05,336 INFO [main] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter: Looking for @ControllerAdvice: org.springframework.test.web.servlet.setup.StubWebApplicationContext@212c0aff
2021-09-24 09:21:05,342 INFO [main] org.springframework.mock.web.MockServletContext: Initializing Spring FrameworkServlet ''
2021-09-24 09:21:05,342 INFO [main] org.springframework.test.web.servlet.TestDispatcherServlet: FrameworkServlet '': initialization started
2021-09-24 09:21:05,342 INFO [main] org.springframework.test.web.servlet.TestDispatcherServlet: FrameworkServlet '': initialization completed in 0 ms
2021-09-24 09:21:05,350 INFO [main] org.springframework.context.support.GenericApplicationContext: Closing org.springframework.context.support.GenericApplicationContext@4bc21e34: startup date [Fri Sep 24 09:21:02 CEST 2021]; root of context hierarchy
2021-09-24 09:21:05,350 INFO [main] org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 2147483647
2021-09-24 09:21:05,350 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:05,351 INFO [main] org.springframework.scheduling.quartz.SchedulerFactoryBean: Shutting down Quartz Scheduler
2021-09-24 09:21:05,351 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutting down.
2021-09-24 09:21:05,351 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:05,352 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutdown complete.
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.846 s - in org.appng.application.scheduler.service.JobStateRestControllerTest
[INFO] Running org.appng.application.scheduler.DriverDelegateWrapperTest
2021-09-24 09:21:05,371 INFO [main] org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory: Starting embedded database: url='jdbc:hsqldb:mem:testdb', username='sa'
2021-09-24 09:21:05,389 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executing SQL script from class path resource [sql/init_quartz_tables.sql]
2021-09-24 09:21:05,397 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executed SQL script from class path resource [sql/init_quartz_tables.sql] in 8 ms.
2021-09-24 09:21:05,403 INFO [main] org.quartz.impl.jdbcjobstore.JobStoreTX: Using thread monitor-based data access locking (synchronization).
2021-09-24 09:21:05,403 INFO [main] org.quartz.impl.jdbcjobstore.JobStoreTX: JobStoreTX initialized.
2021-09-24 09:21:05,405 INFO [main] org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory: Starting embedded database: url='jdbc:hsqldb:mem:testdb', username='sa'
2021-09-24 09:21:05,405 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executing SQL script from class path resource [sql/init_quartz_tables.sql]
2021-09-24 09:21:05,415 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executed SQL script from class path resource [sql/init_quartz_tables.sql] in 10 ms.
2021-09-24 09:21:05,416 INFO [main] org.quartz.impl.jdbcjobstore.JobStoreTX: Using thread monitor-based data access locking (synchronization).
2021-09-24 09:21:05,416 INFO [main] org.quartz.impl.jdbcjobstore.JobStoreTX: JobStoreTX initialized.
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 s - in org.appng.application.scheduler.DriverDelegateWrapperTest
[INFO] Running org.appng.application.scheduler.business.TestJobRecordings
2021-09-24 09:21:05,435 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2021-09-24 09:21:05,435 INFO [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@34065642, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@c85486, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@51e1e058, org.springframework.test.context.support.DirtiesContextTestExecutionListener@23e0c200, org.springframework.test.context.transaction.TransactionalTestExecutionListener@25d23478, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@677c2820]
2021-09-24 09:21:05,441 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2021-09-24 09:21:05,477 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2021-09-24 09:21:05,486 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-core.xml]
2021-09-24 09:21:05,857 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
2021-09-24 09:21:05,870 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [beans-test-core.xml]
2021-09-24 09:21:05,884 INFO [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@39c1e7b7: startup date [Fri Sep 24 09:21:05 CEST 2021]; root of context hierarchy
2021-09-24 09:21:06,027 INFO [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-09-24 09:21:06,178 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: Checkpoint start
2021-09-24 09:21:06,179 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: checkpointClose start
2021-09-24 09:21:06,264 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: checkpointClose synched
2021-09-24 09:21:06,274 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: checkpointClose script done
2021-09-24 09:21:06,294 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: checkpointClose end
2021-09-24 09:21:06,295 INFO [HSQLDB Server @6a8da5c5] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: Checkpoint end - txts: 1
2021-09-24 09:21:06,658 INFO [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Building JPA container EntityManagerFactory for persistence unit 'default'
2021-09-24 09:21:06,930 INFO [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2021-09-24 09:21:08,458 INFO [main] org.hibernate.Version : HHH000412: Hibernate Core {5.4.3.Final}
2021-09-24 09:21:09,394 INFO [main] org.hibernate.annotations.common.Version: HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2021-09-24 09:21:10,376 INFO [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2021-09-24 09:21:10,526 INFO [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2021-09-24 09:21:13,509 INFO [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-09-24 09:21:13,512 INFO [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-09-24 09:21:13,651 INFO [main] org.quartz.impl.StdSchedulerFactory: Using default implementation for ThreadExecutor
2021-09-24 09:21:13,653 INFO [main] org.quartz.core.SchedulerSignalerImpl: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2021-09-24 09:21:13,653 INFO [main] org.quartz.core.QuartzScheduler: Quartz Scheduler v.2.3.1 created.
2021-09-24 09:21:13,755 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: JobStoreCMT initialized.
2021-09-24 09:21:13,755 INFO [main] org.quartz.core.QuartzScheduler: Scheduler meta-data: Quartz Scheduler (v2.3.1) 'Scheduler_localhost' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
2021-09-24 09:21:13,756 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler 'Scheduler_localhost' initialized from an externally provided properties instance.
2021-09-24 09:21:13,756 INFO [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler version: 2.3.1
2021-09-24 09:21:13,756 INFO [main] org.quartz.core.QuartzScheduler: JobFactory set to: org.appng.application.scheduler.quartz.SpringQuartzSchedulerFactory@47b5c247
2021-09-24 09:21:15,046 INFO [main] org.appng.core.domain.PlatformEventListener: Using application context org.springframework.context.support.GenericApplicationContext@39c1e7b7: startup date [Fri Sep 24 09:21:05 CEST 2021]; root of context hierarchy
2021-09-24 09:21:15,491 INFO [main] org.springframework.aop.framework.CglibAopProxy: Method [org.appng.core.service.MigrationService$MigrationStatus org.appng.core.service.DatabaseService.migrateApplication(java.io.File,org.appng.core.domain.DatabaseConnection)] is package-visible across different ClassLoaders and cannot get proxied via CGLIB: Declare this method as public or protected if you need to support invocations through the proxy.
2021-09-24 09:21:15,491 INFO [main] org.springframework.aop.framework.CglibAopProxy: Method [org.appng.core.service.MigrationService$MigrationStatus org.appng.core.service.DatabaseService.dropDataBaseAndUser(org.appng.core.domain.DatabaseConnection)] is package-visible across different ClassLoaders and cannot get proxied via CGLIB: Declare this method as public or protected if you need to support invocations through the proxy.
2021-09-24 09:21:15,716 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executing SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql]
2021-09-24 09:21:15,729 INFO [main] org.springframework.jdbc.datasource.init.ScriptUtils: Executed SQL script from class path resource [org/quartz/impl/jdbcjobstore/tables_hsqldb.sql] in 13 ms.
2021-09-24 09:21:15,797 WARN [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!
2021-09-24 09:21:16,999 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_longRunningJob
2021-09-24 09:21:17,034 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created trigger 'localhost.appng-scheduler_longRunningJob-crontrigger-1311212526' for job 'localhost.appng-scheduler_longRunningJob' with expression '0 0/10 * 1/1 * ? *'
2021-09-24 09:21:17,073 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_indexJob
2021-09-24 09:21:17,089 INFO [main] org.appng.application.scheduler.SchedulerUtils: Created job: localhost.appng-scheduler_houseKeepingJob
2021-09-24 09:21:17,194 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Freed 0 triggers from 'acquired' / 'blocked' state.
2021-09-24 09:21:17,196 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovering 0 jobs that were in-progress at the time of the last shut-down.
2021-09-24 09:21:17,196 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Recovery complete.
2021-09-24 09:21:17,197 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 'complete' triggers.
2021-09-24 09:21:17,198 INFO [main] org.springframework.scheduling.quartz.LocalDataSourceJobStore: Removed 0 stale fired job entries.
2021-09-24 09:21:17,199 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2021-09-24 09:21:17,366 INFO [main] org.springframework.context.support.GenericApplicationContext: Closing org.springframework.context.support.GenericApplicationContext@39c1e7b7: startup date [Fri Sep 24 09:21:05 CEST 2021]; root of context hierarchy
2021-09-24 09:21:17,367 INFO [main] org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 2147483647
2021-09-24 09:21:17,367 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:17,472 INFO [main] org.springframework.scheduling.quartz.SchedulerFactoryBean: Shutting down Quartz Scheduler
2021-09-24 09:21:17,472 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutting down.
2021-09-24 09:21:17,472 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2021-09-24 09:21:17,473 INFO [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutdown complete.
2021-09-24 09:21:17,474 INFO [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Closing JPA EntityManagerFactory for persistence unit 'default'
2021-09-24 09:21:17,474 INFO [main] org.hibernate.tool.schema.internal.SchemaDropperImpl$DelayedDropActionImpl: HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
2021-09-24 09:21:17,920 INFO [HSQLDB Connection @783e544a] hsqldb.db.HSQLDB7C16ADDF6B.ENGINE: Database closed
[ERROR] Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 12.701 s <<< FAILURE! - in org.appng.application.scheduler.business.TestJobRecordings
[ERROR] testGetRecordsForJobId(org.appng.application.scheduler.business.TestJobRecordings) Time elapsed: 0.161 s <<< FAILURE!
junit.framework.AssertionFailedError:
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="records">
<config>
<title id="records.list">Recorded Job Executions</title>
<params>
<param name="jobId">thejob</param>
<param name="path"/>
<param name="tab"/>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobRecord">
<field name="applicationName" type="text" binding="applicationName">
<sort/>
<label id="record.application">Application</label>
</field>
<field name="jobName" type="text" binding="jobName">
<sort/>
<label id="record.jobName">Job Name</label>
</field>
<field name="duration" type="int" binding="duration">
<sort/>
<label id="record.duration">Duration (sec)</label>
</field>
<field name="start" type="date" binding="start">
<sort/>
<label id="record.start">Start Time</label>
</field>
<field name="end" type="date" binding="end">
<sort/>
<label id="record.end">End Time</label>
</field>
<field name="result" type="image" binding="result">
<sort/>
<label id="record.result">Result</label>
<icon condition="${'FAIL' eq current.result}">led_red</icon>
<icon condition="${'SUCCESS'eq current.result}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/${current.id}" default="true">
<label id="record.details">Show Details</label>
<icon>preview</icon>
</link>
</linkpanel>
</config>
<data>
<resultset chunk="0" chunkname="records" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1"/>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
at org.appng.application.scheduler.business.TestJobRecordings.testGetRecordsForJobId(TestJobRecordings.java:137)
[ERROR] testGetRecordsWithFilter(org.appng.application.scheduler.business.TestJobRecordings) Time elapsed: 0.13 s <<< FAILURE!
junit.framework.AssertionFailedError:
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="records">
<config>
<title id="records.list">Recorded Job Executions</title>
<params>
<param name="jobId">thejob</param>
<param name="path"/>
<param name="tab"/>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobRecord">
<field name="applicationName" type="text" binding="applicationName">
<sort/>
<label id="record.application">Application</label>
</field>
<field name="jobName" type="text" binding="jobName">
<sort/>
<label id="record.jobName">Job Name</label>
</field>
<field name="duration" type="int" binding="duration">
<sort/>
<label id="record.duration">Duration (sec)</label>
</field>
<field name="start" type="date" binding="start">
<sort/>
<label id="record.start">Start Time</label>
</field>
<field name="end" type="date" binding="end">
<sort/>
<label id="record.end">End Time</label>
</field>
<field name="result" type="image" binding="result">
<sort/>
<label id="record.result">Result</label>
<icon condition="${'FAIL' eq current.result}">led_red</icon>
<icon condition="${'SUCCESS'eq current.result}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/${current.id}" default="true">
<label id="record.details">Show Details</label>
<icon>preview</icon>
</link>
</linkpanel>
</config>
<data>
<resultset chunk="0" chunkname="records" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1"/>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
at org.appng.application.scheduler.business.TestJobRecordings.testGetRecordsWithFilter(TestJobRecordings.java:150)
[ERROR] testJobDetails(org.appng.application.scheduler.business.TestJobRecordings) Time elapsed: 0.516 s <<< FAILURE!
junit.framework.AssertionFailedError:
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected text value '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}' but was '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}' - comparing <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1] to <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="job">
<config>
<title id="jobs">Jobs</title>
<params>
<param name="id">appng-scheduler_longRunningJob</param>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobModel">
<field name="name" type="text" readonly="true" binding="name">
<label id="name">Name</label>
</field>
<field name="cronExpression" type="text" binding="cronExpression">
<label id="cronExpression">Cron-Expression</label>
</field>
<field name="description" type="longtext" binding="description">
<label id="description">Description</label>
</field>
<field name="jobData" type="longtext" format="preformatted" readonly="true" binding="jobData">
<label id="jobdata">Job Data</label>
</field>
</meta-data>
</config>
<data>
<result>
<field name="name" type="text">
<value>appng-scheduler_longRunningJob</value>
</field>
<field name="cronExpression" type="text">
<value>0 0/10 * 1/1 * ? *</value>
</field>
<field name="description" type="longtext">
<value></value>
</field>
<field name="jobData" type="longtext">
<value>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value>
</field>
</result>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected text value '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}' but was '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}' - comparing <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1] to <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1]
at org.appng.application.scheduler.business.TestJobRecordings.testJobDetails(TestJobRecordings.java:94)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestJobRecordings.testGetRecordsForJobId:137->TestBase.validate:528 XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="records">
<config>
<title id="records.list">Recorded Job Executions</title>
<params>
<param name="jobId">thejob</param>
<param name="path"/>
<param name="tab"/>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobRecord">
<field name="applicationName" type="text" binding="applicationName">
<sort/>
<label id="record.application">Application</label>
</field>
<field name="jobName" type="text" binding="jobName">
<sort/>
<label id="record.jobName">Job Name</label>
</field>
<field name="duration" type="int" binding="duration">
<sort/>
<label id="record.duration">Duration (sec)</label>
</field>
<field name="start" type="date" binding="start">
<sort/>
<label id="record.start">Start Time</label>
</field>
<field name="end" type="date" binding="end">
<sort/>
<label id="record.end">End Time</label>
</field>
<field name="result" type="image" binding="result">
<sort/>
<label id="record.result">Result</label>
<icon condition="${'FAIL' eq current.result}">led_red</icon>
<icon condition="${'SUCCESS'eq current.result}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/${current.id}" default="true">
<label id="record.details">Show Details</label>
<icon>preview</icon>
</link>
</linkpanel>
</config>
<data>
<resultset chunk="0" chunkname="records" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1"/>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
[ERROR] TestJobRecordings.testGetRecordsWithFilter:150->TestBase.validate:528 XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="records">
<config>
<title id="records.list">Recorded Job Executions</title>
<params>
<param name="jobId">thejob</param>
<param name="path"/>
<param name="tab"/>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobRecord">
<field name="applicationName" type="text" binding="applicationName">
<sort/>
<label id="record.application">Application</label>
</field>
<field name="jobName" type="text" binding="jobName">
<sort/>
<label id="record.jobName">Job Name</label>
</field>
<field name="duration" type="int" binding="duration">
<sort/>
<label id="record.duration">Duration (sec)</label>
</field>
<field name="start" type="date" binding="start">
<sort/>
<label id="record.start">Start Time</label>
</field>
<field name="end" type="date" binding="end">
<sort/>
<label id="record.end">End Time</label>
</field>
<field name="result" type="image" binding="result">
<sort/>
<label id="record.result">Result</label>
<icon condition="${'FAIL' eq current.result}">led_red</icon>
<icon condition="${'SUCCESS'eq current.result}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/${current.id}" default="true">
<label id="record.details">Show Details</label>
<icon>preview</icon>
</link>
</linkpanel>
</config>
<data>
<resultset chunk="0" chunkname="records" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1"/>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '4' but was '3' - comparing <field...> at /datasource[1]/config[1]/meta-data[1]/field[3] to <field...> at /datasource[1]/config[1]/meta-data[1]/field[3]
[ERROR] TestJobRecordings.testJobDetails:94->TestBase.validate:523 XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected text value '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}' but was '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}' - comparing <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1] to <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="job">
<config>
<title id="jobs">Jobs</title>
<params>
<param name="id">appng-scheduler_longRunningJob</param>
</params>
<meta-data bindClass="org.appng.application.scheduler.model.JobModel">
<field name="name" type="text" readonly="true" binding="name">
<label id="name">Name</label>
</field>
<field name="cronExpression" type="text" binding="cronExpression">
<label id="cronExpression">Cron-Expression</label>
</field>
<field name="description" type="longtext" binding="description">
<label id="description">Description</label>
</field>
<field name="jobData" type="longtext" format="preformatted" readonly="true" binding="jobData">
<label id="jobdata">Job Data</label>
</field>
</meta-data>
</config>
<data>
<result>
<field name="name" type="text">
<value>appng-scheduler_longRunningJob</value>
</field>
<field name="cronExpression" type="text">
<value>0 0/10 * 1/1 * ? *</value>
</field>
<field name="description" type="longtext">
<value></value>
</field>
<field name="jobData" type="longtext">
<value>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value>
</field>
</result>
</data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected text value '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}' but was '{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}' - comparing <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ?
*",
"enabled" : true,
"forceState" : "true",
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName"
: "localhost"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1] to <value ...>{
"SCHEDULED_JOB" : "org.appng.application.scheduler.job.LongRunningJob",
"cronExpression" : "0 0/10 * 1/1 * ? *",
"enabled" : true,
"forceState" : true,
"jobBeanName" : "longRunningJob",
"origin" : "appng-scheduler",
"siteName" : "localhost",
"thresholdError" : 5,
"thresholdTimeunit" : "DAY"
}</value> at /datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1]
[INFO]
[ERROR] Tests run: 17, Failures: 3, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 53.024 s
[INFO] Finished at: 2021-09-24T09:21:18+02:00
[INFO] Final Memory: 74M/822M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project appng-scheduler: There are test failures.
[ERROR]
[ERROR] Please refer to /var/lib/jenkins/workspace/appNG_Scheduler/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException