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 247061 - Clean and Build still results in java.lang.ClassFormatError
Summary: Clean and Build still results in java.lang.ClassFormatError
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-12 07:38 UTC by houtm035
Modified: 2016-07-07 07:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (83.74 KB, text/plain)
2014-09-12 07:38 UTC, houtm035
Details

Note You need to log in before you can comment on or make changes to this bug.
Description houtm035 2014-09-12 07:38:28 UTC
Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) Client VM 25.0-b70

I have a large project open (approx 5000 files). While editing, the background scanning task gets busy. 
Then it seems like the netbeans VM is running out of memory(no errors reported in NB) but.. the scanning corrupts the cache/index file. 
Because after such event, the source tree will show red flags throughout the source tree. although there's nothing wrong with the code.
A 'clean&build' doesnt' fix it.
Instead of going to each file and do a fake modify and save(which reindexes the file), deleting of the cache/index directory manually is faster.

Below a sample of a stack trace which happens when having built successfully and starting in 'debug', but still the -some- bytecode is corrupt;

java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
        ....
Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file <...e.g.>/PenPanelLayout
        at java.lang.ClassLoader.defineClass1(Native Method)
       ....
Comment 1 houtm035 2014-09-12 07:38:32 UTC
Created attachment 149164 [details]
IDE log
Comment 2 Martin Balin 2016-07-07 07:19:02 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss