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 180158 - UnsupportedClassVersionError: Bad version number in .class file
Summary: UnsupportedClassVersionError: Bad version number in .class file
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2010-02-02 08:59 UTC by dlipin
Modified: 2010-02-05 22:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164534


Attachments
stacktrace (6.54 KB, text/plain)
2010-02-02 08:59 UTC, dlipin
Details
stacktrace (6.54 KB, text/plain)
2010-02-02 09:10 UTC, dlipin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dlipin 2010-02-02 08:59:09 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04
OS: Windows XP

User Comments:
GUEST: I tried to open a project.
The main issue from end user point of view is that the project is impossible to work at all (I would understand if java source functionality was restricted or absent at all, but I couldn't even open a file - just nothing happens if I open the project)




Stacktrace: 
java.lang.UnsupportedClassVersionError: Bad version number in .class file
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
Comment 1 dlipin 2010-02-02 08:59:15 UTC
Created attachment 93766 [details]
stacktrace
Comment 2 dlipin 2010-02-02 09:10:22 UTC
Created attachment 93767 [details]
stacktrace

Running NetBeans 6.8 on JDK5 and working with NetBeans sources (currenly prototypes repository, branch nbms-pack200-84852).
I`ve build the sources using JDK6 (ant clean build-nozip -Dcluster.config).
When I try to open any module sources (e.g. autoupdate.services) using NetBeans IDE (6.8) I get this exception.
I have also tried to clean ~/.netbeans/6.8/var/cache but that didn`t help.
Comment 3 Jesse Glick 2010-02-04 15:24:33 UTC
core-main #773671d99ff5
Comment 4 Jesse Glick 2010-02-04 15:25:49 UTC
Workaround is to delete nbbuild/nbproject/private/*.ser.
Comment 5 Quality Engineering 2010-02-05 22:53:26 UTC
Integrated into 'main-golden', will be available in build *201002060200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/773671d99ff5
User: Jesse Glick <jglick@netbeans.org>
Log: #180158: LinkageError loading cache created by later JDK version.