java.lang.NoSuchMethodError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by janice zhang,
  • 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.
    via by janice zhang,
    • java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; at org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33) at org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:281) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:181) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
    No Bugmate found.