java.lang.NullPointerException

Jenkins JIRA | Florian Reinhard | 4 months ago
  1. 0

    The regular expression in [GccMemoryMapParser.java Line 92|https://github.com/Praqma/memory-map-plugin/blob/master/src/main/java/net/praqma/jenkins/memorymap/parser/gcc/GccMemoryMapParser.java#L92] does not match railing whitespaces. Suggestion for a solution: {{SECTIONS\\s*?\\r?\\n?\\{([\\s\\S]*)\\n\\}}} if your Linker command file looks like this: {{SECTION {}} the regex will not match. If it doesn't match, it fails with this stack trace (which is bad either): {{Memory Map Plugin version 2.1.2 (cfc34) ERROR: Build step failed with exception 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 net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.getSections(GccMemoryMapParser.java:102) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseConfigFile(GccMemoryMapParser.java:180) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:58) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:40) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:160) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Memory Map Publisher' marked build as failure}}

    Jenkins JIRA | 4 months ago | Florian Reinhard
    java.lang.NullPointerException
  2. 0

    NullPointerException

    GitHub | 4 years ago | fordfrog
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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(Unknown Source)
    2. java.util.regex.Matcher.reset(Unknown Source)
    3. java.util.regex.Matcher.<init>(Unknown Source)
    4. java.util.regex.Pattern.matcher(Unknown Source)
    4 frames
  3. net.praqma.jenkins
    MemoryMapConfigFileParserDelegate.invoke
    1. net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.getSections(GccMemoryMapParser.java:102)
    2. net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseConfigFile(GccMemoryMapParser.java:180)
    3. net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:58)
    4. net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:40)
    4 frames
  4. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:990)
    2. hudson.FilePath.act(FilePath.java:968)
    2 frames
  5. net.praqma.jenkins
    MemoryMapRecorder.perform
    1. net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:160)
    1 frame
  6. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
    4. hudson.model.Build$BuildExecution.post2(Build.java:185)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
    6. hudson.model.Run.execute(Run.java:1763)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:98)
    9. hudson.model.Executor.run(Executor.java:410)
    9 frames