dev@glassfish.java.net

Re: NPEs during create-cluster

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Mon, 19 Jul 2010 14:51:11 -0400

When I added it and rebuilt the whole workspace ('mvn clean install'
from v3 dir) then everything worked. Byron says that isn't needed, so
maybe it's just my karma (or an update somewhere else), but it worked
for me.

Try updating your workspace and do a full clean/build. The xml isn't
showing up in the config file, which is expected if you're only using
the defaults. But the default values are available in the code now.

Cheers,
Bobby

On Jul 19, 2010, at 2:06 PM, Mahesh Kannan wrote:

> No, Adding @NotNull to Config.getGroupManagementService() didn't help.
>
> I am currently adding <group-management-service/> to the domain.xml
> manually every time I restart the domain / cluster :(
>
> Thanks,
> --Mahesh
>
> On 07/19/2010 08:04 AM, Joseph Fialli wrote:
>>
>> All,
>> Something changed recently with defaulting of values in domain.xml.
>> group-management-service and its children are defaulted and the
>> defaulting just stopped working recently.
>> I did not learn of this till late Friday from Mahesh.
>>
>> I have written all I know about this issue in following gf issue: https://glassfish.dev.java.net/issues/show_bug.cgi?id=12719
>> I have been working with a glassfish v3.1 workspace that was a week
>> old and it is working fine with GMS.
>> A recent change with the processing of defaulted values in
>> domain.xml is causing this issue.
>> The group-management-service config has not changed since MS2. I am
>> willing to work with
>> someone in admin that is more experienced in what needs to be done
>> in in admin/config-api
>> for src/main/java/com/sun/enterprise/config/serverbeans/Config.java
>> and
>> src/main/java/com/sun/enterprise/config/serverbeans/
>> GroupManagementService.java.
>>
>> I had Mahesh add @NotNull on Config.getGroupManagementService() and
>> I am guessing that did not
>> address the issue.
>>
>> -Joe
>>
>> On 7/19/10 1:25 AM, Byron Nevins wrote:
>>>
>>> Yes -- I see NPEs from GMS all the time.
>>>
>>>
>>> On 7/18/2010 9:45 PM, Yamini K B wrote:
>>>>
>>>> Hi,
>>>>
>>>> Creating cluster throws a bunch of NPEs. Is anyone else seeing
>>>> this?
>>>>
>>>> -Yamini
>>>>
>>>> [#|2010-07-19T10:11:59.350+0530|CONFIG|glassfish3.1|
>>>> javax.org.glassfish.gms.org.glassfish.gms|
>>>> _ThreadID=77;_ThreadName=pool-14-thread-1;|Inside
>>>> GMSService.postConstruct :|#]
>>>>
>>>> [#|2010-07-19T10:11:59.357+0530|CONFIG|glassfish3.1|
>>>> javax.org.glassfish.gms.org.glassfish.gms|
>>>> _ThreadID=77;_ThreadName=pool-14-thread-1;|clusterName=cl1
>>>> clusterConfig
>>>> =GlassFishConfigBean.com.sun.enterprise.config.serverbeans.Config|
>>>> #]
>>>>
>>>> [#|2010-07-19T10:11:59.358+0530|WARNING|glassfish3.1|
>>>> javax.org.glassfish.gms.org.glassfish.gms|
>>>> _ThreadID=77;_ThreadName=pool-14-thread-1;|An exception occurred
>>>> while processing GMS configuration properties: {0}
>>>> java.lang.NullPointerException
>>>> at
>>>> org
>>>> .glassfish
>>>> .gms.GMSAdapterImpl.readGMSConfigProps(GMSAdapterImpl.java:226)
>>>> at
>>>> org
>>>> .glassfish.gms.GMSAdapterImpl.initializeGMS(GMSAdapterImpl.java:
>>>> 394)
>>>> at
>>>> org.glassfish.gms.GMSAdapterImpl.initialize(GMSAdapterImpl.java:
>>>> 190)
>>>> at
>>>> org
>>>> .glassfish
>>>> .gms
>>>> .bootstrap.GMSAdapterService.loadModule(GMSAdapterService.java:191)
>>>> at
>>>> org
>>>> .glassfish
>>>> .gms
>>>> .bootstrap.GMSAdapterService.checkCluster(GMSAdapterService.java:
>>>> 171)
>>>> at org.glassfish.gms.bootstrap.GMSAdapterService.access
>>>> $100(GMSAdapterService.java:71)
>>>> at org.glassfish.gms.bootstrap.GMSAdapterService
>>>> $1.changed(GMSAdapterService.java:218)
>>>> at
>>>> org
>>>> .jvnet
>>>> .hk2.config.ConfigSupport.sortAndDispatch(ConfigSupport.java:273)
>>>> at
>>>> org
>>>> .glassfish
>>>> .gms.bootstrap.GMSAdapterService.changed(GMSAdapterService.java:
>>>> 210)
>>>> at org.jvnet.hk2.config.Transactions
>>>> $ConfigListenerJob.process(Transactions.java:367)
>>>> at org.jvnet.hk2.config.Transactions
>>>> $ConfigListenerJob.process(Transactions.java:357)
>>>> at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier
>>>> $1$1.call(Transactions.java:250)
>>>> at org.jvnet.hk2.config.Transactions$ConfigListenerNotifier
>>>> $1$1.call(Transactions.java:248)
>>>> at java.util.concurrent.FutureTask
>>>> $Sync.innerRun(FutureTask.java:303)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>> at java.util.concurrent.ThreadPoolExecutor
>>>> $Worker.runTask(ThreadPoolExecutor.java:886)
>>>> at java.util.concurrent.ThreadPoolExecutor
>>>> $Worker.run(ThreadPoolExecutor.java:908)
>>>> at java.lang.Thread.run(Thread.java:619)
>>>> |#]
>>>>
>>>> --------------------------------------------------------------------- To
>>>> unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net For
>>>> additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>> --
>>> Byron Nevins - Oracle Corporation
>>> Home: 650-359-1290
>>> Cell: 650-784-4123
>>> Sierra: 209-295-2188
>>>
>>> --------------------------------------------------------------------- To
>>> unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net For
>>> additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>