473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 7370
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?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.