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!

Search Support

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.

Learn More

Firefox crashes when loading a java applet

more options

On some of our computers the FireFox crashes on every applet call. This error occurs only with JRE 7 Update 4 or newer. It seems that the problem is caused by the JRE (Plugin npjp2.dll).
But the question is, why Firefox crashes due to an error within a plugin?


So far I've tried the following:

- Deinstall & Reinstall FireFox
- Clear FireFox Cache + Profile
- Deinstall & Reinstall JRE
- IE and Opera have no problem

More Informations:

LogFile (set NSPR_LOG_MODULES=all:5)
....
0[220f140]: nsHttpHandler::NewURI
0[220f140]: nsPluginHost::InstantiateEmbeddedPlugin Begin mime=application/x-java-applet, url=http://java.com/jsp_utils/
0[220f140]: nsPluginHost::TrySetupPluginInstance Begin mime=application/x-java-applet, owner=6ff98e0, url=http://java.com/jsp_utils/
0[220f140]: nsPluginHost::GetPlugin Begin mime=application/x-java-applet, plugin=npjp2.dll
0[220f140]: Loaded library C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll (load lib)

WinDbg => Attach to a process (FireFox.exe)

....
> g ModLoad: 6ec30000 6ec55000 C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll Aug 31 11:26:59.093 P:4696 T:4616 Load failed in ADVAPI32.dll at function RegOpenKeyExA (1258.1208): C++ EH exception - code e06d7363 (first chance) (1258.1208): C++ EH exception - code e06d7363 (!!! second chance !!!) eax=09cffcb8 ebx=00000000 ecx=00000000 edx=09cffd50 esi=09cffd40 edi=77e40000 eip=77e4bef7 esp=09cffcb4 ebp=09cffd08 iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000206 *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\kernel32.dll - kernel32!RaiseException+0x3c: 77e4bef7 5e pop esi >K *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\Mozilla Firefox\MSVCR100.dll - ChildEBP RetAddr WARNING: Stack unwind information not available. Following frames may be wrong. 09cffd08 78ac7819 kernel32!RaiseException+0x3c *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll - 09cffd40 6ec402a0 MSVCR100!CxxThrowException+0x45 09cffd60 6ec3c649 npjp2!Java_sun_plugin2_main_server_ServerPrintHelper_printBand0+0x1c23 09cffdd0 6ec3e771 npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x332 09cffe0c 6ec3e048 npjp2!Java_sun_plugin2_main_server_ServerPrintHelper_printBand0+0xf4 09cffe5c 6ec3e0fd npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x1d31 09cfff70 6ec3e1e5 npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x1de6 09cfffac 78afc788 npjp2!NP_Initialize+0x12 09cfffb8 77e6482f MSVCR100!endthreadex+0xe4 09cfffec 00000000 kernel32!GetModuleHandleA+0xdf


Unfortunately I am not familiar with WinDbg and I don't have the npjp2 symbol file.

Thanks for any help.

On some of our computers the FireFox crashes on every applet call. This error occurs only with JRE 7 Update 4 or newer. It seems that the problem is caused by the JRE (Plugin npjp2.dll).<br /> But the question is, why Firefox crashes due to an error within a plugin? So far I've tried the following: <br /><br /> <pre>- Deinstall & Reinstall FireFox - Clear FireFox Cache + Profile - Deinstall & Reinstall JRE - IE and Opera have no problem </pre> More Informations: <br /><br /> <pre>LogFile (set '''NSPR_LOG_MODULES=all:5''') .... 0[220f140]: nsHttpHandler::NewURI 0[220f140]: nsPluginHost::InstantiateEmbeddedPlugin Begin mime=application/x-java-applet, url=http://java.com/jsp_utils/ 0[220f140]: nsPluginHost::TrySetupPluginInstance Begin mime=application/x-java-applet, owner=6ff98e0, url=http://java.com/jsp_utils/ 0[220f140]: nsPluginHost::GetPlugin Begin mime=application/x-java-applet, plugin=npjp2.dll 0[220f140]: Loaded library C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll (load lib) '''WinDbg '''=> Attach to a process (FireFox.exe) ....<br /> '''> g''' ModLoad: 6ec30000 6ec55000 C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll Aug 31 11:26:59.093 P:4696 T:4616 Load failed in ADVAPI32.dll at function RegOpenKeyExA (1258.1208): C++ EH exception - code e06d7363 (first chance) (1258.1208): C++ EH exception - code e06d7363 (!!! second chance !!!) eax=09cffcb8 ebx=00000000 ecx=00000000 edx=09cffd50 esi=09cffd40 edi=77e40000 eip=77e4bef7 esp=09cffcb4 ebp=09cffd08 iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000206 *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\kernel32.dll - kernel32!RaiseException+0x3c: 77e4bef7 5e pop esi '''>K''' *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\Mozilla Firefox\MSVCR100.dll - ChildEBP RetAddr WARNING: Stack unwind information not available. Following frames may be wrong. 09cffd08 78ac7819 kernel32!RaiseException+0x3c *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll - 09cffd40 6ec402a0 MSVCR100!CxxThrowException+0x45 09cffd60 6ec3c649 npjp2!Java_sun_plugin2_main_server_ServerPrintHelper_printBand0+0x1c23 09cffdd0 6ec3e771 npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x332 09cffe0c 6ec3e048 npjp2!Java_sun_plugin2_main_server_ServerPrintHelper_printBand0+0xf4 09cffe5c 6ec3e0fd npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x1d31 09cfff70 6ec3e1e5 npjp2!Java_sun_plugin2_util_PluginTrace_broadcast+0x1de6 09cfffac 78afc788 npjp2!NP_Initialize+0x12 09cfffb8 77e6482f MSVCR100!endthreadex+0xe4 09cfffec 00000000 kernel32!GetModuleHandleA+0xdf</pre> Unfortunately I am not familiar with WinDbg and I don't have the npjp2 symbol file. Thanks for any help.

Modified by cor-el

All Replies (2)

more options

Java can't run in a plugin-container process, but runs in the browser and dom.ipc.plugins.java.enabled is false because of that. So if Java crashes then it makes Firefox crash.

Oracle has released a Java update to fix a security vulnerability in Java 7U6 and 6U34 and lower versions that every user should apply.

Please update the Java JRE version to 7U7 or 6U35 because of that security vulnerability in older versions.

See Java Platform > Java SE 7U7 or Java 6U35 (Download JRE)

more options

Thank you for the explanation. Now I understand why the JRE causes FireFox to crash. I have already installed the JRE 7U7. Unfortunately, the error still occurs. Do you know how I can get a debug version of npjp2.dll? So maybe I could find the problem.