You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/02/07 09:41:42 UTC
[GitHub] [maven-mvnd] jcm007 opened a new issue #601: java.nio.BufferUnderflowException occurs when I run any mvnd command
jcm007 opened a new issue #601:
URL: https://github.com/apache/maven-mvnd/issues/601
Hi Experts,
I get this error even when I run mvnd -v:
PS D:\_Projects\Java\xxx> mvnd -v
mvnd native client 0.7.1-windows-amd64 (97c587c11383a67b5bd0ff8388bd94c694b91c1e)
Terminal: org.jline.terminal.impl.jansi.win.JansiWinSysTerminal
Exception in thread "main" java.nio.BufferUnderflowException
at java.nio.ByteBuffer.get(ByteBuffer.java:798)
at java.nio.ByteBuffer.get(ByteBuffer.java:826)
at org.mvndaemon.mvnd.common.DaemonRegistry.readString(DaemonRegistry.java:303)
at org.mvndaemon.mvnd.common.DaemonRegistry.doUpdate(DaemonRegistry.java:209)
at org.mvndaemon.mvnd.common.DaemonRegistry.read(DaemonRegistry.java:164)
at org.mvndaemon.mvnd.common.DaemonRegistry.getAll(DaemonRegistry.java:102)
at org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:101)
at org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:272)
at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:118)
When I run other commands, it will be like:
PS D:\_Projects\Java\xxx> mvnd clean install -DskipTests=true '-Dmaven.javadoc.skip=true' '-Dmaven.compile.fork=t
rue' -T 0.8C
Exception in thread "main" java.nio.BufferUnderflowException
at java.nio.ByteBuffer.get(ByteBuffer.java:798)
at java.nio.ByteBuffer.get(ByteBuffer.java:826)
at org.mvndaemon.mvnd.common.DaemonRegistry.readString(DaemonRegistry.java:303)
at org.mvndaemon.mvnd.common.DaemonRegistry.doUpdate(DaemonRegistry.java:209)
at org.mvndaemon.mvnd.common.DaemonRegistry.read(DaemonRegistry.java:164)
at org.mvndaemon.mvnd.common.DaemonRegistry.getAll(DaemonRegistry.java:102)
at org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:101)
at org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:272)
at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:118)
Please help. Thanks in advance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [maven-mvnd] gnodet commented on issue #601: java.nio.BufferUnderflowException occurs when I run any mvnd command
Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #601:
URL: https://github.com/apache/maven-mvnd/issues/601#issuecomment-1041332611
Yes, the exception clearly indicates the registry has been corrupted. We should put some safeguard mechanism to handle this use case more gracefully. As indicated by @garywhittington, deleting the `$HOME/.m2/mvnd` should be a good workaround.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [maven-mvnd] garywhittington commented on issue #601: java.nio.BufferUnderflowException occurs when I run any mvnd command
Posted by GitBox <gi...@apache.org>.
garywhittington commented on issue #601:
URL: https://github.com/apache/maven-mvnd/issues/601#issuecomment-1041325931
The same problem started for me today. I resolved it by removing the $HOME/.m2/mvnd directory, and then all seems to be working again (with mvnd then recreating this directory).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org