Facing FATAL: sun/net/www/protocol/http/AuthCache java.lang.NoClassDefFoundError: sun/net/www/protocol/http/AuthCache

64 views
Skip to first unread message

Kedar Madiwale

unread,
Nov 23, 2015, 6:35:08 PM11/23/15
to Black Duck Vulnerability Report
Hello,

I am reviewing BlackDuck Vulnerabilities plug-in with Jenkins v 1.638. After installing the plug-in and accepting all the certs, I ran one of the projects and passed it through this plug-in. However, I get following error

[INFO] Black Duck Vulnerability Report plugin version : 1.1.5
[DEBUG] Adding Action com.blackducksoftware.integration.freemium.jenkins.reporting.VulnerabilityReportBomReportAction@72ecfb94
[DEBUG] BuildInfo :1==1
[DEBUG] Jenkins server Id : a36c3e6a150c1aea
FATAL: sun/net/www/protocol/http/AuthCache
java.lang.NoClassDefFoundError: sun/net/www/protocol/http/AuthCache
	at com.blackducksoftware.integration.freemium.jenkins.VulnerabilityReportReportGenerator.getRestService(VulnerabilityReportReportGenerator.java:344)
	at com.blackducksoftware.integration.freemium.jenkins.VulnerabilityReportReportGenerator.generateReport(VulnerabilityReportReportGenerator.java:138)
	at com.blackducksoftware.integration.freemium.jenkins.maven.VulnerabilityReportMavenReporter.end(VulnerabilityReportMavenReporter.java:268)
	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.ClassNotFoundException: sun.net.www.protocol.http.AuthCache
	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:696)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1387)
	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1080)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 10 more

Am I missing any configuration, I suppose I do not have to install anything separately.

James Richard

unread,
Nov 23, 2015, 7:47:29 PM11/23/15
to Black Duck Vulnerability Report
Hello Kedar,

That class should be provided by Java. Can you supply the version of the JRE or JDK that is being used in this particular Build?

Thank you!
-James R.

Kaj Kandler

unread,
Dec 16, 2015, 3:48:05 PM12/16/15
to Black Duck Vulnerability Report
Kedar, et.al.
we have identified the issue and are working on a solution. Not sure when it does pass our QA and release pipeline.

Kaj
Reply all
Reply to author
Forward
0 new messages