eclipse-vertx / vertx-junit5

Testing Vert.x applications with JUnit 5
Apache License 2.0
42 stars 30 forks source link

NullPointerException in vertx 4.3.2 #119

Closed glassfox closed 2 years ago

glassfox commented 2 years ago

vertx 4.3.2

Exception:

java.lang.NullPointerException: Cannot invoke "io.vertx.core.spi.logging.LogDelegateFactory.createDelegate(String)" because "io.vertx.core.logging.LoggerFactory.delegateFactory" is null
    at io.vertx.core.logging.LoggerFactory.getLogger(LoggerFactory.java:93)
    at io.vertx.core.logging.LoggerFactory.getLogger(LoggerFactory.java:82)
    at io.vertx.core.impl.logging.LoggerFactory.getLogger(LoggerFactory.java:26)
    at io.vertx.core.impl.VertxImpl.<clinit>(VertxImpl.java:90)

Reproducer:

package io.vertx.ext.mesh;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import io.vertx.core.Vertx;
import io.vertx.junit5.VertxExtension;

@ExtendWith(VertxExtension.class)
class MeshTest {

    @Test
    void test(Vertx vertx) {
    }
}
jponge commented 2 years ago

I've tested locally on 4.3.3-SNAPSHOT and I cannot reproduce the error.

Would you have a complete minimal reproducer project?

glassfox commented 2 years ago

I will check later

glassfox commented 2 years ago

After short investigation, has been found that issue not in JUnit but in core. Fixed in vertx 4.3.4

https://github.com/eclipse-vertx/vert.x/pull/4459