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

Solutions on the web

via GitHub by pedagogly
, 1 year ago
Unexpected exception, expected<gov.uspto.patent.PatentReaderException> but was<java.lang.NullPointerException>
via GitHub by carlosmiranda
, 2 years ago
Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.NullPointerException>
via Stack Overflow by Freddy Boucher
, 1 year ago
Unexpected exception, expected<java.lang.NullPointerException> but was<java.lang.IllegalArgumentException>
via GitHub by skrzepto
, 2 years ago
Unexpected exception, expected<org.cryptomator.crypto.exceptions.DecryptFailedException> but was<java.lang.IllegalArgumentException>
via GitHub by asteppke
, 2 years ago
Unexpected exception, expected<org.cryptomator.crypto.exceptions.DecryptFailedException> but was<java.lang.IllegalArgentException>
via GitHub by bilalyasar
, 2 years ago
Unexpected exception, expected<java.lang.AssertionError> but was<java.lang.NullPointerException>
java.lang.NullPointerException: 	at gov.uspto.patent.doc.pap.PatentAppPubParser.parse(PatentAppPubParser.java:67)	at gov.uspto.patent.PatentReader.read(PatentReader.java:78)	at gov.uspto.document.parser.dom4j.PatentParserTest.parseFailUnknownXMLType(PatentParserTest.java:20)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)	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.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)