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 105716 - Profiling blocked by NoClassDefFoundError: org/netbeans/modules/j2ee/spi/ejbjar/EarProvider
Summary: Profiling blocked by NoClassDefFoundError: org/netbeans/modules/j2ee/spi/ejbj...
Status: VERIFIED DUPLICATE of bug 105551
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-06-05 12:32 UTC by ehucka
Modified: 2007-06-05 14:19 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 ehucka 2007-06-05 12:32:10 UTC
Product Version: NetBeans IDE Dev (Build 200706041200) 
Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.16-1.2122_FC5 running on i386; UTF-8; en_US (nb)

Steps:

1. create sample PaintApp nb module
2. invoke profile main project, set performance, entire application, profile
only project classes
3. start profiling

An exception is thrown in ide log, profiling ends by some build error:

Exception:

java.lang.NoClassDefFoundError: org/netbeans/modules/j2ee/spi/ejbjar/EarProvider
        at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getWebModule(WebProjectUtils.java:271)
        at
org.netbeans.modules.profiler.j2ee.WebProjectUtils.getDeploymentDescriptorFileObject(WebProjectUtils.java:294)
        at
org.netbeans.modules.profiler.j2ee.stats.HttpRequestTrackerPanel.isWebProject(HttpRequestTrackerPanel.java:243)
        at
org.netbeans.modules.profiler.j2ee.stats.HttpRequestTrackerPanel.supportsProject(HttpRequestTrackerPanel.java:232)
        at
org.netbeans.modules.profiler.NetBeansProfiler.setupDispatcher(NetBeansProfiler.java:1902)
        at
org.netbeans.modules.profiler.NetBeansProfiler.performInstrumentation(NetBeansProfiler.java:1856)
        at
org.netbeans.modules.profiler.NetBeansProfiler$4.doInBackground(NetBeansProfiler.java:586)
        at com.sun.tools.profiler.ui.SwingWorker$2.run(SwingWorker.java:78)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)


Application output:

Profiler agent JVM arguments stored in property profiler.jvmargs
Extra JVM arguments:  -J-XX:+HeapDumpOnOutOfMemoryError
-J-XX:HeapDumpPath=/home.local/ehucka/NetBeansProjects/PaintApp/nbproject/private/profiler

run:
Profiler Agent: Initializing...
Profiler Agent: Options: >/space/Builds/dev/netbeans/profiler2/lib,5140,10<
Profiler Agent: Initialized succesfully
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds
(Protocol version: 6)
Profiler Agent Error: Timed out trying to establish connection with client
/space/Builds/dev/netbeans/harness/suite.xml:266: The following error occurred
while executing this line:
/space/Builds/dev/netbeans/harness/run.xml:183: The following error occurred
while executing this line:
/space/Builds/dev/netbeans/harness/run.xml:131: exec returned: 255
BUILD FAILED (total time: 17 seconds)
Comment 1 ehucka 2007-06-05 12:43:25 UTC
Simple j2se project does not work too. I guess it can be an issue of all types
of profiling.
Comment 2 ehucka 2007-06-05 12:50:45 UTC
Regression, it doesn't work for all types of profiling and most of project types
(I did not check all).
Comment 3 Jiri Sedlacek 2007-06-05 13:15:37 UTC
Happens just for "big IDE" - all in one, not for "core" IDE daily build. The 
Profiler even cannot be built:

The module org.netbeans.modules.profiler.j2ee is not a friend of 
E:\Dev\sources\build\netbeans\enterprise4\modules\org-netbeans-modules-j2ee-api-
ejbmodule.jar
Comment 4 Tomas Hurka 2007-06-05 13:21:50 UTC
This is similar to issue #105551 and it is caused by the fact that j2ee/ejbapi no longer have public 
packages. 
Comment 5 Martin Adamek 2007-06-05 13:27:58 UTC

*** This issue has been marked as a duplicate of 105551 ***
Comment 6 ehucka 2007-06-05 14:19:17 UTC
verified duplicate