Skip to content
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

Imported: JenkinsLogRedirector causes ClassCastException if SimpleLoggerContext is used #36

Closed
DaGeRe opened this issue Nov 15, 2021 · 1 comment
Assignees

Comments

@DaGeRe
Copy link
Owner

DaGeRe commented Nov 15, 2021

This issue has been imported from an old repository. It was originally created by @mawHBT at 2021-09-15T12:15:05Z with number #36

If SimpleLoggerContext is used, creating LoggerContext in JenkinsLogRedirector causes:

java.lang.ClassCastException: class org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.log4j.simple.SimpleLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader jenkins.util.AntClassLoader @212619ff)
   at de.dagere.peass.ci.JenkinsLogRedirector.<init>(JenkinsLogRedirector.java:14)
   at de.dagere.peass.ci.MeasureVersionBuilder.perform(MeasureVersionBuilder.java:112)
   at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:100)
   at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:70)
@DaGeRe DaGeRe self-assigned this Nov 15, 2021
@DaGeRe DaGeRe closed this as completed Nov 15, 2021
@DaGeRe
Copy link
Owner Author

DaGeRe commented Nov 15, 2021

This comment has been imported from an old repository. It was originally created by @mawHBT at 2021-09-20T06:08:37Z

It was forgotten to restart Jenkins after the plugin was updated. So an old version was used, which caused the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant