java.lang.Exception

Unexpected exception, expected<gov.uspto.patent.PatentReaderException> but was<java.lang.NullPointerException>


Solutions on the web2019

Solution icon of github
via GitHub by pedagogly
, 7 months ago
Unexpected exception, expected<gov.uspto.patent.PatentReaderException> but was<java.lang.NullPointerException>

Solution icon of github
via GitHub by mkordas
, 9 months ago
Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<java.lang.NullPointerException>

Solution icon of github
Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.NullPointerException>

Solution icon of github
via GitHub by wildfly-ci
, 1 year ago
Unexpected exception, expected<javax.persistence.NoResultException> but was<java.lang.NullPointerException>

Solution icon of github
via GitHub by wildfly-ci
, 1 year ago
Unexpected exception, expected<javax.persistence.NoResultException> but was<java.lang.NullPointerException>

Solution icon of stackoverflow
Unexpected exception, expected<my.custom.exception> but was<java.lang.NullPointerException>

Solution icon of github
Unexpected exception, expected<java.lang.AssertionError> but was<java.lang.NullPointerException>

Solution icon of github
Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.NullPointerException>

Solution icon of googlegroups
via Google Groups by BriBixs, 1 year ago
Unexpected exception, > expected<java.io.IOException> but was<java.lang.NullPointerException>

Solution icon of github
Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.NullPointerException>

Stack trace

  • java.lang.Exception: Unexpected exception, expected<gov.uspto.patent.PatentReaderException> but was<java.lang.NullPointerException> at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:28) 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) Caused by: 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) ... 21 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.