Search code examples
eclipsejavadoc

eclipse - unable to download sources and javadoc


Whenever I try to open declaration of a method or variable, I get this error:

An internal error occurred during: "Download sources and javadoc".
Unable to provision, see the following errors:

1) Error injecting constructor, java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
  at io.takari.aether.connector.AetherRepositoryConnectorFactory.<init>(Unknown Source)
  at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
  while locating io.takari.aether.connector.AetherRepositoryConnectorFactory
  while locating java.lang.Object annotated with *

1 error

I do a command + click on setSoLinger here, that's when I get that error

final SocketConfig.Builder socketConfigBuilder = SocketConfig.custom();
socketConfigBuilder.setSoLinger(someConfig.getSoLinger());

Solution

  • Executed mvn dependency:sources on the terminal and sources now started appearing in eclipse.