Unable to download source code for libraries
Answered
Hello,
When I try to access, source code of a class in a library, I see a decompiled version of that class. On the top I do see "Download Sources..." link. Upon clicking that link I get an error message dialogue that says, unable to download source code. Here is the error I see the idea.log.
I was facing the same issue with 2018.3 and then I upgraded to 2018.3.1. But the issues persists. This functionality was working fine with older versions of Intellij
Can you please advise what am I missing?
2018-12-06 17:13:46,262 [ 185371] ERROR - #org.jetbrains.idea.maven - java.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/eclipse/aether/internal/impl/DefaultArtifactResolver;
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/eclipse/aether/internal/impl/DefaultArtifactResolver;
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:221)
at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:100)
at org.jetbrains.idea.maven.project.MavenArtifactDownloader.download(MavenArtifactDownloader.java:68)
at org.jetbrains.idea.maven.project.MavenProjectsTree.downloadSourcesAndJavadocs(MavenProjectsTree.java:1404)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorArtifactsDownloadingTask.perform(MavenProjectsProcessorArtifactsDownloadingTask.java:56)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:134)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:109)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:451)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.eclipse.aether.internal.impl.DefaultArtifactResolver.setLoggerFactory(Lorg/eclipse/aether/spi/log/LoggerFactory;)Lorg/eclipse/aether/internal/impl/DefaultArtifactResolver;
at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:1239)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:1194)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:1188)
at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:1057)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
... 3 more
2018-12-06 17:13:46,263 [ 185372] ERROR - #org.jetbrains.idea.maven - IntelliJ IDEA 2018.3.1 Build #IU-183.4588.61
2018-12-06 17:13:46,264 [ 185373] ERROR - #org.jetbrains.idea.maven - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2018-12-06 17:13:46,264 [ 185373] ERROR - #org.jetbrains.idea.maven - OS: Mac OS X
2018-12-06 17:13:46,265 [ 185374] ERROR - #org.jetbrains.idea.maven - Last Action: GotoDeclaration
2018-12-06 17:13:46,361 [ 185470] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-12-06 17:13:46,496 [ 185605] INFO - .diagnostic.PerformanceWatcher - Pushing Python language level to 0 roots in 0 SDKs took 0ms; general responsiveness: ok; EDT responsiveness: ok
2018-12-06 17:13:46,619 [ 185728] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 34ms; general responsiveness: ok; EDT responsiveness: ok
2018-12-06 17:13:46,680 [ 185789] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 61ms; general responsiveness: ok; EDT responsiveness: ok
2018-12-06 17:16:28,481 [ 347590] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.idea.perforce.perforce.ConnectionId
Please sign in to leave a comment.
Hello,
Please share screenshot of "Settings | Build, Execution, Deployment | Build Tools | Maven" and full idea.log after IDE restart and reproducing the issue.
Actually, I have also faced hazards to download the actual source code for the libraries. They take any guidance instructed by Mac uae that will guide them to resolve their issues very smoothly.
Here is the screen shot and complete log:
It's a known issie with Maven 3.6.0: https://youtrack.jetbrains.com/issue/IDEA-201282
Issue is fixed for the nearest update.
Thank you. As a workaround, I have changed maven settings in Intellij to use bundled maven (3.3.9).