X
Tap here to go to the mobile version of the site.

Fóram Tacaíochta

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

When doing window.open I get "Error: Components.classes['@mozilla.org/extensions/manager;1'] is undefined" from line 8 of your chrome://jqs/content/overlay.js module.

Postáilte

The actual window.open command is:

var newwindow = window.open(url, 'bolsInError' , 'height=600,width=900,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,status=no');

The url variable contains:

/energy/view/fueladmin/popBolNumbers.do?errorType=TDTN Error&errorField=Terminal-Product-&groupByKey=normalize%26%23373AT61KY3270%26%23377C286550%26%23377CCV%26%23377C%26%23377C%26%23373AR45%26%23377C%26%23377C&errorValue=T61KY3270%26%23377C286550%26%23377CCV%26%23377C%26%23377C%26%233723R45%26%23377C%26%23377C%26%233723

This error started appearing in Firefox 4.0.1 - it did not appear in previous versions. When I run in a debugger I can see that the error has been generated PRIOR to the struts action running that builds the web page being opened in the new window, so the error seems to be related to the window.open command and not to anything in the web page it is opening. Also, the error does not always occur - it seems to be somewhat intermittent.

The actual window.open command is: var newwindow = window.open(url, 'bolsInError' , 'height=600,width=900,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,status=no'); The url variable contains: /energy/view/fueladmin/popBolNumbers.do?errorType=TDTN Error&errorField=Terminal-Product-&groupByKey=normalize%26%23373AT61KY3270%26%23377C286550%26%23377CCV%26%23377C%26%23377C%26%23373AR45%26%23377C%26%23377C&errorValue=T61KY3270%26%23377C286550%26%23377CCV%26%23377C%26%23377C%26%233723R45%26%23377C%26%23377C%26%233723 This error started appearing in Firefox 4.0.1 - it did not appear in previous versions. When I run in a debugger I can see that the error has been generated PRIOR to the struts action running that builds the web page being opened in the new window, so the error seems to be related to the window.open command and not to anything in the web page it is opening. Also, the error does not always occur - it seems to be somewhat intermittent.

Tuilleadh mionsonraí faoin chóras

Seo é an rud a tharla

Gach uair a osclaíonn Firefox

Thosaigh sé seo nuair...

I migrated to Firefox 4.0.1

Breiseáin Shuiteáilte

  • Office Plugin for Netscape Navigator
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • ActiveTouch General Plugin Container Version 105
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Adobe PDF Plug-In For Firefox and Netscape 8.2.6
  • Shockwave Flash 10.2 r152
  • iTunes Detector Plug-in
  • GEPlugin
  • Google Updater pluginhttp://pack.google.com/
  • Google Update
  • Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
  • DRM Netscape Network Object
  • DRM Store Netscape Plugin
  • Npdsplay dll

Feidhmchlár

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Tuilleadh Eolais

The code in the overlay.js module is:
//
// Copyright 2007 Sun Microsystems, Inc. All rights reserved.
// SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
//
// get the JQS extension directory
const id = "jqs@sun.com";
var ext = Components.classes["@mozilla.org/extensions/manager;1"]
.getService(Components.interfaces.nsIExtensionManager)
.getInstallLocation(id)
.getItemLocation(id);
// create an nsILocalFile for the executable
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
// construct command line
file.initWithPath(ext.path + "\\..\\..\\..\\..\\bin\\jqsnotify.exe");
// and launch it
file.launch();

cor-el
  • Top 10 Contributor
  • Moderator
17680 réiteach 159921 freagra

Freagra Cabhrach

Looks like a problem with the Java Quick Starter extension.

Disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions

  • Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)

See:

Looks like a problem with the Java Quick Starter extension. Disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions * Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable) See: * http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0