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 217216 - AssertionError at org.netbeans.core.browser.webview.ext.WebBrowserImpl.getEngine
Summary: AssertionError at org.netbeans.core.browser.webview.ext.WebBrowserImpl.getEngine
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 11:00 UTC by Jiri Skrivanek
Modified: 2012-09-05 12:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191534


Attachments
stacktrace (2.62 KB, text/plain)
2012-08-22 11:00 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-08-22 11:00:00 UTC
Build: NetBeans IDE Dev (Build EaselCSS-530-on-20120822)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows 7

User Comments:
jskrivanek: To reproduce:
- run project in embedded browser
- close browser before it shows tbe page

johnjullion: running file in internal browser




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.core.browser.webview.ext.WebBrowserImpl.getEngine(WebBrowserImpl.java:146)
   at org.netbeans.core.browser.webview.ext.WebKitDebuggingTransport.getConnectionName(WebKitDebuggingTransport.java:125)
   at org.netbeans.modules.web.webkit.debugging.TransportHelper.getConnectionName(TransportHelper.java:84)
   at org.netbeans.modules.web.webkit.debugging.api.WebKitDebugging.getConnectionName(WebKitDebugging.java:83)
   at org.netbeans.modules.web.javascript.debugger.SessionProviderImpl.getSessionName(SessionProviderImpl.java:66)
   at org.netbeans.spi.debugger.SessionProvider$ContextAware.getSessionName(SessionProvider.java:146)
Comment 1 Jiri Skrivanek 2012-08-22 11:00:01 UTC
Created attachment 123395 [details]
stacktrace
Comment 2 Martin Entlicher 2012-08-23 15:20:46 UTC
Please move accordingly, I have no idea, where org.netbeans.core.browser.webview.ext is in Issuezilla.
Comment 3 Stanislav Aubrecht 2012-08-28 14:31:41 UTC
WebKit debugger should check if the browser is still available (wasn't closed)
Comment 4 Jan Stola 2012-08-28 16:59:21 UTC
I skimmed over the problematic code and I don't see a reason to obtain the location of the browser pane directly from the WebEngine (especially from a thread that is not a JavaFX thread). The location can be obtained from the browserImpl safely (without the need to care about the state of the browser pane) instead.

Modified file: http://hg.netbeans.org/web-main/rev/404b5efcb75a