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

Logging in graders not working since v0.6.1 #242

Open
Hapstyx opened this issue Jun 20, 2023 · 0 comments
Open

Logging in graders not working since v0.6.1 #242

Hapstyx opened this issue Jun 20, 2023 · 0 comments
Assignees
Labels
bug size:S This can be dealt with in an afternoon

Comments

@Hapstyx
Copy link
Contributor

Hapstyx commented Jun 20, 2023

Since Jagr v0.6.1, logging in graders using the gradle plugin is not possible and fails with the following message:

[23-Jun-20 15:11:31] [INFO] - Starting Jagr v0.9.0
[23-Jun-20 15:11:35] [ERROR] - Grader grader has 0 warnings and 2 errors
[23-Jun-20 15:11:35] [ERROR] - /p3/graph/BasicGraphTests.java:3 ERROR :: cannot access org.apache.logging.log4j.Logger
  bad class file: org.apache.logging.log4j.core.Logger
    class file contains wrong class: org.apache.logging.log4j.core.Logger
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[23-Jun-20 15:11:35] [ERROR] - /p3/graph/BasicGraphTests.java:43 ERROR :: cannot find symbol
  symbol:   class Logger
  location: class p3.graph.BasicGraphTests
[23-Jun-20 15:11:35] [ERROR] - Grader container grader failed to load
[23-Jun-20 15:11:35] [INFO] - Submission container submission loaded
[23-Jun-20 15:11:35] [INFO] - Executor mode 'gradle' :: expected submission: 1
[23-Jun-20 15:11:41] [WARN] - No rubrics!

An example statement to reproduce the bug would be Jagr.Default.getInjector().getInstance(Logger.class).warn("Hello world!");

@Hapstyx Hapstyx added bug size:S This can be dealt with in an afternoon labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug size:S This can be dealt with in an afternoon
Projects
None yet
Development

No branches or pull requests

2 participants