Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » "Source not found" when clicking into stacktrace on console
"Source not found" when clicking into stacktrace on console [message #1769426] Mon, 31 July 2017 13:21 Go to next message
Donny Dumb is currently offline Donny DumbFriend
Messages: 3
Registered: July 2017
Junior Member
Usually, clicking on a line in the stacktrace, the source file opens at the offending line. With Eclipse-oxygen (R with support for java9 installed) and java9 (u175) it shows a dialog "Source not found" if the source is somewhere inside the java modules. Source is found as expected, when navigating (by F3) in the editor.

What's/where's wrong and how-to fix it?

Below is a simple two-liner example which fails, showing the stacktrace - click on Array.set to see the error (maybe :):

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 5 out-of-bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(
at java.base/jdk.internal.util.Preconditions.checkIndex(
at java.base/java.util.Objects.checkIndex(
at java.base/java.util.ArrayList.set(
at dummy.PlainStacktrace.main(

The two-liner:

import java.util.ArrayList;

public class PlainStacktrace {

public static void main(String[] args) {
ArrayList list = new ArrayList();
list.set(5, "error");


Note: crosspost from SO (cant add link, so you have to check the eclipse tag... sigh)
Re: "Source not found" when clicking into stacktrace on console [message #1769474 is a reply to message #1769426] Mon, 31 July 2017 22:24 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1651
Registered: July 2009
Senior Member
Previous Topic:How to change this color in eclipse?
Next Topic:Fortify 3.6 Eclipse Plugin
Goto Forum:

Current Time: Tue Nov 20 13:59:18 GMT 2018

Powered by FUDForum. Page generated in 0.01309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top