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 216242 - No longer possible to profile an unit test using NB7.0.1 as platform
Summary: No longer possible to profile an unit test using NB7.0.1 as platform
Status: RESOLVED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 10:36 UTC by matteodg
Modified: 2012-08-06 09:22 UTC (History)
0 users

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 matteodg 2012-08-01 10:36:03 UTC
Hello all,

we have an RCP application based on NetBeans 7.0.1.
I just downloaded and  installed NB 7.2 and I configured our RCP app to use the NB 7.0.1 as platform.

I then would like to profile a test class in one of our modules, but I receive this error (first line should be the ant command line, then all targets executed and last line the error):




ant -f /home/matteo/NetBeansProjects/suite1/module1 -Dtest.includes=module1/InstallerTest.java -Dtest.type=unit "-Drun.args.ide=-agentpath:/usr/local/netbeans-7.2/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/usr/local/netbeans-7.2/profiler/lib,5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/matteo/NetBeansProjects/suite1/module1/nbproject/private/profiler  " profile-test-single-nb
taskdefs:
common-init:
projectized-common.basic-init:
basic-init:
files-init:
nbm-license-init:
build-init:
Scanning for modules in /usr/local/netbeans-7.0.1/platform
Scanning for modules in suite /home/matteo/NetBeansProjects/suite1
init:
test-preinit:
test-lib-init:
test-init:
up-to-date:
compile:
jar-prep:
jar:
netbeans-extra:
module-xml-regular:
module-xml-autoload:
module-xml-eager:
javahelp:
module-auto-deps:
release:
chmod-executables:
verify-class-linkage:
0 file(s) have been successfully validated.
netbeans:
Generating information for Auto Update...
test-unit-dep-build:
test-qa-functional-dep-build:
test-dep-build:
do-unit-test-build:
do-qa-functional-test-build:
do-test-build:
test-build:
profile-test-single-nb:
/usr/local/netbeans-7.0.1/harness/common.xml:894: The following error occurred while executing this line:
/usr/local/netbeans-7.0.1/harness/common.xml:871: Must set profile.class
BUILD FAILED (total time: 0 seconds)




I tried creating another RCP app based on NB7.2 (after installing JUnit on the NetBeans installation folder) and it worked without any problem.

We  cannot switch to NB7.2 shortly, any hint to get this solved?
Thanks in advance.
Comment 1 J Bachorik 2012-08-01 11:37:04 UTC
There seems to be a problem in cross-harness profiling of a single file introduced when migrating the profiler actions.

For the time being - is it possible to switch the harness to the one provided by IDE (in the platform customizer)? For me it solves the problem.
Comment 2 J Bachorik 2012-08-06 09:22:20 UTC
There is an incompatibility between 7.1 and 7.2 version of harness in terms of profiling actions. Unfortunately, it is impossible to provide any meaningful compatibility bridge as there is no way to learn the information about the harness a project uses from the project's API.

The easiest solution, as I mentioned before, is to switch the platform harness to the one provided by IDE. It doesn't break anything and resolves the problem.