question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues Connecting (Unexpected Failures)

See original GitHub issue

Description

I’ve tried using Java Version 18, 17 and now 13.

For some reason every time i connect to the Lavalink client, it always throws the same errors. Not sure what I’m doing wrong but it keeps throwing Unexpected failure erorr.

Range of errors I’m encountering:

java.io.IOError: java.io.FileNotFoundException: Invalid file path

ERROR 10728 --- [  XNIO-1 task-1] io.undertow.request.io : UT005090: Unexpected failure

ERROR 10728 --- [  XNIO-1 task-2] io.undertow.request : UT005071: Undertow request failed HttpServerExchange{ GET /}

Version info

Client used:

Vulkava - Version (Vulkava@1.2.4) | Latest at the time of issue

Output of java -version:

openjdk version "13.0.11" 2022-04-19
OpenJDK Runtime Environment Zulu13.48+19-CA (build 13.0.11+4-MTS)
OpenJDK 64-Bit Server VM Zulu13.48+19-CA (build 13.0.11+4-MTS, mixed mode, sharing)

Lavalink Version:

Version:        3.4
Build:          1257
Build time:     26.10.2021 14:18:37 UTC
Branch          master
Commit:         a364833
Commit time:    26.10.2021 14:15:20 UTC
JVM:            13.0.11
Lavaplayer      1.3.96-original

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidffacommented, May 2, 2022

It also happens on java 17.0.3 from oracle, but the bug was fixed in versions 17.0.3.1 and 18.0.1.1

See: https://www.oracle.com/java/technologies/javase/17-0-3-1-relnotes.html#JDK-8285660 https://bugs.openjdk.java.net/browse/JDK-8285445

1reaction
davidffacommented, Apr 29, 2022

It seems to be a issue with windows or some windows java distributions. Its not a problem with the lavalink client (vulkava), as I tested it by making a direct GET / request from the browser and happens the same problem. I’ve tested on a windows machine with java 11.0.15 (zulu), java 13.0.11 (zulu), java 11.0.14 (oracle) and java 17.0.2 (oracle), but the error only happens using the java 11 and 13 from zulu. Here is the full stacktrace:

2022-04-29 20:14:01.410 ERROR 32312 --- [  XNIO-1 task-1] l.server.io.HandshakeInterceptorImpl     : Authentication failed from /[192.168.1.81:61748](http://192.168.1.81:61748/)
2022-04-29 20:14:01.431 ERROR 32312 --- [  XNIO-1 task-1] io.undertow.request                      : UT005071: Undertow request failed HttpServerExchange{ GET /}

java.io.IOError: java.io.FileNotFoundException: Invalid file path
        at org.xnio.channels.Channels$4.run(Channels.java:998) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
        at org.xnio.channels.Channels$4.run(Channels.java:988) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
        at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
        at org.xnio.channels.Channels.<clinit>(Channels.java:988) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
        at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:618) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:528) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:617) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:328) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) ~[undertow-core-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) ~[undertow-core-2.0.26.Final.jar!/:2.0.26.Final]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Caused by: java.io.FileNotFoundException: Invalid file path
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:231) ~[na:na]
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:126) ~[na:na]
        at org.xnio.channels.Channels$4.run(Channels.java:993) ~[xnio-api-3.3.8.Final.jar!/:3.3.8.Final]
        ... 20 common frames omitted

2022-04-29 20:14:01.445 ERROR 32312 --- [  XNIO-1 task-2] l.server.io.HandshakeInterceptorImpl     : Authentication failed from /[192.168.1.81:61749](http://192.168.1.81:61749/)
2022-04-29 20:14:01.447 ERROR 32312 --- [  XNIO-1 task-2] io.undertow.request                      : UT005071: Undertow request failed HttpServerExchange{ GET /}

java.lang.NoClassDefFoundError: Could not initialize class org.xnio.channels.Channels
        at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:618) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:528) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:617) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:328) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) ~[undertow-servlet-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) ~[undertow-core-2.0.26.Final.jar!/:2.0.26.Final]
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) ~[undertow-core-2.0.26.Final.jar!/:2.0.26.Final]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix the "An Unexpected Network Error Occurred ...
While the error message states that there is an issue with the network, simply checking your Wi-Fi connection will not do the trick....
Read more >
"Unexpected error. Check your network connection or view ...
"Unexpected error. Check your network connection or view Director Server event logs for further information" under Trends > Failures > Connection.
Read more >
Getting "Assessment failed: Unexpected failure" error for my site
Unexpected failure - our tests are designed to fail when unusual results are observed. This usually happens when there are multiple TLS servers ......
Read more >
HTTP connectivity verifiers return unexpected failures in TMG ...
This problem may occur if the HTTP connectivity verifier is redirected to a different URL while it's validating the server. Typically, this may...
Read more >
Connection failed There was an unexpected error ... - GitHub
Connection failed There was an unexpected error while connecting to the machine. Messages related to the failure might be found in the journal:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found