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 243342 - NoSuchFieldError in profiler after updating to Netbeans 8
Summary: NoSuchFieldError in profiler after updating to Netbeans 8
Status: RESOLVED INCOMPLETE
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 09:45 UTC by atomsymbol
Modified: 2014-07-18 14:49 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 atomsymbol 2014-03-28 09:45:19 UTC
I upgraded from Netbeans 7.4 to Netbeans 8.0 and imported settings from 7.4 to 8.0. Profiling a project ends with the error message described below. The class does contain the field "output". Deleting ~/.cache/netbeans has no effect on the result.

"output" is a public static field in a public class different from tul.Tul.

profile:
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 15)
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session
Exception in thread "main" java.lang.NoSuchFieldError: output
	at tul.Tul.main(Tul.java:15)
Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Profiler Agent: Initializing...
Profiler Agent: Options: >/opt/netbeans-8.0/profiler/lib,5140,10<
Profiler Agent: Initialized successfully
Java Result: 1
BUILD SUCCESSFUL (total time: 5 seconds)
Comment 1 atomsymbol 2014-04-30 14:56:33 UTC
Both the main project and the subproject contained a class C in package p. Netbeans was unable to detect that there are two classes p.C. The issue can be resolved by renaming one of the classes or by moving one of the classes to package q.
Comment 2 Tomas Hurka 2014-07-18 14:49:48 UTC
Can you please prepare a test case, which can be used to reproduce this problem. Thanks.