This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 5590

Summary: If you set service port number greated than FFFFh, exception is throwed.
Product: javaee Reporter: Marek Fukala <mfukala>
Component: CodeAssignee: Marek Fukala <mfukala>
Status: CLOSED INVALID    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marek Fukala 2000-01-29 00:43:08 UTC
For example type to internal browser adress field following:

http://localhost:80888880/somethink

Following exception should be throwed:

java.lang.IllegalArgumentException: port out range:80888880
        at java.net.Socket.<init>(Socket.java:253)
        at java.net.Socket.<init>(Socket.java:100)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
        at sun.net.www.http.HttpClient.New(HttpClient.java:289)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:379)
        at ice.iblite.BrowserURLLoader.connect(ice/iblite/BrowserURLLoader)
        at ice.iblite.BrowserURLLoader.getInputStream(ice/iblite/BrowserURLLoade
r)

        at ice.iblite.BrowserURLLoader.getContentType(ice/iblite/BrowserURLLoade
r)
        at ice.iblite.ProcessURL.run(ice/iblite/ProcessURL)
        at java.lang.Thread.run(Thread.java:484)

[Hanz] We can not catch this Exception...
Comment 1 Marek Grummich 2000-07-25 09:23:59 UTC
Priority is changed to P4 (normal).