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 252426 - NPE when profiler port already in use
Summary: NPE when profiler port already in use
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 16:57 UTC by Jiri Sedlacek
Modified: 2015-05-18 01:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2015-05-15 16:57:19 UTC
See the related bugdb. From the console:

   Profiler Agent Error: Exception when trying to establish connection with client: 
   java.net.BindException: Address already in use 

   Uncaught exception 
   java.lang.NullPointerException 
      at org.netbeans.lib.profiler.server.ProfilerServer.closeConnection(ProfilerServer.java:1232) 
      at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1774) 
      at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:692)
Comment 1 Jiri Sedlacek 2015-05-15 17:06:17 UTC
Do not throw NPE. Provide a hint for java.net.BindException: Address already in use.

Fixed by http://hg.netbeans.org/profiler-main/rev/cba224213830.
Comment 2 Quality Engineering 2015-05-18 01:07:27 UTC
Integrated into 'main-silver', will be available in build *201505180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cba224213830
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #252426 - do not throw NPE when closing a not fully initialized connection, provide a hint for BindException