I have removed '$' from all the variable to be consistent. It's fixed now.

Thanks.

On Thu, Dec 4, 2014 at 11:35 AM, Nirmal Fernando <[email protected]>
wrote:

> Yes, I think we need to use the same variable name everywhere. At the
> moment, different places use different names.
>
> On Thu, Dec 4, 2014 at 11:33 AM, Lahiru Sandaruwan <[email protected]>
> wrote:
>
>> Seems it's still there, may be we need to change drools file as well.
>>
>> [2014-12-04 05:59:31,525] ERROR
>> {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} -  Cluster
>> monitor: Monitor failed.VMClusterMonitor [clusterId=mytomcat.tomcat.domain,
>> hasPrimary=false ]
>>
>> java.lang.RuntimeException: Unexpected global [$delegator]
>>
>> at
>> org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:588)
>>
>> at
>> org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:346)
>>
>> at
>> org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:110)
>>
>> at
>> org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor$1.run(VMClusterMonitor.java:233)
>>
>> On Thu, Dec 4, 2014 at 10:51 AM, Nirmal Fernando <[email protected]>
>> wrote:
>>
>>> I've fixed this in 33f5576737e4a3455edfe3cdc3be7a5ffafb834e
>>>
>>> On Thu, Dec 4, 2014 at 10:04 AM, Nirmal Fernando <[email protected]
>>> > wrote:
>>>
>>>> Hi,
>>>>
>>>> Currently facing following issue;
>>>>
>>>> [2014-12-04 09:30:42,426] ERROR
>>>> {org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor}
>>>> -  KubernetesServiceClusterMonitor: Monitor
>>>> failed.KubernetesServiceClusterMonitor for [
>>>> clusterId=mytomcat.tomcat.domain]
>>>>
>>>> java.lang.RuntimeException: Unexpected global [delegator]
>>>>
>>>> at
>>>> org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:588)
>>>>
>>>> at
>>>> org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:346)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:110)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.obsoleteCheck(KubernetesServiceClusterMonitor.java:149)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.access$000(KubernetesServiceClusterMonitor.java:42)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor$1.run(KubernetesServiceClusterMonitor.java:83)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.monitor(KubernetesServiceClusterMonitor.java:88)
>>>>
>>>> at
>>>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.run(KubernetesServiceClusterMonitor.java:63)
>>>>
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>>>>
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>
>>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>>>>
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>>>>
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>>
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>>
>>>> at java.lang.Thread.run(Thread.java:695)
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: [email protected] blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: [email protected] blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to