Forum Discussion

pp_checkit's avatar
pp_checkit
New Contributor
3 years ago
Solved

error with migrating Zephyr Squad data via Migration Tool

I'm getting this error when trying to migrate a project to the cloud, using the migration tool:

 

2021-10-07 14:54:32,244 - ERROR - c.z.m.s.i.IssueServiceImpl - Error occurred while fetching the test (issue) details from jira

org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.atlassian.jira.rest.client.api.domain.Version]: can not instantiate from JSON object (need to add/enable type information?)

 at [Source: java.io.StringReader@177f5881; line: 1, column: 173305] (through reference chain: com.zephyr.migration.model.TestCaseBean["issues"]->com.zephyr.migration.model.Issue["fields"]->com.zephyr.migration.model.Field["fixVersions"])

at com.zephyr.migration.service.impl.IssueServiceImpl.getIssueDetailsFromJira(IssueServiceImpl.java:76)

at com.zephyr.migration.service.impl.MigrationServiceImpl.beginTestStepsMigration(MigrationServiceImpl.java:1200)

at com.zephyr.migration.service.impl.MigrationServiceImpl.beginExecutionMigration(MigrationServiceImpl.java:708)

at com.zephyr.migration.service.impl.MigrationServiceImpl.migrateSingleProject(MigrationServiceImpl.java:111)

at com.zephyr.migration.controllers.MigrationViewController.processForm(MigrationViewController.java:33)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)

 

I've highlighted the offending line.
Can someone point me in the right direction as to what's going wrong here, please?

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.base/java.lang.Thread.run(Thread.java:829)

  • pp_checkit's avatar
    pp_checkit
    3 years ago

    thanks for the pointers.
    However, after up grading Im getting these errors:

    2021-10-08 12:14:49,525 - ERROR - c.z.m.s.i.TestStepServiceImpl - Error while creating test step in cloud for29115this issue id org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: [Access forbidden since Zephyr Squad add-on is not active. Current add-on status is PLUGIN_DISABLED]

     

    when it is

     

    and 

    2021-10-08 12:45:27,353 - ERROR - c.z.m.s.i.MigrationServiceImpl - Error occurred while migrating test steps from server to cloud for issue id [28990]

    com.sun.jersey.api.client.ClientHandlerException: java.net.NoRouteToHostException: Can't assign requested address (Address not available)

     

    with the same config file that was working on the previous version

     

3 Replies

    • pp_checkit's avatar
      pp_checkit
      New Contributor

      thanks for the pointers.
      However, after up grading Im getting these errors:

      2021-10-08 12:14:49,525 - ERROR - c.z.m.s.i.TestStepServiceImpl - Error while creating test step in cloud for29115this issue id org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: [Access forbidden since Zephyr Squad add-on is not active. Current add-on status is PLUGIN_DISABLED]

       

      when it is

       

      and 

      2021-10-08 12:45:27,353 - ERROR - c.z.m.s.i.MigrationServiceImpl - Error occurred while migrating test steps from server to cloud for issue id [28990]

      com.sun.jersey.api.client.ClientHandlerException: java.net.NoRouteToHostException: Can't assign requested address (Address not available)

       

      with the same config file that was working on the previous version

       

      • pp_checkit's avatar
        pp_checkit
        New Contributor

        don't worry, this was my issue as I had to re-create the API keys