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(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.set(ArrayList.java:453)
at dummy.PlainStacktrace.main(PlainStacktrace.java:10)

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: 1853
Registered: July 2009
Senior Member
https://stackoverflow.com/questions/45412880/source-not-found-when-clicking-on-stacktrace

https://bugs.eclipse.org/bugs/show_bug.cgi?id=518829
Previous Topic:How to change this color in eclipse?
Next Topic:Fortify 3.6 Eclipse Plugin
Goto Forum:
  


Current Time: Wed Oct 09 23:31:11 GMT 2024

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

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

Back to the top