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 235008 - NullPointerException at java.util.zip.ZipFile.<init>
Summary: NullPointerException at java.util.zip.ZipFile.<init>
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 09:49 UTC by mytholog
Modified: 2015-02-26 15:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194628


Attachments
stacktrace (3.12 KB, text/plain)
2013-08-26 09:49 UTC, mytholog
Details
stacktrace (3.11 KB, text/plain)
2014-02-19 06:31 UTC, dileepkumaraol
Details
stacktrace (3.11 KB, text/plain)
2014-08-31 01:50 UTC, tgorman47
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mytholog 2013-08-26 09:49:28 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: OpenJDK 64-Bit Server VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_25-b30
OS: Linux

User Comments:
mytholog: 1

GUEST: <Please provide a description of the problem or the steps to reproduce><Please provide a description of the problem or the steps to reproduce><Please provide a description of the problem or the steps to reproduce>

GUEST: Chrome Netbeans Connector




Stacktrace: 
java.lang.NullPointerException
   at java.util.zip.ZipFile.<init>(ZipFile.java:203)
   at java.util.zip.ZipFile.<init>(ZipFile.java:145)
   at java.util.zip.ZipFile.<init>(ZipFile.java:159)
   at org.netbeans.modules.extbrowser.plugins.Utils.readZip(Utils.java:229)
   at org.netbeans.modules.extbrowser.plugins.chrome.ChromeManagerAccessor$ChromeExtensionManager.getCurrentPluginVersion(ChromeManagerAccessor.java:247)
   at org.netbeans.modules.extbrowser.plugins.ExtensionManagerAccessor$AbstractBrowserExtensionManager.isUpdateRequired(ExtensionManagerAccessor.java:66)
Comment 1 mytholog 2013-08-26 09:49:29 UTC
Created attachment 139240 [details]
stacktrace
Comment 2 dileepkumaraol 2014-02-19 06:31:30 UTC
Created attachment 145384 [details]
stacktrace

A java.lang.NullPointerException exception has occurred.
 C:\Users\SriBala\AppData\Roaming\NetBeans\8.0beta\var\log folder.

java.lang.NullPointerException
	at java.util.zip.ZipFile.<init>(ZipFile.java:208)
	at java.util.zip.ZipFile.<init>(ZipFile.java:150)
	at java.util.zip.ZipFile.<init>(ZipFile.java:164)
	at org.netbeans.modules.extbrowser.plugins.Utils.readZip(Utils.java:229)
	at org.netbeans.modules.extbrowser.plugins.chrome.ChromeManagerAccessor$ChromeExtensionManager.getCurrentPluginVersion(ChromeManagerAccessor.java:247)
	at org.netbeans.modules.extbrowser.plugins.ExtensionManagerAccessor$AbstractBrowserExtensionManager.isUpdateRequired(ExtensionManagerAccessor.java:66)
	at org.netbeans.modules.extbrowser.plugins.chrome.ChromeManagerAccessor$ChromeExtensionManager.isInstalledImpl(ChromeManagerAccessor.java:183)
	at org.netbeans.modules.extbrowser.plugins.chrome.ChromeManagerAccessor$ChromeExtensionManager.isInstalled(ChromeManagerAccessor.java:132)
	at org.netbeans.modules.extb
Comment 3 tgorman47 2014-08-31 01:50:02 UTC
Created attachment 148965 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
When I try to run the HTML5 Application I get this error.
Comment 4 Jan Stola 2015-02-26 15:19:12 UTC
The exception shows that the Chrome extension (NetBeans Connector) that should be in NetBeans installation (at <nb_home>/webcommon/modules/lib/netbeans-chrome-connector.crx) cannot be found. I have modified the corresponding code to handle this situation in a graceful way.

Modified file: https://hg.netbeans.org/web-main/rev/87623cfdfb7b