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

JFluid wire protocol error: code does not correspond to command or response. #476

Closed
thurka opened this issue Jan 5, 2023 · 5 comments
Closed
Assignees
Labels

Comments

@thurka
Copy link
Member

thurka commented Jan 5, 2023

Sometimes profiling fails with the error below:

*** Profiler error (Thu Jan 05 14:50:48 CET 2023): exception while trying to get response from the target JVM:
java.io.IOException: JFluid wire protocol error: code does not correspond to command or response. Value 28
*** Profiler error (Thu Jan 05 14:50:48 CET 2023): exception when trying to send a response: java.net.SocketException: Socket closed
@thurka thurka added the bug label Jan 5, 2023
@thurka thurka self-assigned this Jan 5, 2023
@joy-jreij
Copy link

joy-jreij commented Feb 1, 2023

@thurka I am getting the same IOException but with a different "Profiler error":

Profiler Agent Error: Exception when handling command from client: java.io.IOException: JFluid wire protocol error: code does not correspond to command or response. Value -1 Profiler Agent: Connection with agent closed

I get this error randomly when I try to stop CPU profiling. I am using a Macbook Pro with an M1 Max CPU (AArch64) and openjdk 17.

@thurka
Copy link
Member Author

thurka commented Feb 9, 2023

@joy-jreij This looks to me like different issue. Can you please file a separate bug report? Thanks.

@WernherVonData
Copy link

Got similar issue as @joy-jreij - is there a ticket for that? Didn't see any on the list. For me removing the location given to the --userdir helped (might be just a coincidence as well).

@thurka
Copy link
Member Author

thurka commented Jan 24, 2024

This particular problem of "code does not correspond to command or response" (identified by Value > 0) happens when reading RootClassLoadedCommand.

thurka added a commit that referenced this issue Jan 27, 2024
… added to outsmart concatenated gzip logic in GZIPInputStream.readTrailer()
@thurka
Copy link
Member Author

thurka commented Jan 27, 2024

Fixed in master.

@thurka thurka closed this as completed Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants