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
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
Keywords: JDK_8, VISUALVM
Depends on:
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:

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

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:

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 <>
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 (upload may still be in progress)

User: Tomas Hurka <>
Log: bugfix #245960, ClassBytesLoader.getClassFileBytes() can return null for synthetic classes