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 256171 - Address already in use when deploying the project again
Summary: Address already in use when deploying the project again
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-26 00:38 UTC by arungupta
Modified: 2015-12-15 07:43 UTC (History)
1 user (show)

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 arungupta 2015-10-26 00:38:30 UTC
Tried to run a simple Web Application using NetBeans 8.0.2 and 8.1 RC2 and use WildFly 9.0.0.Final application server.

The first run seems to work fine but subsequent run gives the error:

Caused by: java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:433)
	at sun.nio.ch.Net.bind(Net.java:425)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createServerSocket(DefaultSocketFactoryImpl.java:83)
	at com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:161)
	... 16 more

Plugin should detect the error and not try to run the application server again.

Seems like I may not be able to showcase this during JavaOne session coming up in another 20 mins.
Comment 1 ehsavoie 2015-12-15 07:43:00 UTC
This seems related to CORBA ( com.sun.corba) not sure how the plugin will know each port used by the server that might be taken.