Service Virtualization

Expand all | Collapse all

Something went wrong creating a project from a MAR

Jump to Best Answer
  • 1.  Something went wrong creating a project from a MAR

    Posted 03-13-2018 05:26 AM

    Hello All,


    Using DevTest 10.1.

    I'm trying to create a project from a .mar file.

    Initially, it's a project created on my computer, deployed on a vse. 

    Because I need to check the content of the .mar file, I've downloaded it from the portal. And now I want to create a new project using the .mar content. 

    In workstation, I used the "new button", specified my workstation workspace/location (where the initial project is present), checked the "base the new project on one of the following" and selected the .mar file. An error occurs when creating the new project : "Unable to create a new project. Error renaming project".




    From stacktrace : 

    2018-03-13 09:12:29,771Z (10:12) [AWT-EventQueue-0] ERROR com.itko.lisa.repo.NewProjectPanel - Something went wrong creating a project from a MAR...
    java.lang.RuntimeException: Error renaming project
    at com.itko.lisa.repo.ProjectManager.renameProject(
    at com.itko.lisa.repo.NewProjectPanel$4.doCallback(
    at com.itko.util.swing.panels.ProcessingDialog$
    Caused by: java.nio.file.AccessDeniedException: C:\Workspaces\LISA_10\API Formation - bdd -> C:\Workspaces\LISA_10\api_formation_assertion.formation
    at sun.nio.fs.WindowsException.translateToIOException(
    at sun.nio.fs.WindowsException.rethrowAsIOException(
    at sun.nio.fs.WindowsFileCopy.move(
    at sun.nio.fs.WindowsFileSystemProvider.move(
    at java.nio.file.Files.move(
    at com.itko.lisa.repo.ProjectManager.renameProject(
    ... 3 more
    2018-03-13 09:12:29,771Z (10:12) [AWT-EventQueue-0] ERROR com.itko.util.swing.UserMessage - Unable to create a new project.
    Error renaming project


    Because I was trying to create a new project (with new name/folder), I don't understand the previous error. Is this the expected behaviour ?


    When using another workspace/location (an empty one) for creating the new project, there is no error.



  • 2.  Re: Something went wrong creating a project from a MAR
    Best Answer

    Posted 03-13-2018 01:56 PM

    It may be that the mar is corrupted.  


    There is a workaround,  Change the file type from .mar to .zip ,


    So change  api_formation_assertion.formation.mar file   to  

    Extract the .zip file.  

    You can then open the project in the Workstation.  





  • 3.  Re: Something went wrong creating a project from a MAR

    Posted 03-14-2018 04:19 AM

    Hi Shiney,


    The .mar seems not to be corrupted because I can create a new project when I try in another workspace/location. 

    The behaviour (something went wrong) seems to be due to the location where the initial project is present.