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 210310 - NetigsoModule.getManifest null after restart, contrary to super Javadoc
Summary: NetigsoModule.getManifest null after restart, contrary to super Javadoc
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks: 204513
  Show dependency tree
 
Reported: 2012-03-28 18:31 UTC by Jesse Glick
Modified: 2012-03-28 23:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (3.24 KB, text/plain)
2012-03-28 18:31 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-03-28 18:31:29 UTC
Created attachment 117428 [details]
Log file

See 252401263ef7 for diagnostic patch. I run NB with a custom --userdir and --cachedir. In the current dev build, every time I try to start the IDE I get an error that halts startup while the splash screen is still showing:

java.lang.IllegalStateException: Were trying to install a module that had never been checked: Netigso: .../ide/modules/com-jcraft-jsch.jar
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1078)

The workaround is to delete *.dat from the cachedir and try again.
Comment 1 Jesse Glick 2012-03-28 18:47:14 UTC
After a further diagnostic patch:

Caused by: org.netbeans.InvalidException: Netigso: .../ide/modules/com-jcraft-jsch.jar: no manifest
	at org.netbeans.core.startup.NbInstaller.prepare(NbInstaller.java:161)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1070)
	... 8 more

which is odd since this JAR certainly does have a manifest. And then:

WARNING [org.netbeans.core.startup.ModuleList]: Error encountered while reading org.apache.commons.lang
java.lang.NullPointerException: The manifest parameter cannot be null
	at org.openide.util.Parameters.notNull(Parameters.java:89)
	at org.netbeans.NetigsoModule.<init>(NetigsoModule.java:75)
	at org.netbeans.ModuleFactory.create(ModuleFactory.java:70)
	at org.netbeans.ModuleManager.createBundle(ModuleManager.java:755)
	at org.netbeans.core.startup.ModuleList.createModule(ModuleList.java:185)
[catch] at org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1668)
Comment 2 Jesse Glick 2012-03-28 18:50:31 UTC
I think I have a hotfix that seems to work, so just review it to see if something cleaner can be done.
Comment 3 Jesse Glick 2012-03-28 19:03:46 UTC
core-main #1b201ba12927
Comment 4 Jesse Glick 2012-03-28 23:16:22 UTC
CachingAndExternalPathsTest was not happy with that. Trying again: core-main #29a214fd9b27