JetBrains/intellij-community · error · SourceSearchException
Connection problem. See log for more details.
Error message
Connection problem. See log for more details.
What it means
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.
Source
Thrown at java/java-impl/src/com/intellij/jarFinder/SonatypeSourceSearcher.java:68
List<Element> artifactHintList = findElements("artifactHits/artifactHit/artifactLinks/artifactLink/classifier[text()='sources']/../../..", element);
if (artifactHintList.isEmpty()) {
return null;
}
groupId = element.getChildTextTrim("groupId");
String repositoryId = artifactHintList.get(0).getChildTextTrim("repositoryId");
return "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=" +
repositoryId + "&g=" +
groupId + "&a=" +
artifactId + "&v=" +
version + "&e=jar&c=sources";
}
catch (IOException e) {
indicator.checkCanceled(); // Cause of IOException may be canceling of operation.
LOG.warn(e);
throw new SourceSearchException("Connection problem. See log for more details.");
}
}
}
View on GitHub (pinned to be881553f2)
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.
Defensive patterns
Strategy: retry
Try / catch
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 } Prevention
- Allow-list oss.sonatype.org in corporate proxies/firewalls
- For snapshot/staging artifacts, consider attaching sources from the local ~/.m2 repository instead
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- Connection problem. See log for more details.
- ATTACH_VM_FAILED
- This template did not produce a Java class or an interface\n
- The file '{}' was expected to be of JAVA file type, but got:
- Cannot generate JavaDoc - no Java SDK is configured for the
AI-assisted analysis of JetBrains/intellij-community@be881553f2 (2026-08-14).
Data as JSON: /api/errors/bb0033de627c4344.
Report an issue: GitHub.