Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.4
-
None
-
Glassfish v2.1/v2ur2, Windows Vista x64, Windows Server 2003, JDK 1.6.0_11
-
Novice
Description
On Glassfish, DynamicClientFactory.setupClasspath sometimes throws NullPointerExcpetion.
I catch the exception happened position at line 566:
565: try
{ 566: file = new File(url.toURI().getPath()); 567: }catch (URISyntaxException urise)
{ 568: file = new File(url.getPath()); 569: }The url.toURI().getPath() returns null when the path is undefined.
The url with NPE will appear TWICE, one throws NPE, the other passes.
Because the reason aboved, I modify code as belowed:
565: try
{ 566: file = new File(url.toURI().getPath()); 567: }catch (URISyntaxException urise)
{ 568: file = new File(url.getPath()); 569: }catch (NullPointerException npe)
{ 570: continue; // undefined path. 571: }Sincerely,
Masu
2009/04/17