Skip to content

Error clearing SLF4J cache #8515

Closed
Closed

Description

@StevenHachel

Brief Summary

When Payara 7 starts, the following error message appears:

[2026-10-16T08:34:01.058+0200] [Payara 7.2026.10] [WARNUNG] [] [javax.enterprise.system.util] [tid: _ThreadID=180 _ThreadName=admin-thread-pool::admin-listener(2)] [timeMillis: 1792132441058] [levelValue: 900] [[
  Error clearing SLF4J cache
java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.set(Object, Object)" because the return value of "com.sun.enterprise.loader.CachingReflectionUtil.getField(java.lang.Class, String, boolean)" is null
	at com.sun.enterprise.loader.CacheCleaner.clearSLF4jCache(CacheCleaner.java:111)
	at com.sun.enterprise.loader.CacheCleaner.clearCaches(CacheCleaner.java:53)
	at org.glassfish.web.loader.WebappClassLoader.stop(WebappClassLoader.java:2044)
	at org.glassfish.web.loader.WebappClassLoader.preDestroy(WebappClassLoader.java:2007)
	at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:292)
	at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:234)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:558)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:569)

Expected Outcome

When Payara 7 starts, the following error message appears:

[2026-10-16T08:34:01.058+0200] [Payara 7.2026.10] [WARNUNG] [] [javax.enterprise.system.util] [tid: _ThreadID=180 _ThreadName=admin-thread-pool::admin-listener(2)] [timeMillis: 1792132441058] [levelValue: 900] [[
  Error clearing SLF4J cache
java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.set(Object, Object)" because the return value of "com.sun.enterprise.loader.CachingReflectionUtil.getField(java.lang.Class, String, boolean)" is null
	at com.sun.enterprise.loader.CacheCleaner.clearSLF4jCache(CacheCleaner.java:111)
	at com.sun.enterprise.loader.CacheCleaner.clearCaches(CacheCleaner.java:53)
	at org.glassfish.web.loader.WebappClassLoader.stop(WebappClassLoader.java:2044)
	at org.glassfish.web.loader.WebappClassLoader.preDestroy(WebappClassLoader.java:2007)
	at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:292)
	at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:234)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:558)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:569)

Current Outcome

This error message appears when I start Payara. My project itself does not use this old SLF4J library.

Reproducer

every time Payara 7 starts up

Operating System

Windows 11

JDK Version

Temerium 21.0.12

Payara Distribution

Payara Server Full Profile

Activity

  1. added
    Type: BugLabel issue as a bug defect
    Status: OpenIssue has been triaged by the front-line engineers and is being worked on verification
    on Oct 16, 2026
  2. StevenHachel commented on Oct 16, 2026

    @StevenHachel
    Author

    Sorry, my mistake. The old SLF4j API was included in one of the dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: OpenIssue has been triaged by the front-line engineers and is being worked on verificationType: BugLabel issue as a bug defect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions