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 174733 - Cannot profile MemoryValidationTest
Summary: Cannot profile MemoryValidationTest
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 11:55 UTC by Jaroslav Tulach
Modified: 2009-11-03 15:02 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 Jaroslav Tulach 2009-10-16 11:55:02 UTC
Choose ide.kit/**/MemoryValidationTest.java and try to provide it (my Hg revision is bddd19762029):
1. profile/profile others/Profile MemoryValidationTest.java
2. choose memory profiling

Fails with:

profile-test-single-nb:
Profiler agent JVM arguments stored in property profiler.jvmargs
Extra JVM arguments:  -J-XX:+HeapDumpOnOutOfMemoryError -J-XX:HeapDumpPath=/nbsrc/java.kit/nbproject/private/profiler 
Profiler Agent: Initializing...
Profiler Agent: Options: >/home/jarda/bin/netbeans/profiler3/lib,5140,10<
Profiler Agent: Initialized succesfully
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 9)
Profiler Agent: Established local connection with the tool
Profiler Agent: Redefining 100 classes at idx 0, out of total 443 
Profiler Agent: Redefining 100 classes at idx 100, out of total 443 
Profiler Agent: Redefining 100 classes at idx 200, out of total 443 
Profiler Agent: Redefining 100 classes at idx 300, out of total 443 
Profiler Agent: Redefining 43 classes at idx 400, out of total 443 
Testsuite: org.netbeans.test.ide.MemoryValidationTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Null Test:         Caused an ERROR
org.netbeans.test.ide.MemoryValidationTest
java.lang.ClassNotFoundException: org.netbeans.test.ide.MemoryValidationTest
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)


Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Test org.netbeans.test.ide.MemoryValidationTest FAILED
/nbsrc/nbbuild/templates/common.xml:832: The following error occurred while executing this line:
/nbsrc/nbbuild/templates/common.xml:828: Some tests failed; see details above.
BUILD FAILED (total time: 9 seconds)
Comment 1 Jiri Sedlacek 2009-10-30 21:04:01 UTC
Caused by incorrectly set test type. It's hardcoded to 'unit' but should be 'qa-functional'.
Comment 2 Jiri Sedlacek 2009-11-02 10:17:03 UTC
Fixed in profiler-main.


http://hg.netbeans.org/profiler-main/rev/2465f45cf12b
Comment 3 Quality Engineering 2009-11-03 15:02:57 UTC
Integrated into 'main-golden', will be available in build *200911031401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2465f45cf12b
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #174733 - fixed profiling qa-functional tests in NB modules