473,463 Members | 1,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript Error Meaning

11182005 2023 GMT-5

Im doing a totorial and Im getting a great deal of errors but being so
new, I do not understand what they mean:

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)
[nslXPCComponents.lookupMethod]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
chrome://global/content/XPCNativeWrapper.js :: anonymous :: line 91"
data: no]

This is from Firefox on Linux and I have IE through Wine and it doesnt
work at all (the page that is).

Can someone tell me what this means. And can you do something about
this?

Wade

Nov 23 '05 #1
4 7374
Wade wrote:
11182005 2023 GMT-5
So?
Im doing a totorial and Im getting a great deal of errors but being so
new, I do not understand what they mean:

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)
[nslXPCComponents.lookupMethod]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
chrome://global/content/XPCNativeWrapper.js :: anonymous :: line 91" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ data: no]

This is from Firefox on Linux and I have IE through Wine and it doesnt
work at all (the page that is).

Can someone tell me what this means.
It is an exception thrown by an internal component of Firefox. If you
accessed the included `chrome' URI like I did [in Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7.12) Gecko/20050922 Firefox/1.0.7 (Debian package
1.0.7-1) Mnenhy/0.7.2.0], you would have seen that it refers to this:

XPCNativeWrapper.prototype =
{
// ...
_doImportProperty:
function(aPropName)
{
// the following line caused the exception
var nativeMethod = Components.lookupMethod(this.mUntrustedObject,
aPropName);
var theGetter = function()
{
return nativeMethod.call(this.mUntrustedObject);
};
var theSetter = function(val)
{
return nativeMethod.call(this.mUntrustedObject, val);
};

this.__defineGetter__(aPropName, theGetter);
this.__defineSetter__(aPropName, theSetter);
}
};

See <URL:http://developer.mozilla.org/en/docs/XPCNativeWrapper>
And can you do something about this?


You need to track down the error to the line in your source code where
it occurs (if it occurs there), then post the line (and adjacent lines)
that probably caused the problem. Maybe you have discovered a bug in
an interface or an extension, maybe you have used this interface wrong.
There is no way of telling unless you show some source code (please, do
not post hundreds of lines of unformatted/uncommented source code here!).

If the exception clearly does not originate from your source code and
still bothers you, you can

a) disable display of internal exceptions (there should be a
pref for it, I don't remember, use Google)
b) update the extension that caused it
c) uninstall the extension that caused it
d) upgrade to the latest release version to see if it was fixed
e) update to the latest nightly build to see if it was fixed

In that order.
HTH

PointedEars
Nov 23 '05 #2
11192005 0829 GMT-5

Thanks for that PointedEars.
You said post the source code - so Im assuming you are talking about
the chrome element and not my webpage code. The tutorial I was working
on only has 64 lines of code with it.

How did you gain access to that code you posted?

Nov 23 '05 #3
Wade wrote:
11192005 0829 GMT-5
What do you think is accomplished by posting that?
Thanks for that PointedEars.
You said post the source code - so Im assuming you are talking about
the chrome element and not my webpage code.
No, I am talking about your source code that may have called the internal
code which thrown the exception.

If it did not access an AOM/DOM component, it is not your fault but either
that of the developer of an installed Firefox extension or that of one or
more of the people working for and with the Mozilla Organization (I happen
to be one of the latter at times). If that is so, you should file a bug
at the extension developer's site or at <URL:https://bugzilla.mozilla.org>
(if it is not known yet there, please search before you file).
The tutorial I was working on only has 64 lines of code with it.
How many lines does not matter regarding what may have caused the error.
What interfaces it may access does matter, and 64 lines of code here are
OK with me.
How did you gain access to that code you posted?


I typed the `chrome' URI in the Location Bar and pressed Return.
PointedEars
Nov 23 '05 #4
> Error: uncaught exception: [Exception... "Component returned failure
code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)
[nslXPCComponents.lookupMethod]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
chrome://global/content/XPCNativeWrapper.js :: anonymous :: line 91"
data: no]


Most likely you are passing a null or a non-object to a component
function that requires a javascript object. Do an alert (typeof xyz);
before passing xyz to that function.

The function would be from a component that is external from Javascript
(e.g. XMLHttp) or an activex object or something like that.

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Guy Jacubovs | last post by:
Hi i have a property on a COM which returns int64: var Milliseconds=Form1.Player.AbsolutePosition; however for somereason the typeof(Milliseconds) isn't number but unknown.... I can't...
4
by: Hal | last post by:
Can someone please tell me what is wrong with this script? <script language="JavaScript"> <!-- function HF_CloseAllChildren() { if (g_win1) != undefined { if ((g_win1) && !(g_win1.closed))...
13
by: Guido Wesdorp | last post by:
Hi! I've just released a JavaScript library to allow internationalizing JavaScript code and/or to do HTML translation from JavaScript. It's a first release, and it doesn't have all the features...
22
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last...
37
by: pochartrand | last post by:
Hello, Is there a way to manipulate or at least read the pseudo-class of an element ? I know the style attribute can be accessed and gives the CSS properties for a particular element....
41
by: Rene Nyffenegger | last post by:
Hello everyone. I am not fluent in JavaScript, so I might overlook the obvious. But in all other programming languages that I know and that have associative arrays, or hashes, the elements in...
8
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :)...
6
by: adamscybot | last post by:
Here is the site in question: http://www.sws.vxcomputers.com/h2k/ Basically, on the left, you'll see a roster (them images) and you have to click the "Counter-Strike" link for it to load the...
14
by: MartinRinehart | last post by:
I can load a dialog by loading an HTML page or by constructing the dialog with JavaScript. What should I be thinking about when I look at this choice?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.