Trouble with Apache Netbeans Profiler and JFrame


Hi there, I had a look around and couldn’t find a solution so i have resorted to posting. I am using Apache Netbeans with JDK 12 on a win10 machine.

I have written a piece of code that runs fine normally. However when trying to profile the project, I get an error. After some testing I found that the profiler works fine for all of the profiling configurations except the ‘methods’ configuration. I also found that the error only occurs when I try to initialize a JFrame object.

Error Message:

Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 18) Profiler Agent: Established connection with the tool WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.lib.profiler.server.ClassLoaderManager to method java.lang.ClassLoader.findLoadedClass(java.lang.String) WARNING: Please consider reporting this to the maintainers of org.netbeans.lib.profiler.server.ClassLoaderManager WARNING: Use –illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Profiler Agent: Local accelerated session

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa034fc5c5, pid=16856, tid=14104

JRE version: Java(TM) SE Runtime Environment (12.0.1+12) (build 12.0.1+12) Java VM: Java HotSpot(TM) 64-Bit Server VM (12.0.1+12, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) Problematic frame: V [jvm.dll+0x5ec5c5]

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as: C:\Users\demon\Documents\NetBeansProjects\SignalSimulator\hs_err_pid16856.log

If you would like to submit a bug report, please visit:

Profiler Agent: Initializing… Profiler Agent: Options: >C:\Program Files\netbeans\profiler\lib,5140,10< Profiler Agent: Initialized successfully Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal( at org.apache.commons.exec.DefaultExecutor.execute( at org.codehaus.mojo.exec.ExecMojo.executeCommandLine( at org.codehaus.mojo.exec.ExecMojo.executeCommandLine( at org.codehaus.mojo.exec.ExecMojo.execute( at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( at at org.apache.maven.lifecycle.internal.LifecycleStarter.execute( at org.apache.maven.DefaultMaven.doExecute( at org.apache.maven.DefaultMaven.doExecute( at org.apache.maven.DefaultMaven.execute( at org.apache.maven.cli.MavenCli.execute( at org.apache.maven.cli.MavenCli.doMain( at org.apache.maven.cli.MavenCli.main( at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke( at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( at java.base/java.lang.reflect.Method.invoke( at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced( at org.codehaus.plexus.classworlds.launcher.Launcher.launch( at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(

at org.codehaus.plexus.classworlds.launcher.Launcher.main(


Total time: 3.208 s Finished at: 2019-05-26T04:26:25+03:00

Final Memory: 7M/34M

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) on project SignalSimulator: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles: [Help 1]