java.lang.NullPointerException

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.

  • 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
    via by Salem Artin,
  • 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
    via by Salem Artin,
  • 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}
    via by Przemek Bruski,
  • 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}
    via by Przemek Bruski,
    • 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)

    Users with the same issue

    oddodd
    2 times, last one,
    stigkjstigkj
    6 times, last one,
    DunmerDunmer
    1 times, last one,
    Alireza MohamadiAlireza Mohamadi
    1 times, last one,
    tyson925tyson925
    4 times, last one,
    24 more bugmates