Eirik Bakke created NETBEANS-455:
------------------------------------
Summary: "The bytes do not represent a valid class" error while
invoking the "Apply Code Changes" action
Key: NETBEANS-455
URL: https://issues.apache.org/jira/browse/NETBEANS-455
Project: NetBeans
Issue Type: Bug
Components: debugger - Java, java - Classfile
Affects Versions: 9.0
Environment: Apache NetBeans IDE Dev (Build
incubator-netbeans-release-205-on-20180202) on OpenJDK 64-Bit Server VM
9.0.4.1+11, Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
Reporter: Eirik Bakke
I got the following exception while invoking the "Apply Code Changes" action in
the Java debugger:
{noformat}
INFO [org.netbeans.modules.maven.debug.DebuggerChecker]: The bytes do not
represent a valid class. class not in class file format
java.lang.ClassFormatError: class not in class file format
at
jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.redefineClasses(VirtualMachineImpl.java:332)
at
org.netbeans.modules.debugger.jpda.jdi.VirtualMachineWrapper.redefineClasses(VirtualMachineWrapper.java:3138)
at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.fixClasses(JPDADebuggerImpl.java:471)
[catch] at
org.netbeans.modules.maven.debug.DebuggerChecker.reload(DebuggerChecker.java:401)
at
org.netbeans.modules.maven.debug.DebuggerChecker.doReload(DebuggerChecker.java:206)
at
org.netbeans.modules.maven.debug.DebuggerChecker.checkRunConfig(DebuggerChecker.java:145)
at
org.netbeans.modules.maven.execute.PrereqCheckerMerger$Impl.checkRunConfig(PrereqCheckerMerger.java:64)
at org.netbeans.modules.maven.api.execute.RunUtils.run(RunUtils.java:65)
at
org.netbeans.modules.maven.ActionProviderImpl.invokeAction(ActionProviderImpl.java:262)
at
org.netbeans.modules.maven.ActionProviderImpl.access$000(ActionProviderImpl.java:111)
at
org.netbeans.modules.maven.ActionProviderImpl$1.run(ActionProviderImpl.java:235)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
{noformat}
This is a Maven-based NetBeans Platform module project. The module project is
using JDK8 while the IDE is running on JDK9.
Reporting this as a new JIRA issue since the old NetBeans exception reporter no
longer seems to be in use.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists