查看完整版本 : Java exception debug skill

linuxfedora 2018-2-21 12:33

The java applet we developed and run on I.E throw an exception on some PC (But not my development PC) with
java.lang.ArrayIndexOutOfBoundsException: 8
at viewer.b.aS.g(Unknown Source)
at viewer.b.aS.i(Unknown Source)
at v.B.run(Unknown Source)

Can anyone tell me how to debug this case? I cannot know where it happened, as the class name is changed and without line and source code.

xianrenb 2018-2-21 13:11

[quote]原帖由 [i]linuxfedora[/i] 於 2018-2-21 12:33 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=475645587&ptid=27259790][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
The java applet we developed and run on I.E throw an exception on some PC (But not my development PC) with
java.lang.ArrayIndexOutOfBoundsException: 8
at viewer.b.aS.g(Unknown Source)
at viewer.b.a ... [/quote]

Java applet 不是應該已經絕跡了嗎?
或者是時候考慮直接轉用 JavaScript + HTML5 。

linuxfedora 2018-2-21 13:31

[quote]原帖由 [i]xianrenb[/i] 於 2018-2-21 01:11 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=475647559&ptid=27259790][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]


Java applet 不是應該已經絕跡了嗎?
或者是時候考慮直接轉用 JavaScript + HTML5 。 [/quote]

It is the existing program in the company and running on customer PC, i have to maintain it...Cannot change easily.

McLoneV 2018-2-22 05:04

Do you have that source code?  If yes, you can change it from applet to non-applet code to test.

sinson123 2018-2-22 20:31

睇返個錯誤佢話你要求嘅array索引,超出咗array嘅範圍

你要睇返行到viewer.b.aS.g(Unknown Source)第8行,佢個array內容,係咪你預期,唔係的話你要搵返出點解唔係。

通常係development PC上有,runtime pc上未必有

tom.care

*** 作者被禁止或刪除 內容自動屏蔽 ***
頁: [1]
查看完整版本: Java exception debug skill