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

UnsupportedOperationException at Server.handleRun #2545

Closed
SpriteOvO opened this issue May 24, 2023 · 2 comments · Fixed by #2546
Closed

UnsupportedOperationException at Server.handleRun #2545

SpriteOvO opened this issue May 24, 2023 · 2 comments · Fixed by #2546
Milestone

Comments

@SpriteOvO
Copy link

SpriteOvO commented May 24, 2023

I'm using mill v0.10.12, and I encountered this error several days.

java.lang.UnsupportedOperationException
        at java.base/java.lang.Thread.stop(Thread.java:1705)
        at mill.main.Server.handleRun(MillServerMain.scala:209)
        at mill.main.Server.$anonfun$run$2(MillServerMain.scala:117)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
        at mill.main.Server$.lockBlock(MillServerMain.scala:227)
        at mill.main.Server.$anonfun$run$1(MillServerMain.scala:98)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
        at mill.main.Server$.tryLockBlock(MillServerMain.scala:235)
        at mill.main.Server.run(MillServerMain.scala:95)
        at mill.main.MillServerMain$.main(MillServerMain.scala:53)
        at mill.main.MillServerMain.main(MillServerMain.scala)

The error is always thrown after a build is completed, the build was successful. Passing --no-server to mill will suppress the error, but obviously the server will be disabled.

It seems to be thrown from

Any idea or workaround would be appreciated.

@lefou
Copy link
Member

lefou commented May 24, 2023

We already fixed it in main branch:

A backport seems easy enough.

@SpriteOvO
Copy link
Author

I have applied that PR as a patch and recompiled mill locally, the error is gone. Thank you @lefou.

@lefou lefou reopened this May 24, 2023
@lefou lefou linked a pull request May 24, 2023 that will close this issue
@lefou lefou added this to the 0.10.13 milestone Jun 1, 2023
@lefou lefou closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants