You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Lahiru Sandaruwan (JIRA)" <ji...@apache.org> on 2014/01/07 03:09:53 UTC

[jira] [Updated] (STRATOS-335) Cannot Install stratos - Autosclaer.TestRulesPackaged

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

Lahiru Sandaruwan updated STRATOS-335:
--------------------------------------

    Affects Version/s: 4.0.0 M5

> Cannot Install stratos - Autosclaer.TestRulesPackaged
> -----------------------------------------------------
>
>                 Key: STRATOS-335
>                 URL: https://issues.apache.org/jira/browse/STRATOS-335
>             Project: Stratos
>          Issue Type: Bug
>          Components: Autoscaler
>         Environment: Ubuntu 12.04
>            Reporter: Dário Fernando Rodrigues Nascimento
>             Fix For: 4.0.0 M6
>
>
> Running org.apache.stratos.autoscaler.TestRulesPackaged
> 2014-01-06 22:15:22,640 ERROR TestRulesPackaged [main] 
> Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF predicted value: " + rifPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 92, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF predicted value: " + rifPredictedValue)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF average limit: " + rifAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 93, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF average limit: " + rifAverageLimit)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC predicted value: " + mcPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 95, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC predicted value: " + mcPredictedValue)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC average limit: " + mcAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 96, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC average limit: " + mcAverageLimit)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA predicted value: " + laPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 98, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA predicted value: " + laPredictedValue)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA Average limit: " + laAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 99, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA Average limit: " + laAverageLimit)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-up factor: " + $delegator.SCALE_UP_FACTOR):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 101, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-up factor: " + $delegator.SCALE_UP_FACTOR)'Unable to Analyse Expression log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-up action: " + scaleUpAction):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 102, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-up] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-up action: " + scaleUpAction)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF predicted value: " + rifPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 149, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF predicted value: " + rifPredictedValue)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF average limit: " + rifAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 150, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " RIF average limit: " + rifAverageLimit)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC predicted value: " + mcPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 152, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC predicted value: " + mcPredictedValue)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC average limit: " + mcAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 153, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " MC average limit: " + mcAverageLimit)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA predicted value: " + laPredictedValue):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 155, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA predicted value: " + laPredictedValue)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA Average limit: " + laAverageLimit):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 156, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " LA Average limit: " + laAverageLimit)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-down factor: " + $delegator.SCALE_DOWN_FACTOR):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 158, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-down factor: " + $delegator.SCALE_DOWN_FACTOR)'Unable to Analyse Expression log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-down action: " + scaleDownAction):
> [Error: unable to resolve method using strict-mode: java.lang.Object.partition()]
> [Near : {... + " [partition] " + partition.getId() + " [cluster ....}]
>                                  ^
> [Line: 159, Column: 8]Unable to build expression for 'eval':null 'log.debug("[scale-down] [network-partition] " + $networkPartitionContext.getId() + " [partition] " + partition.getId() + " [cluster] " + clusterId + " Scale-down action: " + scaleDownAction)'
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.467 sec <<< FAILURE!
> testScalingDroolsFile(org.apache.stratos.autoscaler.TestRulesPackaged)  Time elapsed: 1.221 sec  <<< ERROR!
> java.lang.IllegalArgumentException: Could not parse drools file: ../../products/autoscaler/modules/distribution/src/main/conf/scaling.drl
> 	at org.apache.stratos.autoscaler.TestRulesPackaged.parseDroolsFile(TestRulesPackaged.java:63)
> 	at org.apache.stratos.autoscaler.TestRulesPackaged.testScalingDroolsFile(TestRulesPackaged.java:47)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Running org.apache.stratos.autoscaler.deployment.policy.PartitionDeployerTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.52 sec
> Running org.apache.stratos.autoscaler.deployment.policy.DeploymentPolicyDeployerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
> Results :
> Tests in error: 
>   testScalingDroolsFile(org.apache.stratos.autoscaler.TestRulesPackaged): Could not parse drools file: ../../products/autoscaler/modules/distribution/src/main/conf/scaling.drl
> Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Apache Stratos (incubating) Project ............... SUCCESS [6.970s]
> ..............<All between are SUCCESS>...................................
> [INFO] Apache Stratos - Messaging Component .............. SUCCESS [9.441s]
> [INFO] Apache Stratos - Autoscaler ....................... FAILURE [28.904s]
> [INFO] Apache Stratos - Cloud Controller ................. SKIPPED
> ..............<All between are skipped>...................................
> [INFO] Apache Stratos - Cartridge Agent Distribution ..... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 7:22.643s
> [INFO] Finished at: Mon Jan 06 22:15:23 WET 2014
> [INFO] Final Memory: 79M/209M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.apache.stratos.autoscaler: There are test failures.
> [ERROR] 
> [ERROR] Please refer to /home/stack/incubator-stratos/components/org.apache.stratos.autoscaler/target/surefire-reports for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :org.apache.stratos.autoscaler



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)