stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nirmal Fernando (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (STRATOS-605) Validation for wrong Autoscale Policy given in cartridge subscription in CLI tool
Date Fri, 11 Apr 2014 12:54:15 GMT

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

Nirmal Fernando reassigned STRATOS-605:
---------------------------------------

    Assignee: Pradeep Fernando  (was: Nirmal Fernando)

> Validation for wrong Autoscale Policy given in cartridge subscription in CLI tool
> ---------------------------------------------------------------------------------
>
>                 Key: STRATOS-605
>                 URL: https://issues.apache.org/jira/browse/STRATOS-605
>             Project: Stratos
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 4.0.0 RC1
>         Environment: EC2
>            Reporter: Pubudu Chinthaka Gunatilaka
>            Assignee: Pradeep Fernando
>
> When trying to subscribe to a cartridge through CLI, for a wrong autoscale policy, cartridge
get subscribed. An instance get spawned and  after sometime an exception is thrown at the
back end.
> Command Used:
> subscribe-cartridge mysql mypub45 -dp economyDeploymentPolicy -ap simplfdeAutoscalePolicykk
> Reply Message:
> You have successfully subscribed to mysql cartridge with alias mypub45.
> Please map the host name "mypub45.apachestratos.org" to LB IP
> Exception in Back end:
> TID: [0] [STRATOS] [2014-04-11 09:16:06,325] ERROR {org.apache.stratos.autoscaler.monitor.ClusterMonitor}
-  Cluster monitor: Monitor failed.ClusterMonitor [clusterId=mypub45.mysql.domain, serviceId=mysql,
deploymentPolicy=Deployment Policy [id]economyDeploymentPolicy [partitions] [org.apache.stratos.cloud.controller.stub.deployment.partition.Partition@103cb01a],
autoscalePolicy=null, lbReferenceType=default.load.balancer] {org.apache.stratos.autoscaler.monitor.ClusterMonitor}
> [Error: null pointer: autoscalePolicy.getLoadThresholds()]
> [Near : {... autoscalePolicy.getLoadThresho ....}]
>              ^
> [Line: 1, Column: 1]
> 	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:431)
> 	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:143)
> 	at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159)
> 	at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115)
> 	at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
> 	at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123)
> 	at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119)
> 	at org.mvel2.MVEL.executeExpression(MVEL.java:942)
> 	at org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:111)
> 	at org.drools.reteoo.FromNode.modifyLeftTuple(FromNode.java:259)
> 	at org.drools.reteoo.LeftTupleSource.doModifyLeftTuple(LeftTupleSource.java:304)
> 	at org.drools.reteoo.LeftTupleSource.modifyLeftTuple(LeftTupleSource.java:278)
> 	at org.drools.reteoo.SingleLeftTupleSinkAdapter.doPropagateModifyLeftTuple(SingleLeftTupleSinkAdapter.java:205)
> 	at org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateModifyObject(SingleLeftTupleSinkAdapter.java:235)
> 	at org.drools.reteoo.LeftInputAdapterNode.modifyObject(LeftInputAdapterNode.java:170)
> 	at org.drools.reteoo.SingleObjectSinkAdapter.propagateModifyObject(SingleObjectSinkAdapter.java:68)
> 	at org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:314)
> 	at org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:265)
> 	at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:483)
> 	at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:976)
> 	at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:949)
> 	at org.drools.impl.StatefulKnowledgeSessionImpl.update(StatefulKnowledgeSessionImpl.java:284)
> 	at org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluateScaleCheck(AutoscalerRuleEvaluator.java:101)
> 	at org.apache.stratos.autoscaler.monitor.ClusterMonitor.monitor(ClusterMonitor.java:121)
> 	at org.apache.stratos.autoscaler.monitor.ClusterMonitor.run(ClusterMonitor.java:72)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NullPointerException
> 	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:397)
> 	... 25 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message