This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 212434 - Profiling doesn't work with IDE installed in path with spaces, Maven, Platform project
Summary: Profiling doesn't work with IDE installed in path with spaces, Maven, Platfor...
Status: RESOLVED DUPLICATE of bug 201132
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.1.2
Hardware: PC All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 15:54 UTC by fabriziogiudici
Modified: 2012-05-13 23:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabriziogiudici 2012-05-13 15:54:31 UTC
With a Maven based NetBeans Platform application developed on Mac OS X and running the IDE with OpenJDK 7u4, profiling doesn't work:


[nbm:run-platform]
Executing: /bin/sh -c /Users/fritz/Business/Tidalwave/Projects/WorkAreas/SolidBlue/solidblue-src/modules/Application/target/solidblue/bin/solidblue --userdir /Users/fritz/Business/Tidalwave/Projects/WorkAreas/SolidBlue/solidblue-src/modules/Application/target/userdir -J-Dnetbeans.logger.console=true -J-ea --branding solidblue --jdkhome /Library/Java/JavaVirtualMachines/1.7.0u4.jdk/Contents/Home -J-XX:+HeapDumpOnOutOfMemoryError -J-XX:HeapDumpPath=/Users/fritz/.netbeans/7.1.2/var/cache/mavencachedirs/859487781/org-netbeans-modules-profiler '-J-agentpath:/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib=/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib,5140,10' --jdkhome /Library/Java/JavaVirtualMachines/1.7.0u4.jdk/Contents/Home
Error occurred during initialization of VM
Could not find agent library /Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib in absolute path, with error: dlopen(/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib, 1): image not found




Note that -J-agentpath: option which is malformed (-J repeated every time there's a space in the NetBeans IDE path).
Comment 1 fabriziogiudici 2012-05-13 15:58:50 UTC
The same happens with Oracle JDK 7u4:

[nbm:run-platform]
Executing: /bin/sh -c /Users/fritz/Business/Tidalwave/Projects/WorkAreas/SolidBlue/solidblue-src/modules/Application/target/solidblue/bin/solidblue --userdir /Users/fritz/Business/Tidalwave/Projects/WorkAreas/SolidBlue/solidblue-src/modules/Application/target/userdir -J-Dnetbeans.logger.console=true -J-ea --branding solidblue --jdkhome /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home -J-XX:+HeapDumpOnOutOfMemoryError -J-XX:HeapDumpPath=/Users/fritz/.netbeans/7.1.2/var/cache/mavencachedirs/859487781/org-netbeans-modules-profiler '-J-agentpath:/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib=/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib,5140,10' --jdkhome /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
Error occurred during initialization of VM
Could not find agent library /Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib in absolute path, with error: dlopen(/Applications/NetBeans/NetBeans -J7.1.2.app/Contents/Resources/NetBeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib, 1): image not foun
Comment 2 J Bachorik 2012-05-13 23:09:51 UTC
It is probably a dupe of #201132. No relation to JDK7u4 AFAIK. It is fixed for NB 7.2.

*** This bug has been marked as a duplicate of bug 201132 ***