Skip to content

java.lang.ClassNotFoundException: jdk.jfr.Event with minimized JRE #5326

@alianman

Description

@alianman

When I use Spring Batch with minimized JRE (without jdk.jfr module) following exception is thrown at TaskExecutorJobOperator.start method:

<#f190dde2> java.lang.ClassNotFoundException: jdk.jfr.Event
	... 188 more
Wrapped by: <#57495acc> java.lang.NoClassDefFoundError: jdk/jfr/Event
	at org.springframework.batch.core.launch.support.TaskExecutorJobOperator.start(TaskExecutorJobOperator.java:112)
[truncated]

Is JFR required for Spring Batch?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions