There has to be something wrong with the gradle file for 6.3.7. Checking 
out the latest 6.3.7, adding an empty Junit test, adding: 
testImplementation 
'org.springframework.boot:spring-boot-starter-test:2.3.7.RELEASE' to gradle 
file and getting the exact same exception:

> Task :test

UnknownClass.JUnit Jupiter > UnknownClass.initializationError FAILED
    org.junit.platform.commons.JUnitException at 
EngineExecutionOrchestrator.java:114
        Caused by: java.lang.NoClassDefFoundError at 
OpenTest4JAndJUnit4AwareThrowableCollector.java:58
            Caused by: java.lang.ClassNotFoundException at 
BuiltinClassLoader.java:583

UnknownClass.JUnit Jupiter FAILED

2 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

On Wednesday, October 27, 2021 at 4:46:07 PM UTC-5 Pablo Vidaurri wrote:

> Thanks for the tip. I've in fact removed the version completely as 
> suggested by comments in the new build.gradle file:
>
> dependencies {
>     /**
>      * CAS dependencies and modules may be listed here.
>      *
>      * There is no need to specify the version number for each dependency
>      * since versions are all resolved and controlled by the dependency 
> management
>      * plugin via the CAS bom.
>      **/
> .
> .
> .
>
>
> On Wednesday, October 27, 2021 at 4:03:12 PM UTC-5 Ray Bon wrote:
>
>> Pablo,
>>
>> Make sure the libraries you import have the same version as the main cas 
>> project. This could be library version issues.
>>
>> Ray
>>
>> On Wed, 2021-10-27 at 13:22 -0700, Pablo Vidaurri wrote:
>>
>> Notice: This message was sent from outside the University of Victoria 
>> email system. Please be cautious with links and sensitive information. 
>>
>>
>> Upgrading from 6.3.2 to 6.3.7 ... seems like a minor change but I am 
>> surprised to see so many files changing. Everything from docker, gradle, 
>> and property files. My junit test are no longer executing. Getting the 
>> following error during init: 
>>
>> org.junit.platform.commons.JUnitException: TestEngine with ID 
>> 'junit-jupiter' failed to execute tests at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:114)
>>  
>> at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
>>  
>> at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
>>  
>> at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
>>  
>> at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
>>  
>> at 
>> org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
>>  
>> at 
>> org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
>>  
>> at 
>> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method) at 
>> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  
>> at 
>> [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  
>> at [email protected]/java.lang.reflect.Method.invoke(Method.java:566) at 
>> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
>>  
>> at 
>> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
>>  
>> at 
>> org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
>>  
>> at 
>> org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
>>  
>> at com.sun.proxy.$Proxy6.stop(Unknown Source) at 
>> org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
>>  
>> at 
>> org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
>>  
>> at 
>> org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
>>  
>> at 
>> org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:133)
>>  
>> at 
>> org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71)
>>  
>> at 
>> app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
>>  
>> at 
>> app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
>>  
>> Caused by: java.lang.NoClassDefFoundError: 
>> org/junit/platform/commons/util/UnrecoverableExceptions at 
>> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:76)
>>  
>> at 
>> org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
>>  
>> at 
>> org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
>>  
>> at 
>> org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
>>  
>> at 
>> org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
>>  
>> at 
>> org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
>>  
>> at 
>> org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
>>  
>> ... 28 more
>>
>> I am using this in my build.gradle file:
>>
>> testImplementation 
>> "org.springframework.boot:spring-boot-starter-test:${project.springBootVersion}"
>>
>> apply plugin: "jacoco"
>>
>> test {
>>     useJUnitPlatform {}
>>     finalizedBy jacocoTestReport // report is always generated after 
>> tests run
>>     jacoco {
>>         destinationFile = 
>> layout.buildDirectory.file('jacoco/jacocoTest.exec').get().asFile
>>         classDumpDir = 
>> layout.buildDirectory.dir('jacoco/classpathdumps').get().asFile
>>     }
>> }
>>
>> jacocoTestReport {
>>     dependsOn test
>>      reports {
>>         xml.required = true
>>         csv.required = false
>>         html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
>>     }
>> }
>> jacoco {
>>     toolVersion = "0.8.7"
>> }
>>
>>
>>
>>
>>
>> -- 
>>
>> Ray Bon
>> Programmer Analyst
>> Development Services, University Systems
>> 2507218831 <(250)%20721-8831> | CLE 019 | [email protected]
>>
>> I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional 
>> territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ 
>> peoples whose historical relationships with the land continue to this day.
>>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/77cd3255-8cee-4352-814a-1bbed2f1c10bn%40apereo.org.

Reply via email to