Closed Bug 98107 Opened 23 years ago Closed 21 years ago

This page returns "java.lang.NumberFormatException 660099" error

Categories

(Core Graveyard :: Java: OJI, defect, P3)

PowerPC
Mac System 9.x
defect

Tracking

(Not tracked)

RESOLVED WONTFIX
mozilla1.0

People

(Reporter: benjamin, Assigned: beard)

References

()

Details

(Keywords: platform-parity)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.3+) Gecko/20010903
BuildID:    2001090305

The error "java.lang.NumberFormatException 660099" is related to the stock
graphic above "Option sur action" which isn't displayed in Moz. MacOS 8.6 / MRJ
2.2.5. WFM in NS4.7.

Reproducible: Always
Confirming on 2001083103 Win2k. OS/Platform=All. The error message appears in
the Java console:

java.lang.NumberFormatException:  660099
 at java.lang.Integer.parseInt(Unknown Source)
 at Outils.convertColor(Outils.java:745)
 at IntradGraph.init(IntradGraph.java:57)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac System 8.6 → All
Hardware: Macintosh → All
Reproduced on Linux and jdk1.3.1 too.
Moving to OJI.
Assignee: ashuk → edburns
Component: Java APIs for DOM → OJI
QA Contact: avm → pmac
The reason of this bug is invalid parameter handling in applet code

Applet tag on this page contain PARAM :
<param NAME=triBasColor  VALUE=" 660099">
and value of this param begins with space. In applet code this
value parsed via Integer.parseInt method. But it is illegal, because exception
thrown if(specification):
"..Any character of the string is not a digit of the specified radix, except
that the first character may be a minus sign '-' ('\u002d') provided that the
string is longer than length 1. "

So i suggest avoid spaces from parameter values in HTML or correct applet code
to trim spaces before parsing.

Internal Java of NS4.x and MSIE always performs trim of parameters so this
applet work in these browsers. 

Think that we may close this bug as INVALID
Same error here:

http://www.pch.gc.ca/english.htm
Do not see any errors at http://www.pch.gc.ca/english.htm
Could you please provide console output ?
An exception occurred:
java.lang.NumberFormatException: _self
	at java.lang.Integer.parseInt(Compiled Code)
	at java.lang.Integer.parseInt(Integer.java)
	at rp.get(Compiled Code)
	at aTicker.readFile(Compiled Code)
	at aTicker.init(aTicker.java)
	at 
com.apple.mrj.JManager.JMAppletViewer_OLD.doAppletInit(JMAppletViewerOld.java)
	at 
com.apple.mrj.JManager.JMAppletViewer_OLD.setState(JMAppletViewerOld.java)
	at com.apple.mrj.JManager.JMViewerEvent.post(JMAppletViewerOld.java)
	at com.apple.mrj.JManager.AVDispatcherThread.run(JMAppletViewerOld.java)
An exception occurred:
java.lang.NumberFormatException: _self
	at java.lang.Integer.parseInt(Compiled Code)
	at java.lang.Integer.parseInt(Compiled Code)
	at rp.get(Compiled Code)
	at aTicker.readFile(Compiled Code)
	at aTicker.init(aTicker.java)
	at 
com.apple.mrj.JManager.JMAppletViewer_OLD.doAppletInit(JMAppletViewerOld.java)
	at 
com.apple.mrj.JManager.JMAppletViewer_OLD.setState(JMAppletViewerOld.java)
	at com.apple.mrj.JManager.JMViewerEvent.post(JMAppletViewerOld.java)
	at com.apple.mrj.JManager.AVDispatcherThread.run(JMAppletViewerOld.java)

with
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.3+) Gecko/20010903
BuildID:    2001090305
I see this problem.
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [fix in hand]
Target Milestone: --- → mozilla0.9.4
Comment on attachment 49252 [details] [diff] [review]
cvs diff -u of fix for this bug, first iteration.

r=peterl
Attachment #49252 - Flags: review+
Ed, is this a change you think we might need on the 0.9.4 branch for the next 
netscape release?  per PDT
lchiang.  This is a low risk, mild benefit change.  I don't know how many apps 
out there have PARAM tags with values that contain trailing or leading spaces.  
My take is that we should try to get it in.

I'm looking for sr for the trunk now.
Comment on attachment 49252 [details] [diff] [review]
cvs diff -u of fix for this bug, first iteration.

sr=rpotts@netscape.com
Attachment #49252 - Flags: superreview+
0.9.4 is out the door
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified on trunk build (2001-10-05-05-0.9.4). However, on the branch build,
(2001-10-05-05-0.9.4) the stock graph on the upper left still not load yet.
Keywords: nsbranch
I meant the trunk build (2001-10-03-03-trunk)
The stock graph on the upper left is loading fine on windows 98 and Linux redhat
6.2 except Mac OS 9.2 (Commercialt trunk: 2001-10-25-08-trunk).
However, it still not able to load it on all platforms (commercial branch:
2001-10-22-18-0.9.4).

The stock graph on the upper left is loading fine on windows 98 both commercial
trunk(2002-01-30-08-trunk)and branch build (2002-01-30-08-0.9.8).
It also loads fine on Mac OS 10.1 (commercial trunk: 2002-01-30-08-trunk), 
but not on OS 9.2(commercial trunk: 2002-01-30-08-trunk).
Therefore,I'm reopening this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Would it be cleaner to mark this bug "Mac System 9.x" only?
change the OS to Mac System 9.x only since this bug is currently happened on Mac 
os 9.2.
       
OS: All → Mac System 9.x
The Target Milestone (0.9.5) is long passed.  This bug should be retargeted.
There is no active patch for the remaining problem, so the Status Whiteboard
should be updated.  The keyword 'pp' should be added since this is now specific
to one platform.
Updated milestone and whiteboard status. Added pp keyword.

Ed does not work on OJI anymore
 -> Back to Joe

Assignee: edburns → joe.chou
Status: REOPENED → NEW
Keywords: pp
Whiteboard: [fix in hand]
Target Milestone: mozilla0.9.5 → mozilla1.0
Chris Petersen is a new QA contact for oji component. His email is:
petersen@netscape.com
Assignee: joe.chou → petersen
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → beard
QA Contact: pmac → petersen
bug only happened on mac os 9, which is no longer supported. -> WONTFIX
Status: NEW → RESOLVED
Closed: 23 years ago21 years ago
Hardware: All → Macintosh
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: