brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-303) EmptyWindowsProcess provisioning fails with NPE
Date Thu, 16 Jun 2016 16:40:05 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15334124#comment-15334124
] 

ASF GitHub Bot commented on BROOKLYN-303:
-----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/brooklyn-server/pull/205


> EmptyWindowsProcess provisioning fails with NPE
> -----------------------------------------------
>
>                 Key: BROOKLYN-303
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-303
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>
> When using {{EmptyWindowsProcess}}, provisioning fails with a NullPointerException.
> The workaround is to supply a "port" config value - it can be any valid-looking port
number, as we would expect it to be not actually used! For example:
> {noformat}
> location: byon:(hosts="1.2.3.4",osFamily=windows)
> services:
> - type: org.apache.brooklyn.entity.software.base.EmptyWindowsProcess
>   brooklyn.config:
>     winrmMonitoring.enabled: false
>     onbox.base.dir.skipResolution: true"
>     port: 1234
> {noformat}
> The NPE is shown below (as demonstrated by the test {{EmptyWindowsProcessYamlTest.testNoWinrm}}):
> {noformat}
> FAILED: testNoWinrm
> java.util.concurrent.ExecutionException: org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
Error invoking start at BasicApplicationImpl{id=vg4qzlljih}: Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}:
NullPointerException
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
> 	at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361)
> 	at org.apache.brooklyn.camp.brooklyn.AbstractYamlTest.createAndStartApplication(AbstractYamlTest.java:139)
> 	at org.apache.brooklyn.camp.brooklyn.AbstractYamlTest.createAndStartApplication(AbstractYamlTest.java:132)
> 	at org.apache.brooklyn.camp.brooklyn.AbstractYamlTest.createAndStartApplication(AbstractYamlTest.java:124)
> 	at org.apache.brooklyn.camp.brooklyn.EmptyWindowsProcessYamlTest.testNoWinrm(EmptyWindowsProcessYamlTest.java:37)
> 	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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> 	at org.testng.TestRunner.privateRun(TestRunner.java:767)
> 	at org.testng.TestRunner.run(TestRunner.java:617)
> 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
> 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
> 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
> 	at org.testng.SuiteRunner.run(SuiteRunner.java:254)
> 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> 	at org.testng.TestNG.run(TestNG.java:1057)
> 	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:115)
> 	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:207)
> 	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:178)
> Caused by: org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
Error invoking start at BasicApplicationImpl{id=vg4qzlljih}: Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}:
NullPointerException
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException.propagate(EffectorUtils.java:320)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException.access$0(EffectorUtils.java:313)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils.handleEffectorException(EffectorUtils.java:327)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils.invokeMethodEffector(EffectorUtils.java:281)
> 	at org.apache.brooklyn.core.effector.MethodEffector.call(MethodEffector.java:148)
> 	at org.apache.brooklyn.core.entity.trait.Startable$StartEffectorBody.call(Startable.java:56)
> 	at org.apache.brooklyn.core.entity.trait.Startable$StartEffectorBody.call(Startable.java:1)
> 	at org.apache.brooklyn.core.effector.EffectorTasks$EffectorBodyTaskFactory$1.call(EffectorTasks.java:82)
> 	at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:359)
> 	at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:519)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	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.util.concurrent.ExecutionException: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodSync(AbstractManagementContext.java:337)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils.invokeMethodEffector(EffectorUtils.java:276)
> 	... 10 more
> Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error invoking
start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:128)
> 	at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:372)
> 	at org.apache.brooklyn.core.entity.trait.StartableMethods.start(StartableMethods.java:53)
> 	at org.apache.brooklyn.core.entity.AbstractApplication.doStart(AbstractApplication.java:179)
> 	at org.apache.brooklyn.core.entity.AbstractApplication.start(AbstractApplication.java:154)
> 	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
> 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
> 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
> 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
> 	at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
> 	at groovy.lang.MetaObjectProtocol$invokeMethod.call(Unknown Source)
> 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
> 	at org.apache.brooklyn.util.groovy.GroovyJavaMethods.invokeMethodOnMetaClass(GroovyJavaMethods.java:191)
> 	at org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodLocal(AbstractManagementContext.java:309)
> 	at org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodSync(AbstractManagementContext.java:333)
> 	... 11 more
> Caused by: java.util.concurrent.ExecutionException: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException:
Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
> 	at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361)
> 	at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:370)
> 	... 30 more
> Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Error invoking
start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:128)
> 	at org.apache.brooklyn.util.core.task.ParallelTask.runJobs(ParallelTask.java:80)
> 	at org.apache.brooklyn.util.core.task.CompoundTask$1.call(CompoundTask.java:81)
> 	at org.apache.brooklyn.util.core.task.CompoundTask$1.call(CompoundTask.java:1)
> 	... 5 more
> Caused by: java.util.concurrent.ExecutionException: org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
> 	at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361)
> 	at org.apache.brooklyn.util.core.task.ParallelTask.runJobs(ParallelTask.java:63)
> 	... 7 more
> Caused by: org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException:
Error invoking start at EmptyWindowsProcessImpl{id=ztdk56w3yo}: NullPointerException
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException.propagate(EffectorUtils.java:320)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils$EffectorCallPropagatedRuntimeException.access$0(EffectorUtils.java:313)
> 	at org.apache.brooklyn.core.mgmt.internal.EffectorUtils.handleEffectorException(EffectorUtils.java:327)
> 	at org.apache.brooklyn.core.effector.EffectorTasks$EffectorBodyTaskFactory$2.handleException(EffectorTasks.java:90)
> 	at org.apache.brooklyn.util.core.task.DynamicSequentialTask.handleException(DynamicSequentialTask.java:469)
> 	at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:417)
> 	... 5 more
> Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: NullPointerException
> 	at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:128)
> 	at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:372)
> 	at org.apache.brooklyn.util.core.task.DynamicSequentialTask.drain(DynamicSequentialTask.java:492)
> 	at org.apache.brooklyn.util.core.task.DynamicTasks.drain(DynamicTasks.java:314)
> 	at org.apache.brooklyn.util.core.task.DynamicTasks.waitForLast(DynamicTasks.java:303)
> 	at org.apache.brooklyn.entity.software.base.lifecycle.MachineLifecycleEffectorTasks.start(MachineLifecycleEffectorTasks.java:314)
> 	at org.apache.brooklyn.entity.software.base.lifecycle.MachineLifecycleEffectorTasks$StartEffectorBody.call(MachineLifecycleEffectorTasks.java:214)
> 	at org.apache.brooklyn.entity.software.base.lifecycle.MachineLifecycleEffectorTasks$StartEffectorBody.call(MachineLifecycleEffectorTasks.java:1)
> 	at org.apache.brooklyn.core.effector.EffectorTasks$EffectorBodyTaskFactory$1.call(EffectorTasks.java:82)
> 	at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:359)
> 	... 5 more
> Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
> 	at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361)
> 	at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:370)
> 	... 13 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.brooklyn.entity.software.base.EmptyWindowsProcessWinRmDriver.start(EmptyWindowsProcessWinRmDriver.java:44)
> 	at org.apache.brooklyn.entity.software.base.SoftwareProcessDriverLifecycleEffectorTasks.startProcessesAtMachine(SoftwareProcessDriverLifecycleEffectorTasks.java:152)
> 	at org.apache.brooklyn.entity.software.base.lifecycle.MachineLifecycleEffectorTasks$StartProcessesAtMachineTask.run(MachineLifecycleEffectorTasks.java:351)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	... 6 more
> {noformat}



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

Mime
View raw message