-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log4j error when using Botsing #47
Comments
Hi @MaelAudren, From the error message, there seems to be a conflict in the classloaders. The same class loaded by two different class loaders. The shadowing performed when building the project (introduced in botsing-1.0.3) addresses this problem. I saw that there is now also a shadowing step in the Gradle build, but it does not seem to work properly. When building the plugin with Gradle. I decompressed the fat .jar file and the packages are not relocated to avoid conflicts in the class loaders. I think this https://imperceptiblethoughts.com/shadow/configuration/relocation/#filtering-relocation and the list of relocated packages might help: Lines 288 to 399 in fb6e611
|
@xdevroey thanks for the help. How do you know if a package is reallocated or not ? |
I saw it by decompressing the fat .jar file produced by the plugin and checking that the directories tree does not contain the original packages hierarchy. In the example I provided, you have the package prefix and the relocation (in org.evosuite.shaded). I strongly recommend you keep that same name because the EvoSuite library seems to have some hardcoded packages names comparison. The Gradle plugin you are using seems to follow the same usage pattern as Maven (cf. link to the documentation). |
@xdevroey Those errors also appears when I launch Botsing manually however they are absolutely not the cause of the Botsing crash. The crash was provoked by an issue on the plugin I have just misunderstood the logs. I have updated the description to reflect better the issue. |
Characteristics
Description
Error logs appears in Botsing during its run.
Steps to reproduce
https://github.com/STAMP-project/evocrash-usecases-output/tree/master/Activeeon/Botsing/v1.0.3/scheduling
Other files and URLs
Log file: https://github.com/STAMP-project/evocrash-usecases-output/blob/master/Activeeon/Botsing/v1.0.3/scheduling/SpaceNotFoundException/SpaceNotFound.log
The text was updated successfully, but these errors were encountered: