Skip to content

NullPointerException in HTMLFormatter #283

Closed
@aslakhellesoy

Description

From Shenoy Venugopal on my blog

java.lang.reflect.UndeclaredThrowableException
at $Proxy12.done(Unknown Source)
at cucumber.junit.JUnitReporter.done(JUnitReporter.java:141)
at cucumber.junit.Cucumber.run(Cucumber.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:90)
... 9 more
Caused by: java.lang.NullPointerException
at cucumber.formatter.HTMLFormatter.writeBytes(HTMLFormatter.java:161)
at cucumber.formatter.HTMLFormatter.copyReportFiles(HTMLFormatter.java:154)
at cucumber.formatter.HTMLFormatter.done(HTMLFormatter.java:107)
... 14 more

I assume he is using Cucumber-JVM 1.0.0 or 1.0.1, and the helloworld example.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions