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 12291

Summary: NumberFormatException: {port}
Product: obsolete Reporter: _ gtzabari <gtzabari>
Component: rmiAssignee: issues@obsolete <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: issues
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: OS/2   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2001-05-21 07:45:33 UTC
I cannot execute any Java file. When I use EXECUTE I get:

java.lang.NumberFormatException: {port}
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at java.lang.RuntimeException.<init>(RuntimeException.java:49)
        at 
java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:4
5)
        at 
java.lang.NumberFormatException.<init>(NumberFormatException.java:45)
        at java.lang.Integer.parseInt(Integer.java:406)
        at java.lang.Integer.parseInt(Integer.java:455)
        at 
org.netbeans.modules.rmi.UnicastExportClass.main(UnicastExportClass.java:
72)
Exception in thread "main"
Comment 1 _ gtzabari 2001-05-21 07:45:59 UTC
forgot to mention:

dev build 192
Comment 2 _ gtzabari 2001-05-21 07:52:53 UTC
ummm, it seems build 192 is _completely_ broken.. Everytime I close 
Netbeans and restart it I get a different error but the end-result is the 
same: I cannot run any of my programs (although they do compile).

Gili
Comment 3 Martin Ryzl 2001-05-21 15:47:24 UTC
Check what is your default executor - Project | Settings | Java Sources | 
Default Executor - it should be External Executor. If not, change it to the 
External Executor.
Comment 4 Martin Ryzl 2001-05-21 15:50:10 UTC
And one more comment - if a fresh installation have anything else than 
ExternalExecutor as the default executor, create a bug in 
http://java.netbeans.org/bugs.html.
Comment 5 Martin Ryzl 2001-05-21 15:53:16 UTC
Changing priority to P4 - the executor should be used only with RMIDataObject 
and it should notify the user if it is not.
Comment 6 _ gtzabari 2001-05-21 19:30:03 UTC
This is a fresh installation. I wiped out all directories (including the 
home directory) before running this. It must have been using the default 
values.

I think, though, this bug has _nothing_ to do with RMI, or any other 
plugin or core component. I think it's a bug in openAPI because there 
isn't one single error you get. Read my 3rd comment: the error changes 
everytime you restart netbeans and try running your app. The 
configuration files are being corrupted somehow by Netbeans itself.
Comment 7 Martin Ryzl 2001-05-24 09:38:59 UTC
fixed in main trunk
warning message is displayed instead of exception and default value is used
Comment 8 Adam Sotona 2001-06-27 08:37:51 UTC
reopening for Pilsen_fcs
Comment 9 Adam Sotona 2001-06-27 08:39:22 UTC
fixed in Pilsen_fcs