dev@glassfish.java.net

Re: BLOCKING: NPE in GrizzlyService.java

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Thu, 30 Sep 2010 13:12:21 -0400

Bug filed:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=13718

Am trying a fix for the issue, but need to figure out these transaction failures I've introduced.....

On Sep 29, 2010, at 3:52 PM, Bobby Bissett wrote:

> Howdy,
>
> In GrizzlyService#postConstruct(), there's this:
>
> public void postConstruct() {
> NetworkConfig networkConfig = config.getNetworkConfig();
> configListener = new DynamicConfigListener();
> ObservableBean bean = (ObservableBean) ConfigSupport.getImpl(networkConfig.getNetworkListeners());
> // etc
> }
>
> But in clustered instances after an upgrade, there is no network-config element and so the networkConfig object is null. Thus: NPE. To be more specific, there is no <network-config> object under /domain/configs/config[@name='mycluster-config'] but there is one under /domain/configs/config[@name='server-config']
>
> My question: is there always supposed to be a network-config object? IOW, is this a bug during upgrade or a bug during runtime?
>
> Thanks,
> Bobby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>