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 240094 - org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
Summary: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.Nul...
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 18:33 UTC by Kenneth Ganfield
Modified: 2015-03-18 09:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206381


Attachments
stacktrace (2.53 KB, text/plain)
2014-01-07 18:33 UTC, Kenneth Ganfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2014-01-07 18:33:57 UTC
This bug was originally marked as duplicate of bug 236532, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201401060002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
kganfield: editing html in cordova app while app was deployed to chrome witn netbeans plugin




Stacktrace: 
org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
   at org.openide.util.RequestProcessor.post(RequestProcessor.java:419)
   at org.netbeans.modules.web.webkit.tooling.networkmonitor.DependentFileQueryImpl$DependencyInfo.networkRequest(DependentFileQueryImpl.java:98)
   at org.netbeans.modules.web.webkit.tooling.networkmonitor.NetworkMonitor.networkRequest(NetworkMonitor.java:152)
   at org.netbeans.modules.web.webkit.debugging.api.network.Network.fireNetworkRequest(Network.java:192)
   at org.netbeans.modules.web.webkit.debugging.api.network.Network.requestReceived(Network.java:129)
   at org.netbeans.modules.web.webkit.debugging.api.network.Network.access$1600(Network.java:65)
Comment 1 Kenneth Ganfield 2014-01-07 18:33:59 UTC
Created attachment 143685 [details]
stacktrace
Comment 2 Tomas Mysik 2014-01-08 06:33:26 UTC
Honzo, is this yours? Thanks.
Comment 3 Jan Stola 2015-03-16 13:23:59 UTC
The exception that caused this problem is

java.lang.NullPointerException
at java.lang.String.startsWith(String.java:1385)
at java.lang.String.startsWith(String.java:1414)
at o.n.m.web.browser.api.WebBrowser.
   fromBrowserURL(WebBrowser.java:219)
at o.n.m.web.clientproject.ServerURLMappingImpl.
   fromServer(ServerURLMappingImpl.java:118)
at o.n.m.web.common.api.ServerURLMapping.
   fromServer(ServerURLMapping.java:147)
at o.n.m.web.common.api.ServerURLMapping.
   fromServer(ServerURLMapping.java:132)
at o.n.m.web.webkit.tooling.networkmonitor.DependentFileQueryImpl
   $DependencyInfo.findProjectFile(DependentFileQueryImpl.java:146)
at o.n.m.web.webkit.tooling.networkmonitor.DependentFileQueryImpl
   $DependencyInfo.networkRequestHamdler(DependentFileQueryImpl.java:118)
at o.n.m.web.webkit.tooling.networkmonitor.DependentFileQueryImpl
   $DependencyInfo.access$000(DependentFileQueryImpl.java:76)
at o.n.m.web.webkit.tooling.networkmonitor.DependentFileQueryImpl
   $DependencyInfo$1.run(DependentFileQueryImpl.java:101)
   ...

In other words, BrowserURLMapperImplementation.BrowserURLMapper.getBrowserURLRoot()
returned null on line WebBrowser.java:219. CordovaURLMapper really seems to create
BrowserURLMapperImplementation.BrowserURLMapper with null browser/server roots
(and sets these roots later) => I am reassigning this issue to Cordova for evaluation.
Comment 4 Roman Svitanic 2015-03-18 09:22:27 UTC
I'm closing this issue as "works for me", since I'm not able to reproduce it anymore. If you can reproduce it on the current dev builds, please reopen this issue and post steps how to reproduce it. Thanks!