AnsweredAssumed Answered

Something went wrong creating a project from a MAR

Question asked by Benoit_B on Mar 13, 2018
Latest reply on Mar 14, 2018 by Benoit_B

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".

 

sceenshot

 

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(ProjectManager.java:829)
at com.itko.lisa.repo.NewProjectPanel$4.doCallback(NewProjectPanel.java:359)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Thread.java:745)
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(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)
at com.itko.lisa.repo.ProjectManager.renameProject(ProjectManager.java:822)
... 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.

 

Benoit

Outcomes