FULL PRODUCT VERSION :
java version "1.4.2_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
Java HotSpot(TM) Client VM (build 1.4.2_16-b05, mixed mode)
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_14-b03, mixed mode)
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 12.0-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hp-xw8600-01.rhts.boston.redhat.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
URL http://www.newstin.cz/all-topics-startree.a does not work in Fedora 8 Firefox Java plugin.
Its Java is IcedTea - based on OpenJDK 1.7.0.0-0.19.b21.snapshot.
No errors messages from the plugin seen but standalone `appletviewer' also crashes - with Java exception messages.
It does not work even in JDK-1.4, 1.5, 1.6 and EA-1.7 downloaded from java.sun.com.
It was reported as working on SuSE Linux. Also the newstin.cz company probably has seen it working if they have it as a navigation on their website.
The web/applet is correct according to the HTML specification
http://www.w3.org/TR/html4/struct/objects.html#edef-APPLET
as WIDTH and HEIGHT are %Length and it has allowed the percentage ("100%") specification.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
appletviewer http://www.newstin.cz/all-topics-startree.a
or just
echo '<applet code="Width100" width="100%" height="100"></applet>' >Width100.html; appletviewer ./Width100.html
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Applet successfully run.
ACTUAL -
$ appletviewer http://www.newstin.cz/all-topics-startree.a
HTML parsing: incorrect value for width/height attribute
java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at sun.applet.AppletPanel.init(AppletPanel.java:216)
at sun.applet.AppletViewer.<init>(AppletViewer.java:195)
at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:100)
at sun.applet.AppletViewer.parse(AppletViewer.java:1140)
at sun.applet.AppletViewer.parse(AppletViewer.java:1074)
at sun.applet.Main.run(Main.java:156)
at sun.applet.Main.main(Main.java:98)
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at java.awt.Component.getNormalShape(Component.java:9526)
at java.awt.Component.calculateCurrentShape(Component.java:9561)
at java.awt.Component.applyCurrentShape(Component.java:9612)
at java.awt.Component.mixOnReshaping(Component.java:9668)
at java.awt.Component.reshape(Component.java:2042)
at java.awt.Component.setBounds(Component.java:2011)
at sun.applet.AppletPanel.setBounds(AppletPanel.java:928)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:839)
at java.awt.Container.layout(Container.java:1486)
at java.awt.Container.doLayout(Container.java:1475)
at java.awt.Container.validateTree(Container.java:1573)
at java.awt.Container.validate(Container.java:1545)
at java.awt.Window.dispatchEventImpl(Window.java:2553)
at java.awt.Component.dispatchEvent(Component.java:4287)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Exception in thread "main" java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at java.awt.Component.getNormalShape(Component.java:9526)
at java.awt.Component.calculateCurrentShape(Component.java:9561)
at java.awt.Component.applyCurrentShape(Component.java:9612)
at java.awt.Container.recursiveApplyCurrentShape(Container.java:3946)
at java.awt.Container.recursiveApplyCurrentShape(Container.java:3927)
at java.awt.Container.mixOnShowing(Container.java:3963)
at java.awt.Component.show(Component.java:1420)
at java.awt.Window.show(Window.java:899)
at java.awt.Component.show(Component.java:1456)
at java.awt.Component.setVisible(Component.java:1408)
at java.awt.Window.setVisible(Window.java:871)
at sun.applet.AppletViewer.<init>(AppletViewer.java:200)
at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:100)
at sun.applet.AppletViewer.parse(AppletViewer.java:1140)
at sun.applet.AppletViewer.parse(AppletViewer.java:1074)
at sun.applet.Main.run(Main.java:156)
at sun.applet.Main.main(Main.java:98)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<applet code="Width100" width="100%" height="100"></applet>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Applet can be run after fixing up "100%"->"800":
wget -O - http://www.newstin.cz/all-topics-startree.a | sed 's/"100%"/800/' >newstin.html; appletviewer ./newstin.html
java version "1.4.2_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
Java HotSpot(TM) Client VM (build 1.4.2_16-b05, mixed mode)
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_14-b03, mixed mode)
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 12.0-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux hp-xw8600-01.rhts.boston.redhat.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
URL http://www.newstin.cz/all-topics-startree.a does not work in Fedora 8 Firefox Java plugin.
Its Java is IcedTea - based on OpenJDK 1.7.0.0-0.19.b21.snapshot.
No errors messages from the plugin seen but standalone `appletviewer' also crashes - with Java exception messages.
It does not work even in JDK-1.4, 1.5, 1.6 and EA-1.7 downloaded from java.sun.com.
It was reported as working on SuSE Linux. Also the newstin.cz company probably has seen it working if they have it as a navigation on their website.
The web/applet is correct according to the HTML specification
http://www.w3.org/TR/html4/struct/objects.html#edef-APPLET
as WIDTH and HEIGHT are %Length and it has allowed the percentage ("100%") specification.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
appletviewer http://www.newstin.cz/all-topics-startree.a
or just
echo '<applet code="Width100" width="100%" height="100"></applet>' >Width100.html; appletviewer ./Width100.html
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Applet successfully run.
ACTUAL -
$ appletviewer http://www.newstin.cz/all-topics-startree.a
HTML parsing: incorrect value for width/height attribute
java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at sun.applet.AppletPanel.init(AppletPanel.java:216)
at sun.applet.AppletViewer.<init>(AppletViewer.java:195)
at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:100)
at sun.applet.AppletViewer.parse(AppletViewer.java:1140)
at sun.applet.AppletViewer.parse(AppletViewer.java:1074)
at sun.applet.Main.run(Main.java:156)
at sun.applet.Main.main(Main.java:98)
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at java.awt.Component.getNormalShape(Component.java:9526)
at java.awt.Component.calculateCurrentShape(Component.java:9561)
at java.awt.Component.applyCurrentShape(Component.java:9612)
at java.awt.Component.mixOnReshaping(Component.java:9668)
at java.awt.Component.reshape(Component.java:2042)
at java.awt.Component.setBounds(Component.java:2011)
at sun.applet.AppletPanel.setBounds(AppletPanel.java:928)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:839)
at java.awt.Container.layout(Container.java:1486)
at java.awt.Container.doLayout(Container.java:1475)
at java.awt.Container.validateTree(Container.java:1573)
at java.awt.Container.validate(Container.java:1545)
at java.awt.Window.dispatchEventImpl(Window.java:2553)
at java.awt.Component.dispatchEvent(Component.java:4287)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Exception in thread "main" java.lang.NumberFormatException: For input string: "100%"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:66)
at java.lang.Integer.parseInt(Integer.java:485)
at java.lang.Integer.valueOf(Integer.java:576)
at sun.applet.AppletViewerPanel.getWidth(AppletViewerPanel.java:134)
at java.awt.Component.getNormalShape(Component.java:9526)
at java.awt.Component.calculateCurrentShape(Component.java:9561)
at java.awt.Component.applyCurrentShape(Component.java:9612)
at java.awt.Container.recursiveApplyCurrentShape(Container.java:3946)
at java.awt.Container.recursiveApplyCurrentShape(Container.java:3927)
at java.awt.Container.mixOnShowing(Container.java:3963)
at java.awt.Component.show(Component.java:1420)
at java.awt.Window.show(Window.java:899)
at java.awt.Component.show(Component.java:1456)
at java.awt.Component.setVisible(Component.java:1408)
at java.awt.Window.setVisible(Window.java:871)
at sun.applet.AppletViewer.<init>(AppletViewer.java:200)
at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:100)
at sun.applet.AppletViewer.parse(AppletViewer.java:1140)
at sun.applet.AppletViewer.parse(AppletViewer.java:1074)
at sun.applet.Main.run(Main.java:156)
at sun.applet.Main.main(Main.java:98)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<applet code="Width100" width="100%" height="100"></applet>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Applet can be run after fixing up "100%"->"800":
wget -O - http://www.newstin.cz/all-topics-startree.a | sed 's/"100%"/800/' >newstin.html; appletviewer ./newstin.html
- duplicates
-
JDK-1237141 Netscape understands width=X%; appletviewer doesn't (throws exception)
-
- Closed
-