#348 JAVA exception with Mozilla DE-CH

0.92
closed-wont-fix
5
2014-03-29
2002-03-05
No

When trying to use the filemanager of webmin 0.92 under
the current mozilla releases I always get a
NumberFormatException error.

Probably it's a problem with no-us number format somewhere.

When looking at the system properties of the very same
JRE on the same maschine, the main difference is, that
the working IE5.5SP2 has a user.timezone set, as the
mozilla version doesn't have.....

As the error occurs on line 73 of the init, we see that
the source looks like:

71: // list NFS exports
72: String e[] = get_text("list_exports.cgi");
73: nfsmode = e.length == 0 ? 0 : Integer.parseInt(e[0]);

On those server we don't have any NFS exports, so it
seems that the list_exports.cgi returns some format who
isn't considered correct by parseint.

I would suggest to put line 73 in a try/catch block and
when a exception is thrown, set the nfsmode to 0

Here the stack trace:
java.lang.NumberFormatException: <!doctype html public
"-//W3C//DTD HTML 3.2 Final//EN">

at java.lang.Integer.parseInt(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at FileManager.init(FileManager.java:73)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

And here the system properties for Mozilla:

Java(TM) Plug-in: Version 1.3.1_01
Verwendung der JRE-Version 1.3.1_01 Java HotSpot(TM)
Client VM
Home-Verzeichnis des Benutzers = C:\Dokumente und
Einstellungen\sca

----------------------------------------------------
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
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Dump classloader list ...
codebase=https://ns2.aarboard.ch:10000/file/,
key=https://ns2.aarboard.ch:10000/file/, zombie=true,
cache=true, info=sun.plugin.ClassLoaderInfo@d9850
Done.

Dump system properties ...
---------------------------------------------------
acl.read = +
acl.read.default =
acl.write = +
acl.write.default =
application.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
awt.toolkit = sun.awt.windows.WToolkit
bridge.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
browser = sun.plugin
browser.vendor = Sun Microsystems, Inc.
browser.version = 1.1
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \ file.separator.applet = true
http.agent = Mozilla/4.0 (Windows 2000 5.0)
java.awt.fonts =
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .
java.class.version = 47.0
java.class.version.applet = true
java.ext.dirs =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\ext
java.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
java.io.tmpdir = C:\TEMP\ java.library.path =
C:\Programme\mozilla.org\Mozilla;.;C:\WINNT\System32;C:\WINNT;C:\Programme\mozilla.org\Mozilla\;I:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programme\Sybase\Adaptive
Server Anywhere
6.0\win32;C:\PROGRA~1\TCL\bin;C:\Programme\WebSite\Perl5\bin;C:\WINNT\system32\nls;C:\WINNT\system32\nls\English;C:\Programme\Sybase\SQL
Anywhere
7\win32;C:\Programme\ssh;C:\Programme\Sybase\Shared\win32;C:\Programme\Sybase\Shared\Sybase
Central
4.0\java;C:\programme\Reskit.40;C:\programme\Reskit.40\Perl;C:\Programme\Symantec\pcAnywhere\;C:\Programme\Microsoft
Visual Studio\VC98\Bin;C:\Programme\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Novell\ndk\cldapsdk\bin\win32;C:\Novell\ndk\cldapsdk\tools\win32;C:\Programme\Microsoft
Platform SDK\Bin\;C:\Programme\Microsoft Platform
SDK\Bin\WinNT;C:\PROGRA~1\GEMEIN~1\MGISHA~1\Video
java.protocol.handler.pkgs = sun.plugin.protocol.jdk12
java.runtime.name = Java(TM) 2 Runtime Environment,
Standard Edition
java.runtime.version = 1.3.1_01a
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.3
java.vendor = Sun Microsystems Inc.
java.vendor.applet = true
java.vendor.url = http://java.sun.com/
java.vendor.url.applet = true
java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1_01
java.version.applet = true
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine
Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 1.3.1_01
javaplugin.maxHeapSize = 96m
javaplugin.nodotversion = 131_01
javaplugin.proxy.config.type = auto
javaplugin.version = 1.3.1_01
line.separator = \r\n
line.separator.applet = true
mozilla.workaround = true
os.arch = x86
os.arch.applet = true
os.name = Windows 2000
os.name.applet = true
os.version = 5.0
os.version.applet = true
package.restrict.access.netscape = false
package.restrict.access.sun = true
package.restrict.definition.java = true
package.restrict.definition.netscape = true
package.restrict.definition.sun = true
path.separator = ;
path.separator.applet = true
sun.boot.class.path =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\rt.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\i18n.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\sunrsasign.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\classes;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\jaws.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\plugprov.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\sunrsasign.jar
sun.boot.library.path =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386
sun.io.unicode.encoding = UnicodeLittle
trustProxy = true
user.dir = C:\Programme\mozilla.org\Mozilla
user.home = C:\Dokumente und Einstellungen\sca
user.language = de
user.name = sca
user.region = CH
user.timezone =
---------------------------------------------------
Done.

And the properties for IE 5.5 SP2

Java(TM) Plug-in: Version 1.3.1_01
Verwendung der JRE-Version 1.3.1_01 Java HotSpot(TM)
Client VM
Home-Verzeichnis des Benutzers = C:\Dokumente und
Einstellungen\sca

Proxy-Konfiguration:Kein Proxy

----------------------------------------------------
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
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Dump system properties ...
---------------------------------------------------
acl.read = +
acl.read.default =
acl.write = +
acl.write.default =
application.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
awt.toolkit = sun.awt.windows.WToolkit
bridge.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
browser = sun.plugin
browser.vendor = Sun Microsystems, Inc.
browser.version = 1.1
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \ file.separator.applet = true
http.agent = Mozilla/4.0 (Windows 2000 5.0)
java.awt.fonts =
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .
java.class.version = 47.0
java.class.version.applet = true
java.ext.dirs =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\ext
java.home = C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0
java.io.tmpdir = C:\TEMP\ java.library.path = C:\Programme\Internet
Explorer;.;C:\WINNT\System32;C:\WINNT;C:\Programme\Internet
Explorer;;I:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programme\Sybase\Adaptive
Server Anywhere
6.0\win32;C:\PROGRA~1\TCL\bin;C:\Programme\WebSite\Perl5\bin;C:\WINNT\system32\nls;C:\WINNT\system32\nls\English;C:\Programme\Sybase\SQL
Anywhere
7\win32;C:\Programme\ssh;C:\Programme\Sybase\Shared\win32;C:\Programme\Sybase\Shared\Sybase
Central
4.0\java;C:\programme\Reskit.40;C:\programme\Reskit.40\Perl;C:\Programme\Symantec\pcAnywhere\;C:\Programme\Microsoft
Visual Studio\VC98\Bin;C:\Programme\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Novell\ndk\cldapsdk\bin\win32;C:\Novell\ndk\cldapsdk\tools\win32;C:\Programme\Microsoft
Platform SDK\Bin\;C:\Programme\Microsoft Platform
SDK\Bin\WinNT;C:\PROGRA~1\GEMEIN~1\MGISHA~1\Video
java.protocol.handler.pkgs = sun.plugin.protocol.jdk12
java.runtime.name = Java(TM) 2 Runtime Environment,
Standard Edition
java.runtime.version = 1.3.1_01a
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.3
java.vendor = Sun Microsystems Inc.
java.vendor.applet = true
java.vendor.url = http://java.sun.com/
java.vendor.url.applet = true
java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1_01
java.version.applet = true
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine
Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 1.3.1_01
javaplugin.maxHeapSize = 96m
javaplugin.nodotversion = 131_01
javaplugin.proxy.config.type = direct
javaplugin.version = 1.3.1_01
line.separator = \r\n
line.separator.applet = true
os.arch = x86
os.arch.applet = true
os.name = Windows 2000
os.name.applet = true
os.version = 5.0
os.version.applet = true
package.restrict.access.netscape = false
package.restrict.access.sun = true
package.restrict.definition.java = true
package.restrict.definition.netscape = true
package.restrict.definition.sun = true
path.separator = ;
path.separator.applet = true
sun.boot.class.path =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\rt.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\i18n.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\sunrsasign.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\classes;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\jaws.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\plugprov.jar;C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\lib\sunrsasign.jar
sun.boot.library.path =
C:\PROGRA~1\JavaSoft\JRE\131DB1~1.1_0\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386
sun.io.unicode.encoding = UnicodeLittle
trustProxy = true
user.dir = C:\Dokumente und Einstellungen\sca\Desktop
user.home = C:\Dokumente und Einstellungen\sca
user.language = de
user.name = sca
user.region = CH
user.timezone = Europe/Berlin
---------------------------------------------------
Done.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2002-03-05

    Logged In: YES
    user_id=129364

    I'm pretty sure that the problem here is that
    mozilla doesn't pass cookie or authentication information
    to java applets, so that when an applet makes an HTTP
    request of its own it fails because it is not authenticated
    to webmin. If you check the logfile /var/webmin/miniserv.log
    you should be able to see that the request for
    list_exports.cgi is not authenticated.

    This is really a bug in mozilla, which unfortunately
    I can't do anything about :(

     
  • André Schild

    André Schild - 2002-03-06
    • status: open --> open-wont-fix
     
  • André Schild

    André Schild - 2002-03-06

    Logged In: YES
    user_id=119137

    Unfortunaly you are right, the CGI requests don't have any
    user authentification :-(

    Should I close the bug ?

    Thanks.

    Andr

     
  • Jamie Cameron

    Jamie Cameron - 2002-03-06
    • status: open-wont-fix --> closed-wont-fix
     

Log in to post a comment.