AnsweredAssumed Answered

Upload and execute MarFile using lisa-invoker2/REST-API

Question asked by CRUETTIMANN on Apr 16, 2015
Latest reply on Feb 3, 2016 by Joel NeSmith

dddddHi,

 

I have successfully uploaded a MAR-File using the lisa-invoke2 API /api/Dcm/CoordinatorServers/Coordinator/actions/deployMar wich returns with:

 

<Test name="502D7983E40E11E4B2A20050568F09C3" type="application/vnd.ca.lisaInvoke.test+xml" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3" xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 Test.xsd" xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Name>parties-search-v1-1.0.0-DEV-IntegrationTest-Suite</Name>
   <Status>0</Status>
   <Instances>0</Instances>
   <Link rel="up" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator"/>
   <Link rel="actions" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3/actions"/>
   <Link rel="start" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3/actions/start"/>
   <Link rel="stop" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3/actions/stop"/>
   <Link rel="report" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3/report"/>
   <Link rel="metrics" href="http://xy:8080/api/Dcm/CoordinatorServers/Coordinator/Tests/502D7983E40E11E4B2A20050568F09C3/metrics/status"/>
</Test>

By using any of those links, I receive the following response:

 

<Error type="application/vnd.ca.lisaInvoke.error+xml" xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 Error.xsd" xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Id>2702</Id>
   <Message>Invalid test ID:502D7983E40E11E4B2A20050568F09C3</Message>
   <AdditionalInformation>com.itko.lisa.invoke.exception.NotFoundException: Invalid test ID:502D7983E40E11E4B2A20050568F09C3
    at com.itko.lisa.invoke.resource.ThrowException.throwException(ThrowException.java:21)
    at com.itko.lisa.invoke.resource.CoordinatorsResource.startTestActions(CoordinatorsResource.java:873)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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.codahale.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:30)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    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:1511)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1497)
    at com.itko.lisa.invoke.AuthenFilter.doFilter(AuthenFilter.java:65)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1489)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:517)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:564)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1097)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:446)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:200)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:445)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:269)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532)
    at java.lang.Thread.run(Unknown Source)</AdditionalInformation>
</Error>

 

So - anyone used successfully this API so far? Do I miss something?

BTW: This is Version 7.5.2

 

Regards,

 

Cyrill

Outcomes