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 245960 - Redefinition failed for classes
Summary: Redefinition failed for classes
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_8, VISUALVM
Depends on:
Blocks:
 
Reported: 2014-07-24 12:34 UTC by Jiri Skrivanek
Modified: 2016-09-07 14:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler log. (149.95 KB, text/plain)
2014-07-24 12:34 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-07-24 12:34:39 UTC
Created attachment 148281 [details]
Profiler log.

Profiler writes some class files to project folder while changing session from CPU to memory profiling. To reproduce:

- create Anagram sample project
- right-click project node and choose Profile
- select CPU -> Advanced -> Profile All Classes
- click Run
- wait until application is started
- click "Modify Profiling Session..."
- select Memory -> Advanced
- click Run and after while it prints error message with list of classes and also those classes are stored in root folder of the project

Profiler Agent Error: Redefinition failed for classes:
java.util.logging.LogManager$3
java.util.logging.LogManager$2
javax.swing.text.DefaultCaret$Handler
java.util.logging.LogManager$1

Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2014-07-24 13:11:49 UTC
It works fine with JDK 7u60.
Comment 2 Tomas Hurka 2014-07-24 14:30:21 UTC
Fixed in profiler-main

changeset:   275894:cdc38fbff446
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Jul 24 16:28:44 2014 +0200
summary:     bugfix #245960, ClassBytesLoader.getClassFileBytes() can return null for synthetic classes
Comment 3 Quality Engineering 2014-07-25 02:38:03 UTC
Integrated into 'main-silver', will be available in build *201407250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cdc38fbff446
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #245960, ClassBytesLoader.getClassFileBytes() can return null for synthetic classes