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 257877 - Broken "org.apidesign.demo.minesweeper_3.0.0.SNAPSHOT [179]" nbm file
Summary: Broken "org.apidesign.demo.minesweeper_3.0.0.SNAPSHOT [179]" nbm file
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Kovalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-07 16:05 UTC by Exceptions Reporter
Modified: 2016-06-09 13:18 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222414


Attachments
stacktrace (2.08 KB, text/plain)
2016-02-07 16:05 UTC, Exceptions Reporter
Details
The ZIP file with JARs and NBM file for version 3.1 of the minesweeper module (265.11 KB, application/zip)
2016-06-05 12:47 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-02-07 16:05:04 UTC
This bug was originally marked as duplicate of bug 251063, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 20151231-debian-8.1)
VM: OpenJDK 64-Bit Server VM, 24.91-b01, OpenJDK Runtime Environment, 1.7.0_91-b02
OS: Linux

User Comments:
GUEST: sale un error desde la instalacion de plugins

GUEST: that was annoying

GUEST: bug

GUEST: install java ee, and restart when error occured

GUEST: bug

GUEST: Cannot install

GUEST: exception on module

GUEST: Just started the IDE.
Did "Check for updates"... it found the DukeScript needed updating. 
I then updated...a nd while rebooting the IDE I got this error

javatlacati: Problem installing OSGi jars to support dukescript

GUEST: Installing MineSweeper Plugin

GUEST: bug

GUEST: <??????? ???????? ???????? ??? ???? ??? ???????????????>

GUEST: dukesript n
Comment 1 Exceptions Reporter 2016-02-07 16:05:07 UTC
Created attachment 158400 [details]
stacktrace
Comment 2 Tomas Hurka 2016-05-24 10:40:06 UTC
Steps to reproduce:
1) install NetBeans 8.0
2) start NB 8.0 with clean userdir
3) install Mine Sweeper module
4) quit NB 8.0
5) install NB 8.1
6) start NB 8.1 with clean userdir
7) import settings from NB 8.0
8) wait for notification 'Do you want to import selected plugins...'
9) import 'Fair Minesweeper Code' plugin from NB 8.0
10) Go to Tools->Plugins and install 'Fair Minesweeper!' plugin
11) Restart NB 8.1
12) Warning:
   DukeScript Project Wizard - The module net.java.html.sound was requested in version >= 1.2.3 but only 1.1.0 was found.

Reassigning to autoupdate.
Comment 3 Tomas Hurka 2016-05-24 11:41:04 UTC
Problem seems to in org-apidesign-demo-minesweeper-nb.nbm - it also contains net-java-html* modules. See below:

$ unzip ../org-apidesign-demo-minesweeper-nb.nbm 
Archive:  ../org-apidesign-demo-minesweeper-nb.nbm
  inflating: META-INF/MANIFEST.MF    
  inflating: META-INF/DLVKBRWS.SF    
  inflating: META-INF/DLVKBRWS.RSA   
   creating: netbeans/
  inflating: netbeans/.lastModified  
   creating: netbeans/config/
   creating: netbeans/config/Modules/
  inflating: netbeans/config/Modules/net-java-html-boot-script.xml  
  inflating: netbeans/config/Modules/net-java-html-geo.xml  
  inflating: netbeans/config/Modules/net-java-html-sound.xml  
  inflating: netbeans/config/Modules/org-apidesign-demo-minesweeper-js.xml  
  inflating: netbeans/config/Modules/org-apidesign-demo-minesweeper-nb.xml  
  inflating: netbeans/config/Modules/org-apidesign-demo-minesweeper.xml  
   creating: netbeans/modules/
  inflating: netbeans/modules/net-java-html-boot-script.jar  
  inflating: netbeans/modules/net-java-html-geo.jar  
  inflating: netbeans/modules/net-java-html-sound.jar  
  inflating: netbeans/modules/org-apidesign-demo-minesweeper-js.jar  
  inflating: netbeans/modules/org-apidesign-demo-minesweeper-nb.jar  
  inflating: netbeans/modules/org-apidesign-demo-minesweeper.jar  
   creating: netbeans/update_tracking/
  inflating: netbeans/update_tracking/net-java-html-boot-script.xml  
  inflating: netbeans/update_tracking/net-java-html-geo.xml  
  inflating: netbeans/update_tracking/net-java-html-sound.xml  
  inflating: netbeans/update_tracking/org-apidesign-demo-minesweeper-js.xml  
  inflating: netbeans/update_tracking/org-apidesign-demo-minesweeper.xml  
   creating: Info/
  inflating: Info/info.xml           


Reassigning to html4j.
Comment 4 Jaroslav Tulach 2016-06-05 12:46:22 UTC
I've uploaded new version of the plugin as
http://plugins.netbeans.org/plugin/53864/?show=true
and it should fix the problem. The nbm file there contains only:

unzip -v minesweeper-nb-3.1.nbm
Archive:  minesweeper-nb-3.1.nbm
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
     447  Defl:N      303  32% 2016-06-05 13:25 5e693b06  META-INF/MANIFEST.MF
     574  Defl:N      383  33% 2016-06-05 13:25 1ba91492  META-INF/DLVKBRWS.SF
    1424  Defl:N     1132  21% 2016-06-05 13:25 e3bdb2c4  META-INF/DLVKBRWS.RSA
       0  Stored        0   0% 2016-06-05 13:25 00000000  META-INF/
       0  Stored        0   0% 2016-06-05 13:25 00000000  netbeans/
       0  Stored        0   0% 2016-06-05 13:25 00000000  netbeans/config/
       0  Stored        0   0% 2016-06-05 13:25 00000000  netbeans/config/Modules/
     479  Defl:N      252  47% 2016-06-05 13:25 db504da0  netbeans/config/Modules/org-apidesign-demo-minesweeper-nb.xml
       0  Stored        0   0% 2016-06-05 13:25 00000000  netbeans/modules/
  234514  Defl:N   231037   2% 2016-06-05 13:25 0a7b444b  netbeans/modules/org-apidesign-demo-minesweeper-nb.jar
       0  Stored        0   0% 2016-06-05 13:25 00000000  Info/
    1857  Defl:N      848  54% 2016-06-05 13:25 0c9b7c2a  Info/info.xml


Hopefully the plugin will be approved soon.
Comment 5 Jaroslav Tulach 2016-06-05 12:47:44 UTC
Created attachment 159963 [details]
The ZIP file with JARs and NBM file for version 3.1 of the minesweeper module
Comment 6 Jiri Kovalsky 2016-06-06 08:58:18 UTC
I have given my tentative Go. Hopefully ant -buildfile build.xml -lib tasks.jar generate-uc-catalog will not complain about missing Info/info.xml in the JAR files again.
Comment 7 Jaroslav Tulach 2016-06-07 15:19:47 UTC
Those JARs are OSGi bundles. OSGi bundles never needed/could have Info.xml file. The Info.xml file is only allowed/needed in NBM files.

I have seen "the other" report, but I doubt the conclusion is correct. OSGi bundle info is taken from its MANIFEST.MF
Comment 8 Jaroslav Tulach 2016-06-08 09:18:53 UTC
I am trying to verify the issue is fixed by following the steps described by Tomáš in comment 2, but I can't download the Minesweeper @ 3.1. The IDE says:

Networking problem in http://plugins.netbeans.org/nbpluginportal/files/nbms/z8318_minesweeper-nb-3.1.nbm

and yes, when I try from command line, I cannot download the plugin either:

$ wget http://plugins.netbeans.org/nbpluginportal/files/nbms/z8318_minesweeper-nb-3.1.nbm
--2016-06-08 11:15:08--  http://plugins.netbeans.org/nbpluginportal/files/nbms/z8318_minesweeper-nb-3.1.nbm
Překládám plugins.netbeans.org (plugins.netbeans.org)… 137.254.56.29
Navazuje se spojení s plugins.netbeans.org (plugins.netbeans.org)|137.254.56.29|:80… spojeno.
HTTP požadavek odeslán, program čeká na odpověď… 403 Forbidden
2016-06-08 11:15:08 CHYBA 403: Forbidden.

Jirko, Jane, please help!
Comment 9 Jaroslav Tulach 2016-06-09 13:03:51 UTC
Jan has fixed the plugins server and I can now finish Tomáš's scenario without a problem.
Comment 10 Jiri Kovalsky 2016-06-09 13:18:58 UTC
Thanks for the update. Verifying.