[
https://issues.apache.org/jira/browse/BROOKLYN-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15277931#comment-15277931
]
Alex Heneveld commented on BROOKLYN-266:
----------------------------------------
Looks like this code no longer uses the resolver. Likely it's a simple change,
replace:
String saveAs = resolver.getFilename();
with
String saveAs = "riak-OSX.tar.gz";
> NPE when deploying Riak Node on MacOS
> -------------------------------------
>
> Key: BROOKLYN-266
> URL: https://issues.apache.org/jira/browse/BROOKLYN-266
> Project: Brooklyn
> Issue Type: Bug
> Affects Versions: 0.10.0
> Environment: Mac OS
> Reporter: Thomas Bouron
>
> When deploying a simple Riak Node to MacOS, using the following blueprint:
> {code:borderStyle=solid}
> location: localhost
> services:
> - type: org.apache.brooklyn.entity.nosql.riak.RiakNode
> {code}
> The Riak node entity throws a NPE during the install phase with the following
> stack trace:
> {code}
> Failed after 0ms: NullPointerException
> java.lang.NullPointerException
> at
> org.apache.brooklyn.entity.nosql.riak.RiakNodeSshDriver.installMac(RiakNodeSshDriver.java:211)
> at
> org.apache.brooklyn.entity.nosql.riak.RiakNodeSshDriver.install(RiakNodeSshDriver.java:116)
> at
> org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriver$2$6.run(AbstractSoftwareProcessDriver.java:159)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 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:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)