You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Imesh Gunaratne <im...@apache.org> on 2015/02/17 19:32:49 UTC

[Discuss] NPE in ParentComponentMonitor

Hi Devs,

I see the below NPE:

[2015-02-17 23:59:32,774] ERROR
{org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
-  Failed to retrieve topology event message
java.lang.NullPointerException
at
org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor.allDependentTerminated(ParentComponentMonitor.java:499)
at
org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor.onChildTerminatedEvent(ParentComponentMonitor.java:444)
at
org.apache.stratos.autoscaler.monitor.component.GroupMonitor.onTerminationOfInstance(GroupMonitor.java:408)
at
org.apache.stratos.autoscaler.monitor.component.GroupMonitor.onChildStatusEvent(GroupMonitor.java:391)
at
org.apache.stratos.autoscaler.monitor.events.builder.MonitorStatusEventBuilder.notifyParent(MonitorStatusEventBuilder.java:85)
at
org.apache.stratos.autoscaler.monitor.events.builder.MonitorStatusEventBuilder.handleClusterStatusEvent(MonitorStatusEventBuilder.java:40)
at
org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor.notifyParentMonitor(ClusterMonitor.java:210)
at
org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver$8.onEvent(AutoscalerTopologyEventReceiver.java:300)
at
org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
at java.util.Observable.notifyObservers(Observable.java:159)


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: [Discuss] NPE in ParentComponentMonitor

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Imesh,

Seems like monitor is not available for the given cluster ID/group alias. I
guess some monitors in the application are not create correctly.

Thanks,
Gayan

On Wed, Feb 18, 2015 at 12:02 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Devs,
>
> I see the below NPE:
>
> [2015-02-17 23:59:32,774] ERROR
> {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
> -  Failed to retrieve topology event message
> java.lang.NullPointerException
> at
> org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor.allDependentTerminated(ParentComponentMonitor.java:499)
> at
> org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor.onChildTerminatedEvent(ParentComponentMonitor.java:444)
> at
> org.apache.stratos.autoscaler.monitor.component.GroupMonitor.onTerminationOfInstance(GroupMonitor.java:408)
> at
> org.apache.stratos.autoscaler.monitor.component.GroupMonitor.onChildStatusEvent(GroupMonitor.java:391)
> at
> org.apache.stratos.autoscaler.monitor.events.builder.MonitorStatusEventBuilder.notifyParent(MonitorStatusEventBuilder.java:85)
> at
> org.apache.stratos.autoscaler.monitor.events.builder.MonitorStatusEventBuilder.handleClusterStatusEvent(MonitorStatusEventBuilder.java:40)
> at
> org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor.notifyParentMonitor(ClusterMonitor.java:210)
> at
> org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver$8.onEvent(AutoscalerTopologyEventReceiver.java:300)
> at
> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> at java.util.Observable.notifyObservers(Observable.java:159)
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985