[ https://issues.apache.org/jira/browse/MYRIAD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737537#comment-14737537 ]
Santosh Marella commented on MYRIAD-130: ---------------------------------------- [~Aashreya], I think this issue might have been fixed with the merge of PR 111 (https://github.com/mesos/myriad/pull/111). With PR 111, if you try to flexup using a profile name that's not defined in the myriad config (.yml), then the API request should fail. > Launching a profile missing from the myriad-config-default.yml throws null > pointer exception > -------------------------------------------------------------------------------------------- > > Key: MYRIAD-130 > URL: https://issues.apache.org/jira/browse/MYRIAD-130 > Project: Myriad > Issue Type: Bug > Components: Scheduler > Reporter: Aashreya Ravi Shankar > Assignee: Santosh Marella > > When trying to flex-up a profile which is missing from the myriad-config > file, null pointer exception is thrown. > 15/09/08 10:34:38 ERROR mortbay.log: /api/cluster/flexup > java.lang.NullPointerException > at com.ebay.myriad.state.SchedulerState.addNodes(SchedulerState.java:63) > at > com.ebay.myriad.scheduler.MyriadOperations.flexUpCluster(MyriadOperations.java:65) > at com.ebay.myriad.api.ClustersResource.flexUp(ClustersResource.java:83) > 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 > com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) > at > com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) > at > com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > at > com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) > at > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > at > com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) > at > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > at > com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) > at > com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at > com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) -- This message was sent by Atlassian JIRA (v6.3.4#6332)