java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

Jenkins JIRA | janice zhang | 3 years ago
  1. 0

    i think my configure.xml is correct <config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd"> <weblogic-targets> <weblogic-target> <name>AdminServer</name> <host>ip</host> <port>8080</port> <login>weblogic</login> <password>weblogic</password> <authMode>BY_LOGIN</authMode> </weblogic-target> </weblogic-targets> </config> the job's configure like photo when i excute the job,it builded failed, the console message following: 15:15:41 [WeblogicDeploymentPlugin] - the following file recorded ICPlatform.war is eligible. 15:15:41 [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=AdminServer) (host=10.100.31.65) (port=8080) 15:15:41 java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:281) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:181) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236) 15:15:41 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 15:15:41 at hudson.model.Build$BuildExecution.post2(Build.java:183) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 15:15:41 at hudson.model.Run.execute(Run.java:1513) 15:15:41 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:15:41 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:15:41 at hudson.model.Executor.run(Executor.java:236) 15:15:41 ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.

    Jenkins JIRA | 3 years ago | janice zhang
    java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  2. 0

    i think my configure.xml is correct <config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd"> <weblogic-targets> <weblogic-target> <name>AdminServer</name> <host>ip</host> <port>8080</port> <login>weblogic</login> <password>weblogic</password> <authMode>BY_LOGIN</authMode> </weblogic-target> </weblogic-targets> </config> the job's configure like photo when i excute the job,it builded failed, the console message following: 15:15:41 [WeblogicDeploymentPlugin] - the following file recorded ICPlatform.war is eligible. 15:15:41 [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=AdminServer) (host=10.100.31.65) (port=8080) 15:15:41 java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:281) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:181) 15:15:41 at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236) 15:15:41 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 15:15:41 at hudson.model.Build$BuildExecution.post2(Build.java:183) 15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) 15:15:41 at hudson.model.Run.execute(Run.java:1513) 15:15:41 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:15:41 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:15:41 at hudson.model.Executor.run(Executor.java:236) 15:15:41 ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.

    Jenkins JIRA | 3 years ago | janice zhang
    java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
  3. 0

    db:: 3.51::Unable to start applications/modules in weblogic Admin Server k1

    hivmr.com | 4 months ago
    java.lang.NoSuchMethodError: com.bea.utils.misc.ProcessUtil.getPropValues(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to Open the Admin Console

    Oracle Community | 6 years ago | 844867
    java.lang.NoSuchMethodError: com.bea.utils.misc.ProcessUtil.getPropValues(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
  6. 0

    retroweaver - anyone had a go at fixing it for current jdk1.5.0 release?

    Google Groups | 1 decade ago | Alex Hunsley
    java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

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

      hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

      at org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar()
    2. org.jenkinsci.plugins
      WeblogicDeploymentPlugin.perform
      1. org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33)
      2. org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75)
      3. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:281)
      4. org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:181)
      5. org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      6. hudson.model.Run.execute(Run.java:1513)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames