Skip to main content

Source code revision

svn

summary: Fix for https://glassfish.dev.java.net/issues/show_bug.cgi?id=5427 ("Newly created http-listener cannot be dynamically started with NPE in MapperListener"):
revision: 21604
author: jluehe
date: 2008-08-05 19:54:08 UTC (6 years)
message: Fix for https://glassfish.dev.java.net/issues/show_bug.cgi?id=5427
("Newly created http-listener cannot be dynamically started with NPE in MapperListener"):

- In WebContainer.addConnector(), retrieve the Mapper of the new Http listener
from the habitat (where it was added by a call to GrizzlyService.createNetworkProxy()),
and set it on the new Http listener *before* the Http listener is started.

- In GrizzlyService.removeNetworkProxy(), call newly added destroy() method
on GrizzlyProxy, which causes the proxy's Mapper to be purged from the
habitat (this is to prevent duplicate Mapper objects for the same port
should an Http listener be deleted and later recreated)

Tests run: QL
Change Path Actions
M trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/GrizzlyProxy.java
M trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/GrizzlyService.java
M trunk/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/NetworkProxy.java
M trunk/v3/web/web-glue/src/main/java/com/sun/enterprise/web/WebContainer.java
 
 
Close
loading
Please Confirm
Close