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

nbjavac sometimes fails to install

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.2
    • Next
    • platform - Autoupdate
    • None

    Description

      NB is run as

      netbeans --modules --install nbjavac

      but sometimes fail to download / install nbjavac modules. Even though discovered during testing of PR-2517, it is probably a general NB infrastructure issue.

      The reported errors are:java.io.IOException: Wrong CRC for /tmp/vscode2/User/globalStorage/jlahoda.apache-netbeans-java/userdir/modules/ext/nb-javac-15-api.jar
      at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:451)
      at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:117)

      ...

      java.io.FileNotFoundException: /tmp/vscode2/User/globalStorage/jlahoda.apache-netbeans-java/userdir/update/download/org-netbeans-modules-nbjavac.nbm (No such
      file or directory)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:225)
      at java.util.zip.ZipFile.<init>(ZipFile.java:155)
      at java.util.jar.JarFile.<init>(JarFile.java:166)
      at java.util.jar.JarFile.<init>(JarFile.java:130)
      at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:349)
      at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:117)

       
      In this situation, nbjavac NBMs are not properly unpacked and the IDE configuration / userdir is broken.

      Attachments

        1. vscode2.zip
          17.72 MB
          Svatopluk Dedic
        2. userdir.zip
          11.42 MB
          Svatopluk Dedic
        3. userdir-success.zip
          19.22 MB
          Svatopluk Dedic

        Activity

          People

            Unassigned Unassigned
            sdedic Svatopluk Dedic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: