Skip to content

Recent changes in pom.xml file resulted a bug in a test class #12

@PrathameshBhagat

Description

@PrathameshBhagat

Bug background & Intro

My local clone was breaking after (a fetch or similar) I noticed you guys updated pom.xml file, recently

    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-core</artifactId>
      <version>1.5.13</version> <!-- this was 1.5.6 some time ago -->
    </dependency>

    <dependency>

This updated is resulting in ERROR :-
java.lang.NoClassDefFoundError: ch/qos/logback/core/boolex/JaninoEventEvaluatorBase

which used to work absolutely fine when it wasn't updated

Youtube Video available here :- https://youtu.be/hCt2wW3oqbw ⏯️

It still works well if I revert your changes and re-run mvn clean install or update logback-classic to 1.5.13 or upgrade both to 13 or 19.

Logs

Available in comment below.

Important

The problem is just in a test class so lowers it's severity.

Video of the bug

I have created a video available here:- https://youtu.be/hCt2wW3oqbw. Secrets used are only for demo purpose. and the video is not public only available via the above link.

Note

I'm assuming a release is not yet created so users won't see it, but you might want to revert this change unless you are working on something which requires this and the other changes would fix it automatically.

What can help ?

Just reverting the last commit in the main branch.

You can do two things in this code in pom.xml:-

    <!--    Logging dependencies-->
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-core</artifactId>
      <version>1.5.13</version> <!-- problem here -->
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.1.0-alpha1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.5.6</version> <!-- Can update this ??? -->
    </dependency>

The thing we can do is:

  1. update logback-classic from 1.5.6 to 1.5.13
    OR
  2. downgrade logback-core from 1.5.13 to 1.5.6

Both fixes the error (atleast in my machine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions