We are Migrating SpringBoot 3.0.1 to SprintBoot 3.4.5
jdk 17 to jdk 21
APM agent 1.54 and we are getting below error during start up of application, Application is working fine but were are not able to push APM details to APM server in elastic-search
2025-06-26 21:15:35,436 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'com.xxx.xxxxx' (source: Environment Variables)
2025-06-26 21:15:37,220 [main] ERROR co.elastic.apm.agent.bci.IndyBootstrap - java.nio.file.spi.FileSystemProvider: Provider org.springframework.boot.loader.nio.file.NestedFileSystemProvider not found
java.util.ServiceConfigurationError: java.nio.file.spi.FileSystemProvider: Provider org.springframework.boot.loader.nio.file.NestedFileSystemProvider not found
at java.util.ServiceLoader.fail(ServiceLoader.java:593) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1219) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273) ~[?:?]
at java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309) ~[?:?]
at java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393) ~[?:?]
at java.nio.file.spi.FileSystemProvider.loadInstalledProviders(FileSystemProvider.java:156) ~[?:?]
at java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:207) ~[?:?]
at java.nio.file.spi.FileSystemProvider$1.run(FileSystemProvider.java:204) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:319) ~[?:?]
at java.nio.file.spi.FileSystemProvider.installedProviders(FileSystemProvider.java:204) ~[?:?]
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:336) ~[?:?]
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:288) ~[?:?]
at co.elastic.apm.agent.util.PackageScanner.doGetClassNames(PackageScanner.java:91) ~[elastic-apm-agent.jar:1.54.0]
at co.elastic.apm.agent.util.PackageScanner.getClassNames(PackageScanner.java:61) ~[elastic-apm-agent.jar:1.54.0]
at co.elastic.apm.agent.bci.IndyBootstrap.getClassNamesFromBundledPlugin(IndyBootstrap.java:549) ~[elastic-apm-agent.jar:1.54.0]
at co.elastic.apm.agent.bci.IndyBootstrap.internalBootstrap(IndyBootstrap.java:476) [elastic-apm-agent.jar:1.54.0]
at co.elastic.apm.agent.bci.IndyBootstrap.bootstrap(IndyBootstrap.java:416) [elastic-apm-agent.jar:1.54.0]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at java.lang.IndyBootstrapDispatcher.bootstrap(IndyBootstrapDispatcher.java:61) [?:?]
at java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:147) [?:?]
at java.lang.invoke.CallSite.makeSite(CallSite.java:316) [?:?]