quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.58k stars 2.63k forks source link

How to close (source: <unknown>) Jandex index WARN log simplely? #24907

Open baodingfengyun opened 2 years ago

baodingfengyun commented 2 years ago

Description

2022-04-13 14:59:59,815 WARN [io.qua.dep.ste.ReflectiveHierarchyStep] (build-60) Unable to properly register the hierarchy of the following classes for reflection as they are not in the Jandex index:

- brave.Span (source: <unknown>)

- brave.Tracing (source: <unknown>)

- brave.propagation.TraceContext (source: <unknown>)

- com.alipay.remoting.rpc.RpcClient (source: <unknown>)

- com.alipay.remoting.rpc.protocol.AsyncUserProcessor (source: <unknown>)

- com.google.common.cache.LoadingCache (source: <unknown>)

- com.google.common.collect.BiMap (source: <unknown>)

- com.google.common.collect.ListMultimap (source: <unknown>)

- com.hazelcast.core.HazelcastInstance (source: <unknown>)

- com.hazelcast.replicatedmap.ReplicatedMap (source: <unknown>)

- com.hazelcast.topic.ITopic (source: <unknown>)

- io.micrometer.core.instrument.MeterRegistry (source: <unknown>)

- io.micrometer.core.instrument.Tags (source: <unknown>)

- io.micrometer.core.instrument.Timer (source: <unknown>)

- io.netty.bootstrap.Bootstrap (source: <unknown>)

- io.netty.channel.Channel (source: <unknown>)

- io.netty.channel.ChannelInboundHandlerAdapter (source: <unknown>)

- io.netty.channel.EventLoopGroup (source: <unknown>)

- io.netty.channel.group.ChannelGroup (source: <unknown>)

- io.netty.handler.ssl.SslContextBuilder (source: <unknown>)

- io.netty.handler.ssl.SslProvider (source: <unknown>)

- io.netty.resolver.AddressResolverGroup (source: <unknown>)

- io.netty.util.HashedWheelTimer (source: <unknown>)

- io.netty.util.Timeout (source: <unknown>)

- io.netty.util.Timer (source: <unknown>)

- io.netty.util.concurrent.EventExecutorGroup (source: <unknown>)

- io.netty.util.concurrent.Future (source: <unknown>)

- io.netty.util.concurrent.ScheduledFuture (source: <unknown>)

- io.vertx.core.Vertx (source: <unknown>)

- io.vertx.core.eventbus.EventBus (source: <unknown>)

- io.vertx.core.metrics.Measured (source: <unknown>)

- io.vertx.ext.web.client.WebClient (source: <unknown>)

- javax.naming.directory.InitialDirContext (source: <unknown>)

- javax.net.ssl.SSLParameters (source: <unknown>)

- javax.websocket.Extension (source: <unknown>)

- javax.websocket.MessageHandler (source: <unknown>)

- javax.websocket.RemoteEndpoint$Async (source: <unknown>)

- javax.websocket.RemoteEndpoint$Basic (source: <unknown>)

- javax.websocket.Session (source: <unknown>)

- javax.websocket.WebSocketContainer (source: <unknown>)

- jdk.jfr.Event (source: <unknown>)

- org.HdrHistogram.Histogram (source: <unknown>)

- org.LatencyUtils.LatencyStats (source: <unknown>)

- org.LatencyUtils.PauseDetector (source: <unknown>)

- org.jboss.logging.Logger (source: <unknown>)

- reactor.core.publisher.DirectProcessor (source: <unknown>)

- reactor.core.publisher.Flux (source: <unknown>)

- reactor.core.publisher.FluxSink (source: <unknown>)

- reactor.core.publisher.Mono (source: <unknown>)

- reactor.core.scheduler.Scheduler (source: <unknown>)

- reactor.util.function.Tuple2 (source: <unknown>)

- zipkin2.Endpoint (source: <unknown>)

- zipkin2.Endpoint$Builder (source: <unknown>)

Consider adding them to the index either by creating a Jandex index for your dependency via the Maven plugin, an empty META-INF/beans.xml or quarkus.index-dependency properties.

Implementation ideas

Can add a simple switch to close this WARN ?

geoand commented 2 years ago

Is this still an issue with the latest versions of Quarkus?

yrodiere commented 1 year ago

FWIW, a workaround would be to configure a log filter: https://quarkus.io/guides/logging#console-log-handler You can do it for the console (quarkus.log.console.filter) but also for the file logging (quarkus.log.file.filter).

Though we'd probably want to look into why this is being logged?

quarkus-bot[bot] commented 1 year ago

/cc @Sanne, @aloubyansky, @geoand, @gsmet, @radcortez, @stuartwdouglas