Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364209 - Occasionally see NETWORK_ERROR: XMLHttpRequest Exception 101 in external browser
Summary: Occasionally see NETWORK_ERROR: XMLHttpRequest Exception 101 in external browser
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Huo Zhen Zhong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 22:10 EST by Will Smythe CLA
Modified: 2017-02-23 14:14 EST (History)
3 users (show)

See Also:


Attachments
screen shot showing error (72.53 KB, image/png)
2011-11-18 22:10 EST, Will Smythe CLA
no flags Details
See client.MainSnippetsView (163.29 KB, application/x-zip-compressed)
2011-11-21 11:24 EST, Will Smythe CLA
no flags Details
exp 101 (18.83 KB, image/gif)
2011-11-22 08:51 EST, Tony Chen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Will Smythe CLA 2011-11-18 22:10:43 EST
Created attachment 207261 [details]
screen shot showing error

I am not sure how to recreate, but every once in awhile when I launch a RUI in an external browser (during development), I get a NETWORK_ERROR: XMLHttpRequest Exception 101 error, which according to doc and various external forums indicates an Ajax request is being made of a local file instead of thru the originating server. See attached screen shot for an example.

The problem goes away and the RUI loads fine after I press F5 to refresh the browser. (so, feels like a timing problem)

Based on the message, it looks like our code is attempting to access "__loadScript?filename=xxx" instead of "http://localhost:5590/app/__loadScript?filename=xxx".
Comment 1 Justin Spadea CLA 2011-11-21 10:33:18 EST
I've seen this too, inside the preview pane when using XULRunner on Linux. I never saw it before Friday, and so far I've only seen it with a project that Will sent me.
Comment 2 Tony Chen CLA 2011-11-21 11:22:10 EST
This looks like a new project from the "hello world" sample project template. I played with one, but was not able to catch this. 

Is there any steps to get to this error?
Comment 3 Will Smythe CLA 2011-11-21 11:24:48 EST
Created attachment 207316 [details]
See client.MainSnippetsView
Comment 4 Will Smythe CLA 2011-11-21 11:31:33 EST
Tony - I believe Justin and I are both seeing the issue in MainSnippetsView.egl in the attached project.

It occurs for me when I launch into an external browser from the Preview tab.
Comment 5 Tony Chen CLA 2011-11-22 07:54:02 EST
Will, I'm still not able to re-create this. Does this happen frequently? Please describe the steps to get to the error. 


(In reply to comment #4)
> Tony - I believe Justin and I are both seeing the issue in MainSnippetsView.egl
> in the attached project.
> 
> It occurs for me when I launch into an external browser from the Preview tab.
Comment 6 Brian Svihovec CLA 2011-11-22 08:48:57 EST
I see that Justin saw the problem when using XULRunner on Linux, and I am going to assume that it was XULRunner version 3.6.2x. 

What versions of Eclipse are people using when they see this problem?  

What JRE is being used?

What browsers are 'configured' for use?  (i.e. Safari is installed and XULRunner is on the classpath, etc)

Due to the fact that this cannot be recreated consistently, I am deferring this out of .7 for now.  If we get more information in the very near future we can look at this again.
Comment 7 Tony Chen CLA 2011-11-22 08:50:34 EST
I did found one scenario to hit XMLHttpRequest Exception 101, but this does not seem to be the scenario Will & Justin are talking about. 

Steps:
1. Debug MainSnippetsView.egl (or any handler)
2. Refresh the debug browser, you'll see an error saying 
     [CRRUI2090E] Could not call service ___windowClosed?key=xxx&contextKey=xx
     NETWORK_ERR: XMLHttpRequest Exception 101
     [CRRUI2095E] Could not find the EGL calls leading to this error

The error flash quickly and page is refreshed and displayed correctly. It seemed to be caused by the last ___windowClosed event the page is sending to the server.

As said, I don't think it's the same issue.
Comment 8 Tony Chen CLA 2011-11-22 08:51:22 EST
Created attachment 207355 [details]
exp 101
Comment 9 Justin Spadea CLA 2011-11-22 09:02:04 EST
I'm using Eclipse 3.7.1, XULRunner 1.9.2.20.