java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

Jenkins JIRA | Stephen Cook | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When my build job starts I get this Console Output (I have sanitized some doman names and replaced my job name with "myjob": Started by timer Building remotely on Worms_IOS Reverting <sanitized> Updating https://<sanitized> At revision 66 no change for <sanitized> since the previous build No emails were triggered. Working directory is /Users/builder/workspace/<myjob>. [<myjob>] $ /usr/bin/xcodebuild -version Xcode 4.2 Build version 4C199 Fetching marketing version number (CFBundleShortVersionString) from project. [myjob] $ /usr/bin/agvtool mvers -terse1 FATAL: java.lang.String.isEmpty()Z java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:195) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:461) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Let me add that when I run agvtool mvers -terse1 from the command line in that working directory it displays "1.0". Here is my java info for the slave: worms:~ builder$ java -version java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

    Jenkins JIRA | 5 years ago | Stephen Cook
    java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
  2. 0

    When my build job starts I get this Console Output (I have sanitized some doman names and replaced my job name with "myjob": Started by timer Building remotely on Worms_IOS Reverting <sanitized> Updating https://<sanitized> At revision 66 no change for <sanitized> since the previous build No emails were triggered. Working directory is /Users/builder/workspace/<myjob>. [<myjob>] $ /usr/bin/xcodebuild -version Xcode 4.2 Build version 4C199 Fetching marketing version number (CFBundleShortVersionString) from project. [myjob] $ /usr/bin/agvtool mvers -terse1 FATAL: java.lang.String.isEmpty()Z java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:195) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:461) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Let me add that when I run agvtool mvers -terse1 from the command line in that working directory it displays "1.0". Here is my java info for the slave: worms:~ builder$ java -version java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

    Jenkins JIRA | 5 years ago | Stephen Cook
    java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      java.lang.String.isEmpty()Z

      at au.com.rayh.XCodeBuilder.perform()
    2. au.com.rayh
      XCodeBuilder.perform
      1. au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:195)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695)
      3. hudson.model.Build$RunnerImpl.build(Build.java:178)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:461)
      6. hudson.model.Run.run(Run.java:1404)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:230)
      9 frames