Robert Munteanu created SLING-4826:
--------------------------------------

             Summary: WebConsolePrinter.testConsolePrinter always fails on Java 
8
                 Key: SLING-4826
                 URL: https://issues.apache.org/jira/browse/SLING-4826
             Project: Sling
          Issue Type: Bug
          Components: Commons
    Affects Versions: Commons Scheduler 2.4.8
            Reporter: Robert Munteanu
             Fix For: Commons Scheduler 2.4.10


On builds.apache.org the test fails with Java 8 but passes with Java 7. I've 
verified that the same happens locally, so this is not a flaky test.

*Error Message*

{noformat}Expecting regexp match: 'Job : testName2, class: java.lang.Thread, 
concurrent: true, bundleId: 2, serviceId: 2' / '^Job.*testName3.*'{noformat}

*Stacktrace*

{noformat}java.lang.AssertionError: Expecting regexp match: 'Job : testName2, 
class: java.lang.Thread, concurrent: true, bundleId: 2, serviceId: 2' / 
'^Job.*testName3.*'
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at 
org.apache.sling.commons.scheduler.impl.WebConsolePrinterTest.assertRegexp(WebConsolePrinterTest.java:86)
        at 
org.apache.sling.commons.scheduler.impl.WebConsolePrinterTest.testConsolePrinter(WebConsolePrinterTest.java:71){noformat}

*Standard Error*

{noformat}373 [main] INFO 
org.apache.sling.commons.threads.impl.DefaultThreadPoolManager - Startet Apache 
Sling Thread Pool Manager: 
org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
373 [main] ERROR org.apache.sling.commons.threads.impl.DefaultThreadPoolManager 
- Configuration admin is not available.
373 [main] INFO org.apache.sling.commons.threads.impl.DefaultThreadPool - 
Initializing thread pool [testName]  ...
373 [main] INFO org.apache.sling.commons.threads.impl.DefaultThreadPool - 
Thread pool [testName] initialized.
373 [main] INFO org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler 
Signaller of type: class org.quartz.core.SchedulerSignalerImpl
373 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.2.1 
created.
373 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
373 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz 
Scheduler (v2.2.1) 'ApacheSling' with instanceId 'Mon_Jun_22_08:44:40_UTC_2015'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 
'org.apache.sling.commons.scheduler.impl.QuartzScheduler$QuartzThreadPool' - 
with 5 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support 
persistence. and is not clustered.

374 [main] INFO org.quartz.impl.DirectSchedulerFactory - Quartz scheduler 
'ApacheSling
374 [main] INFO org.quartz.impl.DirectSchedulerFactory - Quartz scheduler 
version: 2.2.1
374 [main] INFO org.quartz.core.QuartzScheduler - Scheduler 
ApacheSling_$_Mon_Jun_22_08:44:40_UTC_2015 started.
378 [main] INFO org.quartz.core.QuartzScheduler - Scheduler 
ApacheSling_$_Mon_Jun_22_08:44:40_UTC_2015 shutting down.
378 [main] INFO org.quartz.core.QuartzScheduler - Scheduler 
ApacheSling_$_Mon_Jun_22_08:44:40_UTC_2015 paused.
378 [main] INFO org.quartz.core.QuartzScheduler - Scheduler 
ApacheSling_$_Mon_Jun_22_08:44:40_UTC_2015 shutdown complete.
378 [main] INFO org.apache.sling.commons.threads.impl.DefaultThreadPool - 
Shutting down thread pool [testName] ...
378 [main] INFO org.apache.sling.commons.threads.impl.DefaultThreadPool - 
Thread pool [testName] is shut down.{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to