esparky opened a new issue, #8067:
URL: https://github.com/apache/netbeans/issues/8067
### 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 https://github.com/oracle/visualvm/issues/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
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists