How to solve FileNotFoundException: Invalid file path

This article discusses how to solve the JDK issue, which happens on WildFly on Windows, on certain JDK version, an results in the error “ Invalid file path“.

The Issue

As discussed in this JDK Bug , with java update cpuapr2022 (8u331 11.0.15 and 18.0.1), the Web Server undertow is broken for windows.

When using a JDK affected by this Bug, a FileNotFoundException is thrown when a user is logging into the management console. The management console is no longer available .

Caused by: Invalid file path
        at java.base/<init>(
        at java.base/<init>(

The Solution

You can solve the issue in two ways:

  1. Upgrade to the JDK version which solves the issue. Check the Fix version from the above Bug.
  2. Apply a workaround to change the property to true instead of false.

The java property is a hidden system property used by the Java Virtual Machine (JVM) to enable or disable the Advanced Disk Storage (ADS) feature. ADS is a feature that allows the JVM to store objects in a more compact and efficient manner, which can improve the performance of Java applications.

  • When is set to true, the JVM will attempt to use ADS for storing objects. This can result in a significant performance improvement for some applications, especially those that perform a lot of object creation and garbage collection. However, it is important to note that ADS is still experimental, and it may not work well with all applications.
  • When is set to false, the JVM will not use ADS. This will cause objects to be stored in the traditional way, which may result in a slightly slower performance. However, it is also more reliable, and it is less likely to cause problems with applications.

In general, it is recommended to set to true for applications that are performance-critical and that have been tested with ADS. For other applications, it is generally safe to leave it at the default value of false.

In order to modify the property, you can set to true in the standalone.conf.bat if you are running in standalone mode:


On the other hand, if you are using Domain mode, you can set it in the scope you need it (Server/Server Group/Host) with a jvm element:

<jvm options="">

More about Domain Mode configuration here: How to configure WildFly in Domain mode


This article was a quick wiki to solve the issue FileNotFoundException which happens for some JDK version running WildFly on WIndows