Closed janihur closed 2 years ago
If I remove the offending test file jokes/modules/common/test/common_test.bal
I'll get the following problem:
jokes
ballerina: HTTP access log enabled
error: Dependant module initialization for test suite failed due to java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader:defineClass1(ClassLoader.java:-2)
java.lang.ClassLoader:defineClass(ClassLoader.java:1017)
java.lang.ClassLoader:defineClass(ClassLoader.java:878)
org.ballerinalang.test.runtime.CustomClassLoader:findClass(CustomClassLoader.java:47)
java.lang.ClassLoader:loadClass(ClassLoader.java:589)
java.lang.ClassLoader:loadClass(ClassLoader.java:522)
jani:.<init>(jokes.chucknorris:1)
jani:$moduleInit(jokes:-1)
jdk.internal.reflect.NativeMethodAccessorImpl:invoke0(NativeMethodAccessorImpl.java:-2)
jdk.internal.reflect.NativeMethodAccessorImpl:invoke(NativeMethodAccessorImpl.java:62)
jdk.internal.reflect.DelegatingMethodAccessorImpl:invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method:invoke(Method.java:566)
org.ballerinalang.test.runtime.entity.TesterinaFunction:lambda$runOnSchedule$0(TesterinaFunction.java:108)
io.ballerina.runtime.internal.scheduling.SchedulerItem:execute(Scheduler.java:610)
io.ballerina.runtime.internal.scheduling.Scheduler:run(Scheduler.java:316)
io.ballerina.runtime.internal.scheduling.Scheduler:runSafely(Scheduler.java:283)
java.lang.Thread:run(Thread.java:834)
This time all the other tests run fine.
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
- Reason/Regression - The issue has introduced a regression.
- Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
- Reason/Complex - Issue occurred due to complex scenario.
- Reason/Invalid - Issue is invalid.
- Reason/Other - None of the above cases.
Description: When I upgraded from 2201.0.3 to 2201.1.0 the unit tests of the following public demonstration project:
https://github.com/janihur/bal-jokes-api/releases/tag/REVIEW_20220617
fails unexpectedly with Ballerina exception:
Steps to reproduce:
2201.0.3 works:
but 2201.1.0 fails: