karmic beta1: Sun Java plugin does not load

Bug #440478 reported by Jakob Lund
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
firefox-3.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.5

I installed sun-java6-jdk and sun-java6-plugin. Firefox doesn't load the plugin, but shows a light-gray square where the applet should be.

I tried to:
 * rename my ~/.mozilla/firefox directory, so Firefox would use default settings
 * Change the plugin via the "manage content plugins" menu option
 * create a symlink to /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so in my ~/.mozilla/plugins directory

Neither worked.

Perhaps related: I had some weird problem with installing sun-java6-sdk after updating my machine to karmic (alpha 5 ath the time) from jaunty; I had to manually uninstall the sun-java6-plugin package and THEN run "apt-get autoremove" before apt-get could work out the dependencies to install the -jdk package.

Any idea how to fix / debug this?

Revision history for this message
Micah Gersten (micahg) wrote :

I can confirm this on Karmic Beta.

Not sure if it has something to do with Karmic having an older version of the package:
 apt-cache policy sun-java6-plugin
sun-java6-plugin:
  Installed: 6-16-0ubuntu1.9.04
  Candidate: 6-16-0ubuntu1.9.04
  Version table:
 *** 6-16-0ubuntu1.9.04 0
        100 /var/lib/dpkg/status
     6-15-1 0
        500 http://archive.ubuntu.com karmic/multiverse Packages

Changed in firefox-3.5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

does this work better with upstream ffox 3.5 builds?

Revision history for this message
Jakob Lund (jakob-bebop) wrote : Re: [Bug 440478] Re: karmic beta1: Sun Java plugin does not load

Hi

