Deploying an application containing Google Guava 31.0 cause dozens of WFLYSRV0003 logging

Solution Verified - Updated -

Issue

When deploying an application containing guava-31.1-jre.jar, dozens of WARN WFLYSRV0003 messages are logged in server.log.

19:04:13,711 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class com/google/common/io/Closer.class at /content/jackson-jaxrs.war/WEB-INF/lib/guava-31.1-jre.jar: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
    at org.jboss.jandex@2.0.5.Final-redhat-1//org.jboss.jandex.Indexer.updateTypeTarget(Indexer.java:708)
    at org.jboss.jandex@2.0.5.Final-redhat-1//org.jboss.jandex.Indexer.updateTypeTargets(Indexer.java:491)
    at org.jboss.jandex@2.0.5.Final-redhat-1//org.jboss.jandex.Indexer.index(Indexer.java:1465)
    at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
    at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
    at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
    at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
    at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
    at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
    at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
    at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
    at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
    at java.base/java.lang.Thread.run(Thread.java:829)

19:04:13,806 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class com/google/common/util/concurrent/AbstractListeningExecutorService.class at /content/jackson-jaxrs.war/WEB-INF/lib/guava-31.1-jre.jar: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        ...

19:04:13,814 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0003: Could not index class com/google/common/util/concurrent/ListeningScheduledExecutorService.class at /content/jackson-jaxrs.war/WEB-INF/lib/guava-31.1-jre.jar: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4.5 or earlier
  • Google Guava

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content