Re: Javascript Error Meaning



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
.



Relevant Pages

  • Re: Links missing from web page & source code
    ... THe source code for the frames page is ... When you say to remove NIS & the ad scraper, do you mean just disable it, ... var month_number = date.getMonth; ... > This is in a frame. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Proper coding? (JS newbie)
    ... There should be a visual space after each of those entry ... looking at the source code of the page. ... function RadBtns{var Q, J=0 ... TP/BP/Delphi/jscr/&c, FAQ items, links. ...
    (microsoft.public.scripting.jscript)
  • another NullPointerException problem with List interface
    ... The API says that addcan have this exception "if the ... prints out the filename). ... 45 public static ListlistAllFiles(File dir, String ... extension) throws Exception ...
    (comp.lang.java.programmer)
  • RE: Strange LocalDataStoreSlot storage has been freed exception
    ... source code, it is not easy to find the root cause of the issue. ... Visual Studio to debug exception. ... In the Exceptions window, break when Common Language Runtime Exception ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Forcing Object File Rebuilding on Custom Environmental Variable Ch
    ... A better and simpler approach is to build the same source code twice when ... is in environment variables set in the subfolder sources files. ... command line build runs: first with the env. ... var. ...
    (microsoft.public.windowsce.platbuilder)