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 7004 - Open File Server throws IllegalArgumentException: Port out of range
Summary: Open File Server throws IllegalArgumentException: Port out of range
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: Other Other
: P3 normal (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-07 16:03 UTC by dmladek
Modified: 2003-07-01 15:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Forte.log with Exception thrown by File Server (3.01 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2000-07-07 16:03:23 UTC
Build:1052ce
===============
I tried to change the port of File Server on which it runs.
The default value: 7318 I replaced to: 73125 (it was my misstake), but it
happend. I didn't get any warnings about this value like: "this value is out of
range", and the File Server was still running (true).

But after restart IDE and its start I received IllegalArgumentExceptions: Port
out of range:73125.
I don't think it's nice behaviour. For more details about this Exceptions see
attached file.
Comment 1 dmladek 2000-07-07 16:05:59 UTC
Created attachment 24 [details]
Forte.log with Exception thrown by File Server
Comment 2 _ ttran 2000-07-26 08:29:59 UTC
the port number must be in the range of <1, 2^16-1>,
must not be occupied already by another process,
additionally on UNIX only root can open port lower
than 1024.  All of this is TCP/IP constraints.
Comment 3 dmladek 2000-07-31 10:30:59 UTC
Hi Trung, you'right. But Your description should appear after you enter invalid
value for port. And noexception has to be thrown during next start of IDE.
------------------
So solution which I will welcome is:
Don't allow a user enter the invalid value, pls, check this value and popup an
error Dialog with your nice description below.
------------------
P.S.
Noone has to run the IDE from console (I mean runs the IDE from M$win where you
can run the IDE without console output).
Comment 4 Tomas Pavek 2000-08-08 10:08:59 UTC
Fixed in the open source trunk.
Comment 5 dmladek 2001-02-06 19:23:59 UTC
Marked as Verified
OK, it's too old and the problem with new builds dismised
Comment 6 Quality Engineering 2003-07-01 15:31:15 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.