No, I just checked with the `shiretoko' from "ppa:ubuntu-mozilla-daily/ppa",
and it changed nothing... Well, the bug could be in the plugin itself I
suppose ?! My current version (of the plugin) is 6-15-1. Is there another
source (like a ppa) I could add to install a different version for checking
this?

Jakob

On Fri, Oct 2, 2009 at 12:09 PM, Alexander Sack <email address hidden> wrote:

> does this work better with upstream ffox 3.5 builds?
>
> --
> karmic beta1: Sun Java plugin does not load
> https://bugs.launchpad.net/bugs/440478
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “firefox-3.5” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: firefox-3.5
>
> I installed sun-java6-jdk and sun-java6-plugin. Firefox doesn't load the
> plugin, but shows a light-gray square where the applet should be.
>
> I tried to:
> * rename my ~/.mozilla/firefox directory, so Firefox would use default
> settings
> * Change the plugin via the "manage content plugins" menu option
> * create a symlink to
> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so in my
> ~/.mozilla/plugins directory
>
> Neither worked.
>
> Perhaps related: I had some weird problem with installing sun-java6-sdk
> after updating my machine to karmic (alpha 5 ath the time) from jaunty; I
> had to manually uninstall the sun-java6-plugin package and THEN run "apt-get
> autoremove" before apt-get could work out the dependencies to install the
> -jdk package.
>
> Any idea how to fix / debug this?
>

Revision history for this message
Micah Gersten (micahg) wrote :

@ Jakob Lund

This worked for me after I removed the icedtea plugin. Do you have both the Sun and open source version installed?

Changed in firefox-3.5 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jakob Lund (jakob-bebop) wrote :

no, just the Sun one

On Fri, Oct 2, 2009 at 10:35 PM, Micah Gersten <
<email address hidden>> wrote:

> @ Jakob Lund
>
> This worked for me after I removed the icedtea plugin. Do you have both
> the Sun and open source version installed?
>
> ** Changed in: firefox-3.5 (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> karmic beta1: Sun Java plugin does not load
> https://bugs.launchpad.net/bugs/440478
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “firefox-3.5” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: firefox-3.5
>
> I installed sun-java6-jdk and sun-java6-plugin. Firefox doesn't load the
> plugin, but shows a light-gray square where the applet should be.
>
> I tried to:
> * rename my ~/.mozilla/firefox directory, so Firefox would use default
> settings
> * Change the plugin via the "manage content plugins" menu option
> * create a symlink to
> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so in my
> ~/.mozilla/plugins directory
>
> Neither worked.
>
> Perhaps related: I had some weird problem with installing sun-java6-sdk
> after updating my machine to karmic (alpha 5 ath the time) from jaunty; I
> had to manually uninstall the sun-java6-plugin package and THEN run "apt-get
> autoremove" before apt-get could work out the dependencies to install the
> -jdk package.
>
> Any idea how to fix / debug this?
>

Revision history for this message
Bogdan Gribincea (bogdan-gribincea) wrote :

To make it work with Firefox 3.5+ on Karmic x64 i had to do the following:

- sudo aptitude install sun-java6-jre sun-java6-bin sun-java6-plugin
- sudo aptitude purge openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib icedtea6-plugin
- mkdir ~/.mozilla/plugins && ln -s /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins

Voila.

One thing to note is that the plugin did get loaded in Firefox 3.0.x without this 'fix'. So, I guess the plugin doesn't have the correct symlinks to make it work with 3.5+

Revision history for this message
Jakob Lund (jakob-bebop) wrote :

I cant' figure out how to work around this --- I tried the symlinking to
~/.mozilla/plugins solution that Bogdan suggested above (only I'm on a 32bit
machine so the path is different), but it doesn't work here.

On Fri, Oct 9, 2009 at 3:49 PM, Bogdan Gribincea <<email address hidden>
> wrote:

> To make it work with Firefox 3.5+ on Karmic x64 i had to do the
> following:
>
> - sudo aptitude install sun-java6-jre sun-java6-bin sun-java6-plugin
> - sudo aptitude purge openjdk-6-jre openjdk-6-jre-headless
> openjdk-6-jre-lib icedtea6-plugin
> - mkdir ~/.mozilla/plugins && ln -s
> /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64/libnpjp2.so
> ~/.mozilla/plugins
>
> Voila.
>
> One thing to note is that the plugin did get loaded in Firefox 3.0.x
> without this 'fix'. So, I guess the plugin doesn't have the correct
> symlinks to make it work with 3.5+
>
> --
> karmic beta1: Sun Java plugin does not load
> https://bugs.launchpad.net/bugs/440478
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “firefox-3.5” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: firefox-3.5
>
> I installed sun-java6-jdk and sun-java6-plugin. Firefox doesn't load the
> plugin, but shows a light-gray square where the applet should be.
>
> I tried to:
> * rename my ~/.mozilla/firefox directory, so Firefox would use default
> settings
> * Change the plugin via the "manage content plugins" menu option
> * create a symlink to
> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so in my
> ~/.mozilla/plugins directory
>
> Neither worked.
>
> Perhaps related: I had some weird problem with installing sun-java6-sdk
> after updating my machine to karmic (alpha 5 ath the time) from jaunty; I
> had to manually uninstall the sun-java6-plugin package and THEN run "apt-get
> autoremove" before apt-get could work out the dependencies to install the
> -jdk package.
>
> Any idea how to fix / debug this?
>

Revision history for this message
eld1e6o (eld1e6o) wrote :

In my case, the problem was the plugin sun-java6-plugin, it wasn't insalled automatically, in my computer it started to work after install this package. You can try to solve deleting/renaming (if you have important configurations/history/etc) the folder named .mozilla and opening firefox to generate the folder .mozilla again, then reinstalling the sun-java6-plugin

Greetings.

Revision history for this message
Peng (pengwg) wrote :

This bug applies to me with two machines (32 bit and 64 bit) upgraded from Jaunty. Both machines had Shiretoko previously installed.
On a 64 bit machine with Karmic freshly installed java just works fine.

Revision history for this message
Jakob Lund (jakob-bebop) wrote :

This appears to be a problem with apparmor configuration. See the workaround (involves editing config file /etc/apparmor.d/usr.bin.firefox-3.5 and restarting apparmor) at

https://bugs.launchpad.net/bugs/454019

Revision history for this message
Jakob Lund (jakob-bebop) wrote :

Comment #10 is bogus. My edits in the apparmor file only introduced errors.

However, doing a harsh `apt-get purge firefox firefox-3.5` and then a `apt-get install firefox` and then finally `sudo /etc/init.d/apparmor restart` got me the appropriate configuration going. So now I get appletzzz...

Anyway, the last command gives the following output:

 * Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox-3.5

Does that mean that apparmor is disabled for firefox ?! This seems suboptimal, maybe even a security risk?

Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

My bug 482637 looks like a duplicate of this one. Maybe the files there from apport tell someone something useful?

Revision history for this message
Álvaro del Olmo Alonso (dllum) wrote :

Confirmed on karmik:

liria@liria:~$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)

I installed icedtea before java sun. Later on, I installed Java Sun and removed icedtea.
It doesn't work.

Revision history for this message
Álvaro del Olmo Alonso (dllum) wrote :

I've tried with all navigator available: SeaMonkey, Konqueror, Galeon...
The same.

Changed in firefox-3.5 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
pider (per-gylterud) wrote :

I removed .mozilla and .java in home dir (took backup) and it suddenly worked, but it is slow in my bank login (about 60 sec).

Revision history for this message
Álvaro del Olmo Alonso (dllum) wrote :

What do you mean by ''bank login''?

2009/11/28 pider <email address hidden>

> I removed .mozilla and .java in home dir (took backup) and it suddenly
> worked, but it is slow in my bank login (about 60 sec).
>
> --
> karmic beta1: Sun Java plugin does not load
> https://bugs.launchpad.net/bugs/440478
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Álvaro del Olmo Alonso (dllum) wrote :

It didn't work.
Can you please post the following outputs?
$ java -version
$ dpkg -l | grep java

2009/11/28 Álvaro del Olmo <email address hidden>

> What do you mean by ''bank login''?
>
> 2009/11/28 pider <email address hidden>
>
> I removed .mozilla and .java in home dir (took backup) and it suddenly
>> worked, but it is slow in my bank login (about 60 sec).
>>
>> --
>> karmic beta1: Sun Java plugin does not load
>> https://bugs.launchpad.net/bugs/440478
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
>

Revision history for this message
Emiliano Leporati (emiliano-leporati) wrote :

on a freshly installed ubuntu machine:

ubik@ubik-laptop:~$ uname -a
Linux ubik-laptop 2.6.31-16-generic #52-Ubuntu SMP Thu Dec 3 22:00:22 UTC 2009 i686 GNU/Linux
ubik@ubik-laptop:~$ firefox -version
Mozilla Firefox 3.5.5, Copyright (c) 1998 - 2009 mozilla.org
ubik@ubik-laptop:~$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)

ubik@ubik-laptop:~$ dpkg -l | grep java
ii java-common 0.30ubuntu5 Base of all Java packages
ii sun-java6-bin 6-15-1 Sun Java(TM) Runtime Environment (JRE) 6 (ar
ii sun-java6-jre 6-15-1 Sun Java(TM) Runtime Environment (JRE) 6 (ar
ii sun-java6-plugin 6-15-1 The Java(TM) Plug-in, Java SE 6
ubik@ubik-laptop:~$ dpkg -l | grep firefox
ii firefox 3.5.5+nobinonly-0ubuntu0.9.10.1 meta package for the popular mozilla web bro
ii firefox-3.5 3.5.5+nobinonly-0ubuntu0.9.10.1 safe and easy web browser from Mozilla
ii firefox-3.5-branding 3.5.5+nobinonly-0ubuntu0.9.10.1 Package that ships the firefox branding
ii firefox-3.5-gnome-support 3.5.5+nobinonly-0ubuntu0.9.10.1 Support for Gnome in Mozilla Firefox
ii firefox-gnome-support 3.5.5+nobinonly-0ubuntu0.9.10.1 meta package pointing to the latest gnome-su

ubik@ubik-laptop:~$ firefox -console
[...]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386/libnpjp2.so [/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386/libnpjp2.so: cannot enable executable stack as shared object requires: Operation not permitted]
[...]
Failed to create Java VM

Revision history for this message
Hai NGUYEN VAN (psaxl) wrote :

It does not even work on the final 9.20 Ubuntu release :(

Revision history for this message
sunil (chacko-sunil) wrote :
Download full text (3.9 KiB)

I too have been facing a similar problem when trying to access the webpage below:

http://charting.bseindia.com/charting/index.asp?SYMBOL=532129

when i try to access the above page, the panel on the right where the graph is to appear, remains blank with a msg that there is a error in the page. A screenshot of this is attached. And when i click on the details, I get the following in the Java console:

Java Plug-in 1.6.0_15
Using JRE version 1.6.0_15-b03 Java HotSpot(TM) 64-Bit Server VM
User home directory = /home/sunil
----------------------------------------------------
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>
----------------------------------------------------

MetaStock Online
Copyright (C) 1997-2000 Equis International, Inc.
All Rights Reserved.
Version 2.5.4
Mar 27 2000 12:00 MST
MS4Java --> Feature level at version 2.0.0
MS4Java --> In CheckClientKey()
MS4Java --> This client key (#8FB-700-0631) will expire on 3/2010.
MS4Java --> Client key (8FB-700-0631) is valid
MS4Java --> Language URL: 'http://charting.bseindia.com/charting/equis/metastock/english.lang'
BColor : e6eef1, FColor : 0089CF
MS4Java --> Parameters:
MS4Java --> AdsURL = http://charting.bseindia.com/charting/equis/metastock/ads
MS4Java --> Applet Name Font Size = 12
MS4Java --> Applet Name Position = west
MS4Java --> AutoPriceStyleChanges = true
MS4Java --> Copyright notice = Copyright (C) 1997-2000 Equis International, Inc.
All Rights Reserved.
MS4Java --> DateFormat = MM/DD/YY
MS4Java --> EODDataURL = http://charting.bseindia.com/charting/history.asp
MS4Java --> ForceUpperParam = true
MS4Java --> HelpURL = http://charting.bseindia.com/charting/help/index.asp
MS4Java --> HumanLanguage = ENGLISH
MS4Java --> IntradayDataURL = http://charting.bseindia.com/charting/intraday.asp
MS4Java --> MS4JVersion = 2.0.0
MS4Java --> NewsURL = http://www.bseindia.com/charting/news.asp?SYMBOL=
MS4Java --> RelativeStrengthSymbol = BSE303
MS4Java --> Removed Indicators = NONE
MS4Java --> SearchDialogHeight = 0
MS4Java --> SetDefaultIndicator = Moving Average (value1=15, value2=15)
MS4Java --> ShowAdPanel = false
MS4Java --> ShowData = true
MS4Java --> ShowDataErrorMessages = true
MS4Java --> ShowDebugMessages = true
MS4Java --> ShowDocumentHelpFrame = _self
MS4Java --> ShowDocumentNewsFrame = _new
MS4Java --> ShowHelpButton = true
MS4Java --> ShowIntradayVolume = true
MS4Java --> ShowNewsButton = true
MS4Java --> ShowPeriodicityControl = false
MS4Java --> ShowPriceStyleControl = false
MS4Java --> ShowSymbolControl = false
MS4Java --> YAxisWidth = 50
http://charting.bseindia.com/charting/indices....

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.