java.lang.RuntimeException: task completed abnormally (exit code = 1)

Stack Overflow | Kruti Vyas | 6 days ago
  1. 0

    Jenkins deployment into Weblogic 12c FAILING

    Stack Overflow | 1 year ago | Sudhakar Naidu
    java.lang.RuntimeException: task completed abnormally (exit code = 1)
  2. 0

    On a few of our Jenkins builds, we get a deployment failure. There is no obvious reason as to why. I have compared the Jenkins config.xml from a job that does a successful deployment to a job that fails deployment, have made the settings the same, but with no successful deployment. We can copy and run the java command (/opt/buildjdks/jdk1.8.0_25/bin/java -Xms256M -Xmx1024M -cp /opt/weblogic-deployer/wlfullclient.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name appname -source /opt/jenkins/jobs/appname-build-deploy-dev/modules/com.apps.appname$appname/builds/22/archive/com.apps.appname/appname/1.0.0-SNAPSHOT/appname-1.0.0-SNAPSHOT.war -targets devCluster -adminurl t3://server:7003 -userconfigfile /opt/weblogic-deployer/ -userkeyfile /opt/weblogic-deployer/wls_userConfig.key -deploy) Jenkins is running manually on the Jenkins server console and the deployment works successfully every time, but running the build task we get the error below, every time. java.lang.RuntimeException: task completed abnormally (exit code = 1) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy( at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform( at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform( at hudson.tasks.BuildStepMonitor$1.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps( at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. [INFO] ------------------------------------------------------------------------ [INFO] DEPLOYMENT FAILURE [INFO] ------------------------------------------------------------------------ Have scoured the internet, have found a few others having the same issue but no resolution posted. One person suggests adding into the java classpath additional jars weblogic, cryptoj.jar, along with wlfullclient.jar. I have tried this with no changes to the build deployment error above.

    Jenkins JIRA | 2 years ago | trevorw
    java.lang.RuntimeException: task completed abnormally (exit code = 1)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [JENKINS-27600] Failed to Deploy, task completed abnormally, exit code 1 - Jenkins JIRA | 5 months ago
    java.lang.RuntimeException: task completed abnormally (exit code = 1)

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      task completed abnormally (exit code = 1)

      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy()
    2. org.jenkinsci.plugins
      1. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(
      2. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(
      3. org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(
      3 frames
    3. Hudson
      1. hudson.tasks.BuildStepMonitor$1.perform(
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(
      3 frames
    4. Hudson Maven Embedder
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(
      1 frame
    5. Hudson
      1. hudson.model.AbstractBuild$
      2. hudson.model.Run.execute(
      2 frames
    6. Hudson Maven Embedder
      1 frame
    7. Hudson
      1. hudson.model.ResourceController.execute(
      2 frames