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

Profiler doesn't work with large classpath #8067

Open
esparky opened this issue Dec 17, 2024 · 0 comments
Open

Profiler doesn't work with large classpath #8067

esparky opened this issue Dec 17, 2024 · 0 comments
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers profiler

Comments

@esparky
Copy link

esparky commented Dec 17, 2024

Apache NetBeans version

Apache NetBeans 24

What happened

Large project with gradle, connect profiler to application raises exception:

Profiler Agent Error: Exception when trying to send response or command to client:
java.io.UTFDataFormatException
java.io.UTFDataFormatException
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2188)
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2029)
	at java.base/java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:887)
	at org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse.writeObject(VMPropertiesResponse.java:179)
	at org.netbeans.lib.profiler.wireprotocol.WireIO.sendComplexResponse(WireIO.java:312)
	at org.netbeans.lib.profiler.server.ProfilerServer.sendComplexResponseToClient(ProfilerServer.java:700)
	at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1590)
	at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1753)
	at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:676)

It is same problem as oracle/visualvm#81

Language / Project Type / NetBeans Component

JVM Profiler

How to reproduce

Large project with gradle, connect profiler to application raises exception:

Profiler Agent Error: Exception when trying to send response or command to client:
java.io.UTFDataFormatException
java.io.UTFDataFormatException
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2188)
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2029)
	at java.base/java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:887)
	at org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse.writeObject(VMPropertiesResponse.java:179)
	at org.netbeans.lib.profiler.wireprotocol.WireIO.sendComplexResponse(WireIO.java:312)
	at org.netbeans.lib.profiler.server.ProfilerServer.sendComplexResponseToClient(ProfilerServer.java:700)
	at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1590)
	at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1753)
	at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:676)

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux, Ubuntu 22.04

JDK

21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

@esparky esparky added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 17, 2024
@mbien mbien added the profiler label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers profiler
Projects
None yet
Development

No branches or pull requests

2 participants