Eclipse: XXX is not a valid line number in YYY

When debugging a large-scale project, I use the links in the printout of the log to go directly to the corresponding file and line. Alas, in many cases I get the following popup:

XXX is not a valid line number in YYY.java

The following message will also appear in the main sub-window:

The JAR file M2_REPO\org\apache\...\some.jar has no source attachment.

Of course, I checked that:

  • M2_REPO (defined in Window \ Preferences \ Java \ Build Path \ Classparth Variables) correctly points to the maven repository
  • the path and file name in the above message are correct and the file exists
  • YYY.java has the string XXX and is indeed the source of the log message

What can an eclipse error do in this trivial task?
What other configuration might be installed incorrectly?

+5
3

Ctrl + Shift + R YYY.java. Eclipse , YYY.java . , , .

maven , M2_REPO\org\apache\...\some-version-sources.jar , some-version.jar Eclipse JAR.

, . , , Eclipse . → Maven → ... ...

+3

. apache tomcat :

SERVER: 2015 Jul 05, 13:11:58.311 (http-nio-8080-exec-4) DEBUG - (ForwardActionBean.java:41) forward

, "41 ForwardActionBean.java"

, , ForwardActionBean

: , , eclipse.

, , .

, , ( , , , ). , window- > preferences- > java- > compiler

enter image description here

0

java Eclipse ,

0

All Articles