java.lang.NullPointerException

Atlassian JIRA | Salem Artin | 3 years ago
  1. 0

    We are using Bamboo version 4.4.4 for our CI. We are currently evaluating SOASTA TouchTest automation tool and we are trying to streamline building an iOS IPA file via following this tutorial http://cdn.soasta.com/productresource/download/SOASTA_TouchTest_Bamboo_iOS_Tutorial.pdf but we are blocked by a defect in the Bamboo iOS, Cocoa and Xcode Support Plugin ver 1.8 We noticed that Bamboo iOS, Cocoa and Xcode Support Plugin version 2.0 does not work with Bamboo 4.4.4 so we downgraded to Bamboo iOS, Cocoa and Xcode Support Plugin version 1.8. Now we are getting this null pointer exception when we are running the IPA build java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1140) at java.util.regex.Matcher.reset(Matcher.java:291) at java.util.regex.Matcher.<init>(Matcher.java:211) at java.util.regex.Pattern.matcher(Pattern.java:888) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:465) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:458) at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) at java.util.AbstractList$Itr.next(AbstractList.java:345) at java.util.AbstractCollection.toArray(AbstractCollection.java:124) at java.util.LinkedList.addAll(LinkedList.java:269) at java.util.LinkedList.addAll(LinkedList.java:247) at com.atlassian.bamboo.process.ExternalProcessBuilder.command(ExternalProcessBuilder.java:59) at com.atlassian.bamboo.process.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:131) at com.atlassian.bamboo.process.ProcessServiceImpl.executeProcess(ProcessServiceImpl.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy206.executeProcess(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy206.executeProcess(Unknown Source) at com.atlassian.bamboo.plugins.xcode.build.XCodeTaskType.execute(XCodeTaskType.java:88) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:187) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:619) Please note that the iOS target builds properly from within xCode IDE and we are having this issue when we try building through Bamboo via this plugin. I searched online and found this https://jira.atlassian.com/browse/BAM-12317 and I made sure that the commit comment is not empty! Please advise

    Atlassian JIRA | 3 years ago | Salem Artin
    java.lang.NullPointerException
  2. 0

    We are using Bamboo version 4.4.4 for our CI. We are currently evaluating SOASTA TouchTest automation tool and we are trying to streamline building an iOS IPA file via following this tutorial http://cdn.soasta.com/productresource/download/SOASTA_TouchTest_Bamboo_iOS_Tutorial.pdf but we are blocked by a defect in the Bamboo iOS, Cocoa and Xcode Support Plugin ver 1.8 We noticed that Bamboo iOS, Cocoa and Xcode Support Plugin version 2.0 does not work with Bamboo 4.4.4 so we downgraded to Bamboo iOS, Cocoa and Xcode Support Plugin version 1.8. Now we are getting this null pointer exception when we are running the IPA build java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1140) at java.util.regex.Matcher.reset(Matcher.java:291) at java.util.regex.Matcher.<init>(Matcher.java:211) at java.util.regex.Pattern.matcher(Pattern.java:888) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:465) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:458) at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) at java.util.AbstractList$Itr.next(AbstractList.java:345) at java.util.AbstractCollection.toArray(AbstractCollection.java:124) at java.util.LinkedList.addAll(LinkedList.java:269) at java.util.LinkedList.addAll(LinkedList.java:247) at com.atlassian.bamboo.process.ExternalProcessBuilder.command(ExternalProcessBuilder.java:59) at com.atlassian.bamboo.process.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:131) at com.atlassian.bamboo.process.ProcessServiceImpl.executeProcess(ProcessServiceImpl.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy206.executeProcess(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy206.executeProcess(Unknown Source) at com.atlassian.bamboo.plugins.xcode.build.XCodeTaskType.execute(XCodeTaskType.java:88) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:187) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:619) Please note that the iOS target builds properly from within xCode IDE and we are having this issue when we try building through Bamboo via this plugin. I searched online and found this https://jira.atlassian.com/browse/BAM-12317 and I made sure that the commit comment is not empty! Please advise

    Atlassian JIRA | 3 years ago | Salem Artin
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    h3. Summary Renaming capability label will break task that are configured to use the old label name h3. Steps to Reproduce # Create a new Executable Command # Set a Command task to use this executable # Rename this Executable capability at {{Administration >> Build Resources >> Executable}} # Run the build in Step 2 h3. Expected Results The build will run successfully h3. Actual Results The build failed with the following exception in the build or remote agent log atlassian-bamboo.log file: {noformat} 2015-09-18 15:47:51,325 ERROR [0-BAM::data054.vm.cfm.fr::Agent:pool-3-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Install package(3)' of type com.atlassian.bamboo.plugins.scripttask:task.builder.command. com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:84) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.<init>(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:516) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:509) at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) at java.util.AbstractList$Itr.next(Unknown Source) at java.util.AbstractCollection.toArray(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at com.atlassian.bamboo.process.ExternalProcessBuilder.command(ExternalProcessBuilder.java:60) at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:167) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:209) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:61) {noformat} h3. Notes Task configurations treat that label as a key and fail after rename. h3.Workaround # Search for the Build Plan Task that is using the old name with the following SQL query: {code:sql} select b.FULL_KEY from BUILD_DEFINITION bd JOIN BUILD b ON bd.BUILD_ID=b.BUILD_ID WHERE XML_DEFINITION_DATA LIKE '%<old_label>%'; {code} FULL_KEY is <project_key>- <plan_key>-<job_key> # Access the configuration of this plan with the URL http://<bamboo.url>:<port>/<context>/build/admin/edit/editBuildTasks.action?buildKey=<FULL_KEY> # Edit the Task to set it to use the new label # Save the setting # For Development Task, use the following SQL query: {code:sql} select dp.NAME,de.NAME from DEPLOYMENT_ENVIRONMENT de JOIN deployment_project dp ON dp.DEPLOYMENT_PROJECT_ID=de.PACKAGE_DEFINITION_ID WHERE de.XML_DEFINITION_DATA LIKE '%<old_label>%'; {code}

    Atlassian JIRA | 3 years ago | Przemek Bruski
    com.atlassian.bamboo.task.TaskException: Failed to execute task
  5. 0

    h3. Summary Renaming capability label will break task that are configured to use the old label name h3. Steps to Reproduce # Create a new Executable Command # Set a Command task to use this executable # Rename this Executable capability at {{Administration >> Build Resources >> Executable}} # Run the build in Step 2 h3. Expected Results The build will run successfully h3. Actual Results The build failed with the following exception in the build or remote agent log atlassian-bamboo.log file: {noformat} 2015-09-18 15:47:51,325 ERROR [0-BAM::data054.vm.cfm.fr::Agent:pool-3-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Install package(3)' of type com.atlassian.bamboo.plugins.scripttask:task.builder.command. com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:84) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.<init>(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:516) at com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:509) at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) at java.util.AbstractList$Itr.next(Unknown Source) at java.util.AbstractCollection.toArray(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at java.util.LinkedList.addAll(Unknown Source) at com.atlassian.bamboo.process.ExternalProcessBuilder.command(ExternalProcessBuilder.java:60) at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:167) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:209) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:61) {noformat} h3. Notes Task configurations treat that label as a key and fail after rename. h3.Workaround # Search for the Build Plan Task that is using the old name with the following SQL query: {code:sql} select b.FULL_KEY from BUILD_DEFINITION bd JOIN BUILD b ON bd.BUILD_ID=b.BUILD_ID WHERE XML_DEFINITION_DATA LIKE '%<old_label>%'; {code} FULL_KEY is <project_key>- <plan_key>-<job_key> # Access the configuration of this plan with the URL http://<bamboo.url>:<port>/<context>/build/admin/edit/editBuildTasks.action?buildKey=<FULL_KEY> # Edit the Task to set it to use the new label # Save the setting # For Development Task, use the following SQL query: {code:sql} select dp.NAME,de.NAME from DEPLOYMENT_ENVIRONMENT de JOIN deployment_project dp ON dp.DEPLOYMENT_PROJECT_ID=de.PACKAGE_DEFINITION_ID WHERE de.XML_DEFINITION_DATA LIKE '%<old_label>%'; {code}

    Atlassian JIRA | 3 years ago | Przemek Bruski
    com.atlassian.bamboo.task.TaskException: Failed to execute task

  1. tyson925 4 times, last 2 months ago
  2. tyson925 28 times, last 2 months ago
  3. lribeiro 6 times, last 3 months ago
  4. davidvanlaatum 1 times, last 4 months ago
  5. jk 2 times, last 5 months ago
