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 218827 - Module system doesn't load new modules in headless mode
Summary: Module system doesn't load new modules in headless mode
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 218765 221929
  Show dependency tree
 
Reported: 2012-09-22 16:17 UTC by Jiri Rechtacek
Modified: 2013-01-08 16:33 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
install log (4.12 MB, application/octet-stream)
2013-01-03 13:06 UTC, ttokoly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2012-09-22 16:17:21 UTC
See details in issue 218765
Comment 1 Marian Mirilovic 2012-09-23 08:31:25 UTC
regression ? if so, any idea which commit caused this ?
Comment 2 Jiri Rechtacek 2012-09-23 11:51:00 UTC
(In reply to comment #1)
> regression ? if so, any idea which commit caused this ?

I don't think so - this is quite new use-case since 7.3
Comment 3 Jaroslav Tulach 2012-10-24 13:03:57 UTC
What exact "details" am I supposed to find in bug 218765? That one is fixed! There should be no way to reproduce it anymore. Thus I don't have steps to reproduce, right?
Comment 4 Jiri Rechtacek 2012-11-12 10:13:09 UTC
(In reply to comment #3)
> What exact "details" am I supposed to find in bug 218765? That one is fixed!
> There should be no way to reproduce it anymore. Thus I don't have steps to
> reproduce, right?

1) Unzip latest Dev build to /tmp
2) invoke command: /tmp/netbeans-dev-201208302327/bin/netbeans
-J-Dnetbeans.close=true --nosplash
-J-Dorg.netbeans.core.WindowSystem.show=false --userdir /tmp/tmpnb --modules
--install ".*junit.*" --update-all
=> JUnit will be downloaded/installed but MS will not load it
Comment 5 Jaroslav Tulach 2012-11-21 10:01:29 UTC
Reproduced. Thanks.
Comment 6 Jaroslav Tulach 2012-11-21 12:49:35 UTC
ergonomics#e1af66bcb201
Comment 7 Quality Engineering 2012-11-28 02:34:01 UTC
Integrated into 'main-golden', will be available in build *201211280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e1af66bcb201
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #218827: Module system doesn't load new modules in headless mode
#218827: Need to disable InstalledFileLocator cache before calling into autoupdate.cli
Comment 8 Jiri Rechtacek 2012-12-12 12:07:02 UTC
Verified on:
Product Version         = NetBeans IDE Dev (Build 201212120001) (#c24126e2d423)
Operating System        = Linux version 3.0.0-28-generic running on amd64
Java; VM; Vendor        = 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04; Oracle Corporation
Runtime                 = Java(TM) SE Runtime Environment 1.7.0_10-b18
Java Home               = /usr/local/share/java/jdk1.7.0_10/jre
System Locale; Encoding = en_US (nb); UTF-8
Comment 9 ttokoly 2013-01-03 13:06:11 UTC
Created attachment 129851 [details]
install log

Product Version: NetBeans IDE Dev (Build 201301030001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

JUnit during installation is downloaded, but after first start of IDE is not present. After restart it's OK.

Reproducible on Windows.

Install log in attachment.
Comment 10 Jaroslav Tulach 2013-01-08 10:14:43 UTC
> 1) Unzip latest Dev build to /tmp
> 2) invoke command: /tmp/netbeans-dev-201208302327/bin/netbeans
> -J-Dnetbeans.close=true --nosplash
> -J-Dorg.netbeans.core.WindowSystem.show=false --userdir /tmp/tmpnb --modules
> --install ".*junit.*" --update-all
> => JUnit will be downloaded/installed but MS will not load it

I've just tried these steps on my Windows machine and these modules were enabled before the IDE was shut down:

org.netbeans.libs.junit4@1.14
org.netbeans.modules.junitlib@1.1
Comment 11 Jiri Rechtacek 2013-01-08 10:31:46 UTC
(In reply to comment #10)
> > 1) Unzip latest Dev build to /tmp
> > 2) invoke command: /tmp/netbeans-dev-201208302327/bin/netbeans
> > -J-Dnetbeans.close=true --nosplash
> > -J-Dorg.netbeans.core.WindowSystem.show=false --userdir /tmp/tmpnb --modules
> > --install ".*junit.*" --update-all
> > => JUnit will be downloaded/installed but MS will not load it
> 
> I've just tried these steps on my Windows machine and these modules were
> enabled before the IDE was shut down:
> 
> org.netbeans.libs.junit4@1.14
> org.netbeans.modules.junitlib@1.1

Right, it is the same what I found in installer log.
Comment 12 Jaroslav Tulach 2013-01-08 10:57:06 UTC
Installation of full edition of 201301080001 seems to work on my Windows XP. According to log, both JUnit modules get downloaded and are now turned on.
Comment 13 Tomas Danek 2013-01-08 11:48:04 UTC
Does not work for me in today's dev build:
- install full IDE from installer
- run IDE
- Create anagram game sample -> broken references because of missing JUnit

Product Version: NetBeans IDE Dev (Build 201301080001)
Java: 1.6.0_27; Java HotSpot(TM) Client VM 20.2-b06
Runtime: Java(TM) SE Runtime Environment 1.6.0_27-b07
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\tester\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\tester\AppData\Local\NetBeans\Cache\dev

(In reply to comment #12)
> Installation of full edition of 201301080001 seems to work on my Windows XP.
> According to log, both JUnit modules get downloaded and are now turned on.
Comment 14 Jiri Rechtacek 2013-01-08 14:04:58 UTC
I'm going to solve it on autoupdate.cli side.
Comment 15 Jiri Rechtacek 2013-01-08 16:33:17 UTC
(In reply to comment #14)
> I'm going to solve it on autoupdate.cli side.

Not needed to solve it in the platform, needs to find a solution in NBI - issue 224078.

The modules are loaded in headless mode correctly, however the modules cache don't contain these new modules. So long so the cache not refresh while closing IDE (issue 224618), the NBI has to use own solution.