[ 
https://issues.apache.org/jira/browse/STRATOS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anuruddha Lanka Liyanarachchi updated STRATOS-1109:
---------------------------------------------------
    Fix Version/s: 4.1.0 RC1

> Autoscaler rule throws a NPE when dependency scaling sample is running.
> -----------------------------------------------------------------------
>
>                 Key: STRATOS-1109
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1109
>             Project: Stratos
>          Issue Type: Bug
>          Components: Autoscaler
>    Affects Versions: 4.1.0 Alpha
>            Reporter: Lahiru Sandaruwan
>            Assignee: Lahiru Sandaruwan
>             Fix For: 4.1.0 Beta, 4.1.0 RC1
>
>
> Sample at "samples/dependency-scaling/sample-groups/mock" and the error is,
> [2015-01-23 11:14:02,305] DEBUG {org.apache.stratos.autoscaler.rule.RuleLog} 
> -  [min-check] [network-partition] openstack_R1 [cluster-instance] mygroup6-1 
> [cluster] phpgroup6.php.domain Non terminated member count: 0
> [2015-01-23 11:14:02,306] DEBUG {org.apache.stratos.autoscaler.rule.RuleLog} 
> -  [min-check] [network-partition] openstack_R1 [cluster-instance] 
> app_group_v2-1 [cluster] mytomcat.tomcat.domain Minimum member count: 2
> [2015-01-23 11:14:02,306] DEBUG {org.apache.stratos.autoscaler.rule.RuleLog} 
> -  [min-check] [network-partition] openstack_R1 [cluster-instance] mygroup6-1 
> [cluster] phpgroup6.php.domain Minimum member count: 1
> [2015-01-23 11:14:02,309] ERROR 
> {org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor} -  Cluster 
> monitor: Monitor failed.ClusterMonitor [clusterId=phpgroup6.php.domain, 
> hasPrimary=false ]
> Exception executing consequence for rule "Minimum Rule" in 
> org.apache.stratos.autoscaler.rule: java.lang.NullPointerException
>       at 
> org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
>       at 
> org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1297)
>       at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1221)
>       at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1456)
>       at 
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:710)
>       at 
> org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:674)
>       at 
> org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:230)
>       at 
> org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:68)
>       at 
> org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor$1.run(ClusterMonitor.java:526)
>       at 
> org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor.monitor(ClusterMonitor.java:581)
>       at 
> org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor.run(ClusterMonitor.java:432)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
>       at 
> org.drools.reteoo.RuleTerminalNode$SortDeclarations.compare(RuleTerminalNode.java:444)
>       at 
> org.drools.reteoo.RuleTerminalNode$SortDeclarations.compare(RuleTerminalNode.java:437)
>       at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
>       at java.util.TimSort.sort(TimSort.java:189)
>       at java.util.TimSort.sort(TimSort.java:173)
>       at java.util.Arrays.sort(Arrays.java:659)
>       at 
> org.drools.reteoo.RuleTerminalNode.getDeclarations(RuleTerminalNode.java:391)
>       at 
> org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:84)
>       at 
> org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287)
>       ... 16 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to