Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

i'm trying to develop a PKI enabled plugin for firefox using add-on builder. how do you call a java applet using add-on javascript on add-on builder ?

  • 1 vastaus
  • 1 henkilöllä on sama ongelma
  • 1 näyttö
  • Viimeisin kirjoittaja the-edmeister

more options

i have a signed applet which encrypts and digitally signs text information. i need to call this applet from the add-on javascript on firefox's add-on builder . how do i do it ?

i've tried using contentScript and contentScriptFile to load the html file which calls the applet vis applet tag , it doesnt work.

this is the error which croped up:

Java Plug-in 1.6.0_26 Using JRE version 1.6.0_26-b03-383-11A511 Java HotSpot(TM) 64-Bit Server VM User home directory = /Users/sreer1990


c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n>



java.lang.NullPointerException at sun.net.www.ParseUtil.toURI(ParseUtil.java:261) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:861) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172) at sun.plugin.PluginURLJarFileCallBack.downloadJAR(PluginURLJarFileCallBack.java:81) at sun.plugin.PluginURLJarFileCallBack.access$000(PluginURLJarFileCallBack.java:48) at sun.plugin.PluginURLJarFileCallBack$2.run(PluginURLJarFileCallBack.java:150) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.PluginURLJarFileCallBack.retrieve(PluginURLJarFileCallBack.java:127) at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:186) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:201) at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(CachedJarURLConnection.java:145) at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:91) at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(DeployURLClassPath.java:752) at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(DeployURLClassPath.java:631) at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(DeployURLClassPath.java:698) at java.security.AccessController.doPrivileged(Native Method) at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(DeployURLClassPath.java:690) at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(DeployURLClassPath.java:652) at com.sun.deploy.security.DeployURLClassPath$3.run(DeployURLClassPath.java:400) at java.security.AccessController.doPrivileged(Native Method) at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:389) at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:366) at com.sun.deploy.security.DeployURLClassPath.getResource(DeployURLClassPath.java:230) at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:966) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:955) at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:240) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675) at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498) at java.lang.Thread.run(Thread.java:680) Exception: java.lang.NullPointerException

i have a signed applet which encrypts and digitally signs text information. i need to call this applet from the add-on javascript on firefox's add-on builder . how do i do it ? i've tried using contentScript and contentScriptFile to load the html file which calls the applet vis applet tag , it doesnt work. this is the error which croped up: Java Plug-in 1.6.0_26 Using JRE version 1.6.0_26-b03-383-11A511 Java HotSpot(TM) 64-Bit Server VM User home directory = /Users/sreer1990 ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- java.lang.NullPointerException at sun.net.www.ParseUtil.toURI(ParseUtil.java:261) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:861) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172) at sun.plugin.PluginURLJarFileCallBack.downloadJAR(PluginURLJarFileCallBack.java:81) at sun.plugin.PluginURLJarFileCallBack.access$000(PluginURLJarFileCallBack.java:48) at sun.plugin.PluginURLJarFileCallBack$2.run(PluginURLJarFileCallBack.java:150) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.PluginURLJarFileCallBack.retrieve(PluginURLJarFileCallBack.java:127) at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:186) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:201) at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(CachedJarURLConnection.java:145) at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:91) at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(DeployURLClassPath.java:752) at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(DeployURLClassPath.java:631) at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(DeployURLClassPath.java:698) at java.security.AccessController.doPrivileged(Native Method) at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(DeployURLClassPath.java:690) at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(DeployURLClassPath.java:652) at com.sun.deploy.security.DeployURLClassPath$3.run(DeployURLClassPath.java:400) at java.security.AccessController.doPrivileged(Native Method) at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:389) at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:366) at com.sun.deploy.security.DeployURLClassPath.getResource(DeployURLClassPath.java:230) at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:966) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:955) at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:240) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675) at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498) at java.lang.Thread.run(Thread.java:680) Exception: java.lang.NullPointerException

Kaikki vastaukset (1)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.