Generic "Failed to import Path(*.zip) java.lang.RuntimeException: Server returned non-successful status code 404 when accessing" Error

Follow

Shashank Srivastava -

Issue

While importing an exported zip file (containing either root CIs or Application CIs), you will receive an import error if there is an artifact in your Application package which is located on an external repository like Maven, Nexus or Artifactory & that artifact is removed from its repository.

Environment

XL Deploy

Resolution

1. Either copy/upload/make available the removed artifact in its repository.

2. Remove reference of this artifact from either XLD GUI (Delete that deployable), re-export & re-imported the new zip or from the "configuration-items.xml" file in exported zip.

Cause

While importing the CIs, XLD tries to fetch the artifact from artifact's external repository. If that artifact is not found, it will throw the below error.

Additional Information

Below is the snippet of the stack trace.

2017-04-10 06:51:32.569 [task-sys-task.step-dispatcher-58] {stepDescription=Import configuration items from 'Path(Root_2017-04-10_06-37-18_018.zip)', taskId=70e22494-f246-4fba-935c-f67c3491277e, username=admin} INFO  c.x.x.e.exportcis.ImportStep - Converting [69] XML nodes into CIs
2017-04-10 06:51:32.646 [task-sys-task.step-dispatcher-58] {stepDescription=Import configuration items from 'Path(Root_2017-04-10_06-37-18_018.zip)', taskId=70e22494-f246-4fba-935c-f67c3491277e, username=admin} ERROR c.x.x.e.exportcis.ImportStep - Failed to import Path(Root_2017-04-10_06-37-18_018.zip)
java.lang.RuntimeException: Server returned non-successful status code 404 when accessing http://admin:admin123@localhost:8081/nexus/service/local/repositories/thirdparty/content/fakepath/restcomm-connect.telephony.api/8.0.0.1099/restcomm-connect.telephony.api-8.0.0.1099.jar
    at com.xebialabs.xlplatform.artifact.resolution.http.HttpArtifactResolver$$anon$1.openStream(HttpArtifactResolver.scala:72)
Tags
kb, xl-deploy, xld, export, import

 

Have more questions? Submit a request
Powered by Zendesk