java.lang.NullPointerException

GitHub | JFKnaufAncud | 10 months 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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.github.tomakehurst.wiremock.matching.RequestPattern.match()
  2. WireMock
    NearMissCalculator$2.apply
    1. com.github.tomakehurst.wiremock.matching.RequestPattern.match(RequestPattern.java:125)
    2. com.github.tomakehurst.wiremock.matching.RequestPattern.match(RequestPattern.java:116)
    3. com.github.tomakehurst.wiremock.verification.NearMissCalculator$2.apply(NearMissCalculator.java:40)
    4. com.github.tomakehurst.wiremock.verification.NearMissCalculator$2.apply(NearMissCalculator.java:38)
    4 frames
  3. wiremock.com.google
    FluentIterable.toSortedList
    1. wiremock.com.google.common.collect.Iterators$8.transform(Iterators.java:799)
    2. wiremock.com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
    3. wiremock.com.google.common.collect.Iterators.addAll(Iterators.java:362)
    4. wiremock.com.google.common.collect.Lists.newArrayList(Lists.java:160)
    5. wiremock.com.google.common.collect.Iterables.toCollection(Iterables.java:337)
    6. wiremock.com.google.common.collect.Iterables.toArray(Iterables.java:328)
    7. wiremock.com.google.common.collect.Ordering.immutableSortedCopy(Ordering.java:842)
    8. wiremock.com.google.common.collect.FluentIterable.toSortedList(FluentIterable.java:386)
    8 frames
  4. WireMock
    WireMockRule$1.evaluate
    1. com.github.tomakehurst.wiremock.verification.NearMissCalculator.sortAndTruncate(NearMissCalculator.java:57)
    2. com.github.tomakehurst.wiremock.verification.NearMissCalculator.findNearestTo(NearMissCalculator.java:38)
    3. com.github.tomakehurst.wiremock.core.WireMockApp.findNearMissesForUnmatchedRequests(WireMockApp.java:219)
    4. com.github.tomakehurst.wiremock.client.WireMock.findNearMissesForAllUnmatchedRequests(WireMock.java:496)
    5. com.github.tomakehurst.wiremock.WireMockServer.findNearMissesForAllUnmatchedRequests(WireMockServer.java:309)
    6. com.github.tomakehurst.wiremock.junit.WireMockRule.checkForUnmatchedRequests(WireMockRule.java:85)
    7. com.github.tomakehurst.wiremock.junit.WireMockRule.access$000(WireMockRule.java:33)
    8. com.github.tomakehurst.wiremock.junit.WireMockRule$1.evaluate(WireMockRule.java:73)
    8 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    2. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    4. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    5. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    6. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    7. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    8. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    9. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    10. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    10 frames
  6. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames