Closed Bug 212016 Opened 21 years ago Closed 7 years ago

No manager for initializing factory?

Categories

(Core Graveyard :: Plug-ins, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: dhighley, Assigned: peterlubczynski-bugs)

Details

(Whiteboard: JAVA-plugin for Sun Workshop builds used on build created with gcc3.x)

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030706
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030706

Mozilla will not run after symlinking in the java plugin. Fails with the message
INTERNAL ERROR on Browser End: No manager for initializing factory?

A google search turned up 5 reports of this back to version 1.1 but no solution
was given.By the way firebird 0.6 fails in the same way.

Reproducible: Always

Steps to Reproduce:
1.ln -s /usr/j2re1.4.1_03/plugin/sparc/ns610/libjavaplugin_oji.so
libjavaplugin_oji.so
2.
3.




hemlock: $ less .mozconfig
# sh
# Build configuration script
#
# See http://www.mozilla.org/build/unix.html for build instructions.
#

# Options for 'configure' (same as command-line options).
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --with-xprint
ac_add_options --enable-x11-shm
ac_add_options --enable-ctl
ac_add_options --enable-optimize
ac_add_options --enable-crypto
ac_add_options --with-pthreads
ac_add_options --enable-calendar
ac_add_options --enable-js-ultrasparc
ac_add_options --enable-default-toolkit=gtk2
Reporter:
Which compiler and compiler version do you use ?
OS: SunOS → Solaris
I used gcc version 3.3.
I have encountered the same bug on Debian 3.0 (Linux kernel 2.2.20).

I installed Mozilla from standard mozilla-i686-pc-linux-gnu-1.4.tar.gz package
downloaded from ftp.mozilla.org and J2SE SDK from j2sdk-1_4_2-linux-i586.bin
downloaded from java.sun.com.

$ ./mozilla -version
Mozilla 1.4, Copyright (c) 2003 mozilla.org, build 2003062407

$ /usr/local/java/bin/java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
David Highley wrote:
> I used gcc version 3.3.

Wrong plugin for that compiler.
The plugin in */ns610/* is for Sun Workshop/Forte-compiled
Mozilla/FireBird/Thunderbird and will not work with compilers which use a
completely different ABI (e.g. C++ name mangeling is different).
Check whether the newest version of JAVA has a plugin dir which has *gcc3* in
it's name... if not you have to ask Sun to compile the plugin with that compiler
and make that build available in the next JAVA release.
Whiteboard: JAVA-plugin for Sun Workshop builds used on build created with gcc3.x
Tero Jokela wrote:
> I have encountered the same bug on Debian 3.0 (Linux kernel 2.2.20).

I guess you are trying to use the JAVA plugin for gcc 2.95.x on a gcc3.x Mozilla
build (again, gcc2.95.x and gcc3.x have a different ABI ...) ...
Status: UNCONFIRMED → NEW
Ever confirmed: true
I guess that pretty much leaves mozilla out of luck for java scripts. Which also
leaves Sun pretty much out of luck since 9 out 10 Sun systems do not run a Forte
compiler.
Well, actually it doesn't leave java unable to run.. The latest releases of
Sun's java include a GCC32 plugin .so as well as a gcc2.9x .so.. 
All you have to do link the gcc32 plugin .so into the plugin directory. Or if
testing a build into that test builds plugin directory, It will pick that one up
first and ignore the one in the user plugin directory or global plugin directory..
I'm having the same problem, with a difference.  I'm using Red Hat 7.3 with gcc
2.96, Sun java 1.4.2-02 from RPM, and netscape 1.5.  When trying the ns610
plugin the browser fails to start giving this same error ("No manager for
initilizing factory?") bug when I use the gcc32 plugin for ns610 the browser
will load, but give and error loading libjava due to missing gcc32 libraries.

I'm thinking that the mozilla binary has been compiled on a system with gcc32
instead of gcc 2.96 in this case, being the reason that it will only try to load
the gcc3.2 plugin version, but won't load the 2.96 version.

Incidentally, mozilla 1.3 does work with java 1.4.2-02, but mozilla 1.4 and 1.5
do not.

Hope this is helpful.  

Regards.
Red Hat 9 using Mozilla 1.4 Sun Java Plugin 1.4.2_01 works for me.

NOTE: Original problem was logged against the Sparc Solaris platform
where there is still no Java plugin for a GCC compiled browser. Windows
and Linux platforms have working Java plugins.

Sun has been providing Forte compiled browser however their readme is not
correct when it indicates you will get a libgtk.so.1.2 file if you down
load Netscape 7. Also using Netscape 7 and Mozilla for the same account
will collide with the directory $HOME/.mozilla. This in the past has broken
IMAP for me.
I have the same problem while using:
- Sparc Solaris
- GCC 3.2.2
- JRE 1.4.2_05

I did not find any *gcc* plugin in the freshly downloaded JRE package.
Exact same error when using this plugin. Running firefox goes OK, when trying to
view a webpage (or just about:plugins), the app exites with following output:
$ ./firefox
Killed
INTERNAL ERROR on Browser End: No manager for initializing factory?

System error?:: Error 0

[/tmp/j2re1.4.2_05] $ find . -name "libjavaplugin*.so" -exec ls -l {} \;
-rwxrwxr-x   1 x   y      70776 Jun  3 23:31 ./lib/sparc/libjavaplugin_jni.so
-rwxrwxr-x   1 x   y     107536 Jun  3 23:28 ./plugin/sparc/ns4/libjavaplugin.so
-rwxrwxr-x   1 x   y     229004 Jun  3 23:29
./plugin/sparc/ns610/libjavaplugin_oji.so

[/tmp/j2re1.4.2_05] $ find . -name "libjavaplugin*.so" -exec file {} \;
./lib/sparc/libjavaplugin_jni.so:       ELF 32-bit MSB dynamic lib SPARC Version
1, dynamically linked, stripped
./plugin/sparc/ns4/libjavaplugin.so:    ELF 32-bit MSB dynamic lib SPARC Version
1, dynamically linked, stripped
./plugin/sparc/ns610/libjavaplugin_oji.so:      ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, stripped

[/tmp/j2re1.4.2_05] $ gcc --version
gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I upgraded from Mozilla 1.2 to 1.7.2.  After the upgrade, 'root' could run the
1.7.2 version of mozilla; 'csimmons' could run the '1.2' version, but 'csimmons'
could not run the 1.7.2 version ("No manager for initializing factory").  I
created symlinks to the n610-gcc322/libjavaplugin_oji.so in all plugin
directories I could find (6 of them in /usr/local/lib and /usr/lib and the
'csimmons' account under both mozilla and netscape directories).  Didn't work. 
I found the 'pluginreg.dat' file in my home account and renamed it to
pluginreg.dat.orig; no change.  I restored the pluginreg.dat file and edited
(manually) the reference to n610/libjavaplugin_oji.so; no change.  

Finally, I created a symlink from the n610 directory to the n610-gcc322
directory.  That worked.


It seems to me that this is such a common standard problem that it should be
documented in the installation README file and the correct workaround procedures
should be described.
I saw the same behavior as cesium using RH9, 
kernal 2.4.20-8 
firefox1.03 
gcc version 3.2.2 20030222 
j2re1.4.2_06 
 
Somehow this bug has disabled my old mozilla as well, even after wiping the firefox directories 
-leaving me with konquerer.  
Need workaround instructions, a comprehensible error message,   
Common enough to be on FAQ. 
QA Contact: bmartin → plugins
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.