{"record":{"id":"bb0033de627c4344","repo":"JetBrains/intellij-community","slug":"connection-problem-see-log-for-more-details-bb0033","errorCode":null,"errorMessage":"Connection problem. See log for more details.","messagePattern":"Connection problem\\. See log for more details\\.","errorType":"exception","errorClass":"SourceSearchException","httpStatus":null,"severity":"error","filePath":"java/java-impl/src/com/intellij/jarFinder/SonatypeSourceSearcher.java","lineNumber":68,"sourceCode":"      List<Element> artifactHintList = findElements(\"artifactHits/artifactHit/artifactLinks/artifactLink/classifier[text()='sources']/../../..\", element);\n      if (artifactHintList.isEmpty()) {\n        return null;\n      }\n\n      groupId = element.getChildTextTrim(\"groupId\");\n      String repositoryId = artifactHintList.get(0).getChildTextTrim(\"repositoryId\");\n\n      return \"https://oss.sonatype.org/service/local/artifact/maven/redirect?r=\" +\n                           repositoryId + \"&g=\" +\n                           groupId + \"&a=\" +\n                           artifactId + \"&v=\" +\n                           version + \"&e=jar&c=sources\";\n    }\n    catch (IOException e) {\n      indicator.checkCanceled(); // Cause of IOException may be canceling of operation.\n\n      LOG.warn(e);\n      throw new SourceSearchException(\"Connection problem. See log for more details.\");\n    }\n  }\n}\n","sourceCodeStart":50,"sourceCodeEnd":72,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/java-impl/src/com/intellij/jarFinder/SonatypeSourceSearcher.java#L50-L72","documentation":"SonatypeSourceSearcher asks oss.sonatype.org for the staging repositoryId of an artifact and builds a redirect URL to its sources jar; any IOException during those requests is logged and wrapped in SourceSearchException('Connection problem. See log for more details.'). As in the Maven Central searcher, checkCanceled() is invoked first to distinguish user cancellation from a genuine network fault, and the logged warn carries the real cause.","triggerScenarios":"The jar-finder flow falls back to Sonatype search (typical for artifacts not on Central, e.g. snapshots/staging builds) and the HTTP calls to oss.sonatype.org fail with IOException — offline, proxy-blocked, DNS failure, or service unavailable.","commonSituations":"Trying to download sources for snapshot/staging artifacts behind a corporate proxy; oss.sonatype.org being slow or down; environments with allow-listed domains that exclude Sonatype.","solutions":["Inspect idea.log for the underlying IOException (URL, status, timeout) logged by SonatypeSourceSearcher.","Ensure the IDE proxy settings cover oss.sonatype.org and test with 'Check connection'.","If Sonatype is blocked, manually download the sources jar and attach it via Library Properties | Attach Sources."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { url = sonatypeSearcher.findSourceJar(...); } catch (SourceSearchException e) { // generic message; root IOException is in idea.log — retry after connectivity check or fall back to manual attach }","preventionTips":["Allow-list oss.sonatype.org in corporate proxies/firewalls","For snapshot/staging artifacts, consider attaching sources from the local ~/.m2 repository instead"],"tags":["network","sonatype","sources","proxy","ide"],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}