5 more registered users
9 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.NullPointerException

    No message provided

    at java.util.regex.Matcher.getTextLength()
  2. Java RT
    Pattern.matcher
    1. java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    2. java.util.regex.Matcher.reset(Matcher.java:291)
    3. java.util.regex.Matcher.<init>(Matcher.java:211)
    4. java.util.regex.Pattern.matcher(Pattern.java:888)
    4 frames
  3. com.atlassian.bamboo
    BambooStringUtils$3.apply
    1. com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:465)
    2. com.atlassian.bamboo.util.BambooStringUtils$3.apply(BambooStringUtils.java:458)
    2 frames
  4. Guava
    Lists$TransformingRandomAccessList.get
    1. com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451)
    1 frame
  5. Java RT
    LinkedList.addAll
    1. java.util.AbstractList$Itr.next(AbstractList.java:345)
    2. java.util.AbstractCollection.toArray(AbstractCollection.java:124)
    3. java.util.LinkedList.addAll(LinkedList.java:269)
    4. java.util.LinkedList.addAll(LinkedList.java:247)
    4 frames
  6. com.atlassian.bamboo
    ProcessServiceImpl.executeProcess
    1. com.atlassian.bamboo.process.ExternalProcessBuilder.command(ExternalProcessBuilder.java:59)
    2. com.atlassian.bamboo.process.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:131)
    3. com.atlassian.bamboo.process.ProcessServiceImpl.executeProcess(ProcessServiceImpl.java:180)
    3 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. com.atlassian.plugin
    DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
    1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
    1 frame
  9. Unknown
    $Proxy206.executeProcess
    1. $Proxy206.executeProcess(Unknown Source)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. com.atlassian.plugin
    HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
    1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
    1 frame
  12. Unknown
    $Proxy206.executeProcess
    1. $Proxy206.executeProcess(Unknown Source)
    1 frame
  13. com.atlassian.bamboo
    NamedThreadFactory$2.run
    1. com.atlassian.bamboo.plugins.xcode.build.XCodeTaskType.execute(XCodeTaskType.java:88)
    2. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:187)
    3. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93)
    4. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
    5. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
    6. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
    7. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
    8. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
    8 frames
  14. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame