java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

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

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.