Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-455

"The bytes do not represent a valid class" error while invoking the "Apply Code Changes" action

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • None
    • 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)

    Description

      I got the following exception while invoking the "Apply Code Changes" action in the Java debugger:

      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)
      

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            ebakke Eirik Bakke

            Dates

              Created:
              Updated:

              Issue deployment