[ https://issues.apache.org/jira/browse/NETBEANS-5732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444524#comment-17444524 ]
Matthias Barmeier commented on NETBEANS-5732: --------------------------------------------- Still not working for me in 12.5. Same exception add shin above. Any hints on how i can avoid this in 12.5 ? > Profiler not working with Maven Project when installed in path-with-spaces > -------------------------------------------------------------------------- > > Key: NETBEANS-5732 > URL: https://issues.apache.org/jira/browse/NETBEANS-5732 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven > Affects Versions: 12.4 > Reporter: Peter Hull > Assignee: Svatopluk Dedic > Priority: Major > Fix For: 12.5 > > Attachments: IDE_log.txt, nbactions.xml > > > Profiler does not start when attempting to profile a Swing app using a maven > project on MacOS. > Expected: profiler does start > Actual: Shows an error in the output tab, given below: > {{cd /Users/peterhull/Projects/mavenproject2; > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home > "/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/java/maven/bin/mvn" > "-Dexec.vmArgs='-agentpath:}} > {{'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib\\'=}} > {{'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib}} > {{',5140,10' -XX:+HeapDumpOnOutOfMemoryError > '-XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > '" "-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} > ${exec.appArgs}" -Dexec.mainClass=com.nowhere.mavenproject2.NewJFrame > -Dexec.executable=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java > "-Dprofiler.jvmargs.all= -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > -agentpath:'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib'='/Applications/NetBeans/Apache > NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib',5140,10" > "-Dprofiler.jvmargs.arg1=-agentpath:'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib'='/Applications/NetBeans/Apache > NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib',5140,10" > -Dprofiler.jvmargs.arg2=-XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > -Dprofiler.jvmargs.arg3=-XX:+HeapDumpOnOutOfMemoryError -Dexec.appArgs= > org.codehaus.mojo:exec-maven-plugin:3.0.0:exec}} > {{ Running NetBeans Compile On Save execution. Phase execution is skipped and > output directories of dependency projects (with Compile on Save turned on) > will be used instead of their jar artifacts.}} > {{ Scanning for projects...}}{{---------------------< > com.nowhere:mavenproject2 >----------------------}} > {{ Building mavenproject2 1.0-SNAPSHOT}} > {{ --------------------------------[ jar > ]---------------------------------}}{{— exec-maven-plugin:3.0.0:exec > (default-cli) @ mavenproject2 —}} > {{ Error occurred during initialization of VM}} > {{ Could not find agent library \/Applications/NetBeans/Apache in absolute > path, with error: dlopen(\/Applications/NetBeans/Apache, 1): image not found}} > {{ Command execution failed.}} > {{ org.apache.commons.exec.ExecuteException: Process exited with an error: 1 > (Exit value: 1)}} > {{ at org.apache.commons.exec.DefaultExecutor.executeInternal > (DefaultExecutor.java:404)}} > {{ at org.apache.commons.exec.DefaultExecutor.execute > (DefaultExecutor.java:166)}} > {{ at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982)}} > {{ at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929)}} > {{ at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457)}} > {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:137)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:210)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148)}} > {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117)}} > {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81)}} > {{ at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:56)}} > {{ at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128)}} > {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)}} > {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)}} > {{ at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)}} > {{ at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)}} > {{ at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)}} > {{ at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)}} > {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)}} > {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:62)}} > {{ at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43)}} > {{ at java.lang.reflect.Method.invoke (Method.java:566)}} > {{ at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:282)}} > {{ at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:225)}} > {{ at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:406)}} > {{ at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:347)}} > {{ ------------------------------------------------------------------------}} > {{ BUILD FAILURE}} > {{ ------------------------------------------------------------------------}} > {{ Total time: 1.746 s}} > {{ Finished at: 2021-05-29T12:43:12+01:00}} > {{ ------------------------------------------------------------------------}} > {{ Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec > (default-cli) on project mavenproject2: 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] > [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException]}} > -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists