{"record":{"id":"7ea3a60534bac6ed","repo":"JetBrains/intellij-community","slug":"connection-problem-see-log-for-more-details","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/MavenCentralSourceSearcher.java","lineNumber":56,"sourceCode":"      }\n      if (artifactList.size() == 1) {\n        return \"https://repo1.maven.org/maven2/\" +\n               artifactList.get(0).getValue().replace('.', '/') + '/' +\n               artifactId + '/' +\n               version + '/' +\n               artifactId + '-' +\n               version + \"-sources.jar\";\n      }\n      else {\n        // TODO handle\n        return null;\n      }\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":38,"sourceCodeEnd":60,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/java-impl/src/com/intellij/jarFinder/MavenCentralSourceSearcher.java#L38-L60","documentation":"MavenCentralSourceSearcher queries Maven Central over HTTP to locate a '-sources.jar' for classes missing from attached libraries (the 'Choose Sources' / jar-finder flow). Any IOException during the request — DNS failure, timeout, proxy refusal, HTTP error surfacing as IOException — is logged (LOG.warn) and rethrown as SourceSearchException with this generic connection message. indicator.checkCanceled() runs first so a user cancel does not masquerade as a network failure.","triggerScenarios":"Calling the source-search API (e.g. via JarFinder/'Attach Sources' downstream calls to MavenCentralSourceSearcher.findSourceJar) while offline, behind a blocking proxy, with DNS issues, or when repo.maven.apache.org is unreachable.","commonSituations":"Corporate networks with mandatory proxies not configured in IDE HTTP settings; VPN dropping; firewall blocking repo.maven.apache.org; transient Maven Central outages.","solutions":["Check the IDE log (idea.log) — the original IOException with URL/status is logged just before this exception is thrown.","Configure/verify proxy: Settings | Appearance & Behavior | System Settings | HTTP Proxy, then 'Check connection' against https://repo.maven.apache.org.","Retry once connectivity is restored; transient Central hiccups are common."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// Probe connectivity before triggering source search\njava.net.HttpURLConnection c = (java.net.HttpURLConnection) new java.net.URL(\"https://repo.maven.apache.org/maven2/\").openConnection();\nc.setConnectTimeout(3000);\nc.setRequestMethod(\"HEAD\");\nif (c.getResponseCode() / 100 != 2) { notifyUser(\"Maven Central unreachable — check proxy/network\"); return; }","typeGuard":null,"tryCatchPattern":"try { searcher.findSourceJar(fqName); } catch (SourceSearchException e) { /* message is generic; consult idea.log for the IOException root cause */ scheduleRetryOrPromptManualAttach(); }","preventionTips":["Configure and test the IDE proxy for repo.maven.apache.org","Attach sources jars manually when the network is known-restricted","Check idea.log for the logged IOException instead of guessing"],"tags":["network","maven","sources","proxy","ide"],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}