org.apache.velocity.exception.MethodInvocationException

Invocation of method 'url' in class org.owasp.dependencycheck.reporting.EscapeTool threw exception java.lang.NullPointerException at templates/HtmlReport.vsl[line 568, column 122]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web75

  • via Unknown by Tim Webster,
  • Stack trace

    • org.apache.velocity.exception.MethodInvocationException: Invocation of method 'url' in class org.owasp.dependencycheck.reporting.EscapeTool threw exception java.lang.NullPointerException at templates/HtmlReport.vsl[line 568, column 122] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:151)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)[16:27:54] at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)[16:27:54] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)[16:27:54] at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1378)[16:27:54] at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1314)[16:27:54] at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:272)[16:27:54] at org.owasp.dependencycheck.reporting.ReportGenerator.generateReport(ReportGenerator.java:255)[16:27:54] at org.owasp.dependencycheck.reporting.ReportGenerator.generateReport(ReportGenerator.java:307)[16:27:54] at org.owasp.dependencycheck.reporting.ReportGenerator.generateReports(ReportGenerator.java:173)[16:27:54] at org.owasp.dependencycheck.reporting.ReportGenerator.generateReports(ReportGenerator.java:203)[16:27:54] at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.writeReports(BaseDependencyCheckMojo.java:817)[16:27:54] at org.owasp.dependencycheck.maven.CheckMojo.runCheck(CheckMojo.java:83)[16:27:54] at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute(BaseDependencyCheckMojo.java:342)[16:27:54] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)[16:27:54] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)[16:27:54] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)[16:27:54] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)[16:27:54] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)[16:27:54] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)[16:27:54] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)[16:27:54] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)[16:27:54] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)[16:27:54] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)[16:27:54] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)[16:27:54] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)[16:27:54] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)[16:27:54] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[16:27:54] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[16:27:54] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[16:27:54] at java.lang.reflect.Method.invoke(Method.java:606)[16:27:54] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)[16:27:54] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)[16:27:54] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)[16:27:54] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)[16:27:54] Caused by: java.lang.NullPointerException at java.net.URLEncoder.encode(URLEncoder.java:205)[16:27:54] at org.owasp.dependencycheck.reporting.EscapeTool.url(EscapeTool.java:47)[16:27:54] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[16:27:54] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[16:27:54] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[16:27:54] at java.lang.reflect.Method.invoke(Method.java:606)[16:27:54] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)[16:27:54] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)[16:27:54] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)[16:27:54] ... 40 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

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    marcbouvierdavmarcbouvierdav
    2 times, last one
    3 more bugmates