在尝试SQL profile ( Java 8项目)时,我得到了这个错误堆栈,在12.5和更低的版本中我没有得到这个错误堆栈:
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session
Exception in thread "*** Profiler Agent Communication Thread" java.lang.NoSuchMethodError: java.nio.MappedByteBuffer.rewind()Ljava/nio/MappedByteBuffer;
at org.netbeans.lib.profiler.server.EventBufferManager.openBufferFile(EventBufferManager.java:144)
at org.netbeans.lib.profiler.server.ProfilerInterface.createEventBuffer(ProfilerInterface.java:682)
at org.netbeans.lib.profiler.server.ProfilerInterface.initiateProfiling(ProfilerInterface.java:615)
at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1398)
at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1753)
at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:676)
发布于 2022-04-28 16:15:30
我也有同样的问题。无法用这里的注释中提供的答案来解决它。解决方案是检查文件nbactions.xml,最好返回到新项目的副本。在不同的Java平台之间切换,可能会稍微损坏我的版本。
发布于 2022-06-16 16:34:41
通过转到我的nbactions.xml
文件并注释掉profile
操作,我能够使它工作,例如:
...
<properties>
<exec.vmArgs></exec.vmArgs>
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args>
<exec.mainClass>com.macnt.app.Aplicacion</exec.mainClass>
<exec.executable>java</exec.executable>
<exec.appArgs></exec.appArgs>
</properties>
</action>
<!-- Commented out this -->
<!--<action>
<actionName>profile</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.macnt.app.Aplicacion</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>-->
</actions>
https://stackoverflow.com/questions/71470820
复制相似问题