OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Commented] (BROOKLYN-594) REST api /v1/server/ha/persist/export fails in brooklyn karaf


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

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

Github user duncangrant commented on the issue:

    https://github.com/apache/brooklyn-server/pull/972
  
    I'll merge - thanks @nakomis 


> REST api /v1/server/ha/persist/export fails in brooklyn karaf
> -------------------------------------------------------------
>
>                 Key: BROOKLYN-594
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-594
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Aled Sage
>            Priority: Major
>
> I tried to make the REST api call below:
> {noformat}
> curl -v -u "xxxx:xxxx" http://localhost:8081/v1/server/ha/persist/export
> {noformat}
> With Brooklyn classic, it works. But for karaf, it fails with the error shown below:
> {noformat}
> 2018-06-20T14:47:59,576 - WARN  348 o.a.b.r.r.ServerResource [qtp923543361-204] Unable to serve persistence data (rethrowing): java.lang.ClassCastException: Proxyfbab2eff_60a1_4850_831a_cea0ce1d588a cannot be cast to org.apache.brook
> lyn.core.mgmt.internal.LocalManagementContext
> java.lang.ClassCastException: Proxyfbab2eff_60a1_4850_831a_cea0ce1d588a cannot be cast to org.apache.brooklyn.core.mgmt.internal.LocalManagementContext
>         at org.apache.brooklyn.core.mgmt.persist.BrooklynPersistenceUtils.newStateMementoFromLocal(BrooklynPersistenceUtils.java:195) [127:org.apache.brooklyn.core:1.0.0.SNAPSHOT]
>         at org.apache.brooklyn.core.mgmt.persist.BrooklynPersistenceUtils.newStateMemento(BrooklynPersistenceUtils.java:149) [127:org.apache.brooklyn.core:1.0.0.SNAPSHOT]
>         at org.apache.brooklyn.core.mgmt.persist.BrooklynPersistenceUtils.writeMemento(BrooklynPersistenceUtils.java:215) [127:org.apache.brooklyn.core:1.0.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.resources.ServerResource.exportPersistenceData(ServerResource.java:486) [348:org.apache.brooklyn.rest-resources:1.0.0.SNAPSHOT]
>         at org.apache.brooklyn.rest.resources.ServerResource.exportPersistenceData(ServerResource.java:471) [348:org.apache.brooklyn.rest-resources:1.0.0.SNAPSHOT]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
>         at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189) [163:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.10]
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99) [163:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.10]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [159:org.apache.cxf.cxf-core:3.1.10]
>         at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:262) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:223) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [96:javax.servlet-api:3.1.0]
>         at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274) [171:org.apache.cxf.cxf-rt-transports-http:3.1.10]
>         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) [226:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [226:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [247:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [223:org.eclipse.jetty.security:9.3.14.v20161028]
>         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [247:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [226:org.eclipse.jetty.servlet:9.3.14.v20161028]
>         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [247:org.ops4j.pax.web.pax-web-jetty:6.0.6]
>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.Server.handle(Server.java:534) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [225:org.eclipse.jetty.server:9.3.14.v20161028]
>         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [218:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [218:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [218:org.eclipse.jetty.io:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [228:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [228:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [228:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [228:org.eclipse.jetty.util:9.3.14.v20161028]
>         at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [228:org.eclipse.jetty.util:9.3.14.v20161028]
>         at java.lang.Thread.run(Thread.java:748) [?:?]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)