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-360) Deploy failure using location "extensions" config in brooklyn.properties
Date Tue, 11 Oct 2016 13:29:20 GMT

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

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

Github user bostko commented on the issue:

    https://github.com/apache/brooklyn-server/pull/377
  
    LGTM!


> Deploy failure using location "extensions" config in brooklyn.properties
> ------------------------------------------------------------------------
>
>                 Key: BROOKLYN-360
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-360
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>             Fix For: 0.10.0
>
>
> With Brooklyn 0.10.0-SNAPSHOT...
> With the location below defined in brooklyn.properties:
> {noformat}
> brooklyn.location.named.aws-with-extension=jclouds:aws-ec2:us-east-1
> brooklyn.location.named.aws-with-extension.extensions={ org.apache.brooklyn.util.executor.HttpExecutorFactory:
"org.apache.brooklyn.util.executor.HttpExecutorFactoryImpl" }
> {noformat}
> And deploying a really simple app, such as:
> {noformat}
> location: aws-with-extension
> services:
> - type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess
> {noformat}
> Leads to a failure at deploy time:
> {noformat}
> 2016-10-11 11:33:35,818 WARN  117 o.a.b.c.m.i.LocalEntityManager [tp529634986-1394] Failed
to create entity using spec EntitySpec{type=interface org.apache.brooklyn.api.entity.Application}
(rethrowing)
> org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Cannot set non-map entries
{ org.apache.brooklyn.util.executor.HttpExecutorFactory: "org.apache.brooklyn.util.executor.HttpExecutorFactoryImpl"
} on extensions[ConfigKey:java.util.Map]
>         at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129)[140:org.apache.brooklyn.utils-common:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:372)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.objs.proxy.InternalEntityFactory.initEntityAndDescendants(InternalEntityFactory.java:322)
>         at org.apache.brooklyn.core.objs.proxy.InternalEntityFactory.createEntity(InternalEntityFactory.java:189)
>         at org.apache.brooklyn.core.mgmt.internal.LocalEntityManager.createEntity(LocalEntityManager.java:148)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.mgmt.EntityManagementUtils.createUnstarted(EntityManagementUtils.java:83)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.rest.resources.ApplicationResource.launch(ApplicationResource.java:300)[127:org.apache.brooklyn.rest-resources:0.10.0.20161009_2113]
>         at org.apache.brooklyn.rest.resources.ApplicationResource.createFromYaml(ApplicationResource.java:292)[127:org.apache.brooklyn.rest-resources:0.10.0.20161009_2113]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_71]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_71]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_71]
>         at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_71]
>         at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[153:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.4]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[153:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.4]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[149:org.apache.cxf.cxf-core:3.1.4]
>         at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)[92:javax.servlet-api:3.1.0]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)[161:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[211:org.eclipse.jetty.servlet:9.2.14.v20151106]
>         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[211:org.eclipse.jetty.servlet:9.2.14.v20151106]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[231:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[209:org.eclipse.jetty.security:9.2.14.v20151106]
>         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[231:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[211:org.eclipse.jetty.servlet:9.2.14.v20151106]
>         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[231:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.Server.handle(Server.java:499)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[210:org.eclipse.jetty.server:9.2.14.v20151106]
>         at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[202:org.eclipse.jetty.io:9.2.14.v20151106]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[213:org.eclipse.jetty.util:9.2.14.v20151106]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[213:org.eclipse.jetty.util:9.2.14.v20151106]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
> Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException:
Cannot set non-map entries { org.apache.brooklyn.util.executor.HttpExecutorFactory: "org.apache.brooklyn.util.executor.HttpExecutorFactoryImpl"
} on extensions[ConfigKey:java.util.Map]
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.7.0_71]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:188)[:1.7.0_71]
>         at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
>         at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:361)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:370)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         ... 48 more
> Caused by: java.lang.IllegalArgumentException: Cannot set non-map entries { org.apache.brooklyn.util.executor.HttpExecutorFactory:
"org.apache.brooklyn.util.executor.HttpExecutorFactoryImpl" } on extensions[ConfigKey:java.util.Map]
>         at org.apache.brooklyn.core.config.MapConfigKey.applyValueToMap(MapConfigKey.java:187)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.setConfig(AbstractConfigMapImpl.java:170)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.objs.AbstractConfigurationSupportInternal.setConfigInternal(AbstractConfigurationSupportInternal.java:175)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.objs.AbstractConfigurationSupportInternal.set(AbstractConfigurationSupportInternal.java:183)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.flags.FlagUtils.setConfig(FlagUtils.java:434)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.flags.FlagUtils.setField(FlagUtils.java:457)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.flags.FlagUtils.setFieldFromConfig(FlagUtils.java:391)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.flags.FlagUtils.setFieldsFromFlagsInternal(FlagUtils.java:382)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.util.core.flags.FlagUtils.setFieldsFromFlagsWithBag(FlagUtils.java:93)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.location.AbstractLocation.configure(AbstractLocation.java:257)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.location.jclouds.JcloudsLocation.configure(JcloudsLocation.java:251)[123:org.apache.brooklyn.locations-jclouds:0.10.0.20161009_2113]
>         at org.apache.brooklyn.location.jclouds.JcloudsLocation.configure(JcloudsLocation.java:202)[123:org.apache.brooklyn.locations-jclouds:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.objs.proxy.InternalLocationFactory.createLocation(InternalLocationFactory.java:128)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.mgmt.internal.LocalLocationManager.createLocation(LocalLocationManager.java:94)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at org.apache.brooklyn.core.objs.proxy.InternalEntityFactory$1.run(InternalEntityFactory.java:337)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_71]
>         at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:519)[117:org.apache.brooklyn.core:0.10.0.20161009_2113]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_71]
>         ... 1 more
> {noformat}



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

Mime
View raw message