Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncRequestNotUsableException (Jetty) #2638

Closed
tesshucom opened this issue May 15, 2024 · 2 comments · Fixed by #2640
Closed

AsyncRequestNotUsableException (Jetty) #2638

tesshucom opened this issue May 15, 2024 · 2 comments · Fixed by #2640
Assignees
Labels
in: web-playback Especially, issues with playback features on the browser. type: bug A general bug
Milestone

Comments

@tesshucom
Copy link
Owner

tesshucom commented May 15, 2024

Problem description

An unknown warning will be logged in the log. There is no problem with playing music.

Suppressed: org.springframework.web.context.request.async.AsyncRequestNotUsableException: Response not usable after response errors.
at org.springframework.web.context.request.async.StandardServletAsyncWebRequest$LifecycleHttpServletResponse.obtainLockAndCheckState(StandardServletAsyncWebRequest.java:314) ~[spring-web-6.1.6.jar!/:6.1.6]
at org.springframework.web.context.request.async.StandardServletAsyncWebRequest$LifecycleServletOutputStream.close(StandardServletAsyncWebRequest.java:401) ~[spring-web-6.1.6.jar!/:6.1.6]
at com.tesshu.jpsonic.controller.StreamController.handleRequest(StreamController.java:427) ~[!/:114.1.1]
... 125 common frames omitted
Caused by: org.eclipse.jetty.io.EofException: null
at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:117) ~[jetty-io-12.0.8.jar!/:12.0.8]
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422) ~[jetty-io-12.0.8.jar!/:12.0.8]
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377) ~[jetty-io-12.0.8.jar!/:12.0.8]
at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67) ~[jetty-io-12.0.8.jar!/:12.0.8]
... 9 common frames omitted
Caused by: java.io.IOException: Broken pipe
at java.base/sun.nio.ch.SocketDispatcher.writev0(Native Method) ~[na:na]
at java.base/sun.nio.ch.SocketDispatcher.writev(Unknown Source) ~[na:na]
at java.base/sun.nio.ch.IOUtil.write(Unknown Source) ~[na:na]
at java.base/sun.nio.ch.IOUtil.write(Unknown Source) ~[na:na]
at java.base/sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:na]
at java.base/java.nio.channels.SocketChannel.write(Unknown Source) ~[na:na]
at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:111) ~[jetty-io-12.0.8.jar!/:12.0.8]

Steps to reproduce

  1. Not clear. Play music.

System information

  • Jpsonic version: v114.1.1 ( jetty-ee10-apache-jsp 12.0.8)

Additional notes

Upgrading jetty-ee10-apache-jsp to 12.0.9 may worsen the symptoms. (There is a problem with playing music) An investigation would be necessary. If Revert of Jetty is possible, consider it.

Related : #2632

@tesshucom tesshucom added type: bug A general bug in: web-playback Especially, issues with playback features on the browser. labels May 15, 2024
@tesshucom tesshucom added this to the jpsonic 114.2 milestone May 15, 2024
@tesshucom tesshucom self-assigned this May 15, 2024
@tesshucom
Copy link
Owner Author

tesshucom commented May 15, 2024

This problem can be avoided by reverting to 12.0.6 (jetty-io is actually the origin of the problem). It seems that similar issues have probably been reported, so it would be a good idea to revert and monitor the progress.

@tesshucom
Copy link
Owner Author

Create a pull request.

@tesshucom tesshucom linked a pull request May 16, 2024 that will close this issue
@tesshucom tesshucom changed the title AsyncRequestNotUsableException AsyncRequestNotUsableException (Jetty) May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web-playback Especially, issues with playback features on the browser. type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant