Score:0

FileSystemException appears on maven build in wsl2

bm flag

I installed WSL2 on my Windows, where I build a maven project with WildFly. The compilation fails with following error. On Windows this issue doesn't appear and when I run Ubuntu in Virtualbox, it doesn't appear as well:

Caused by: java.nio.file.FileSystemException: /home/user/bitbucket/trax/trax/trax-release/target/dist/wildfly/standalone/data/content/content2467258569631006810/content/rdTemplate/yui3/build/file-flash/file-flash-min.js: Too many open files
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:422)
        at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
        at java.base/java.nio.file.Files.newInputStream(Files.java:156)
        at [email protected]//org.jboss.as.repository.HashUtil.getRecursiveContentStream(HashUtil.java:120)

How can I fix this

Marco avatar
br flag
Have you tried to ask Microsoft Support ?
stromanneke avatar
bm flag
The issue is Linux-related
Marco avatar
br flag
looks more like WSL related.
stromanneke avatar
bm flag
I did some reasearch and it has to do with the ulimit parameter, but the approaches are different in the resources that I find.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.