Stacktrace links jump into compiled class, not source

build 8858. Recently I noticed that stacktrace links lead to compiled classes, not sources. Even if sources are available for the libs. Today my concern was confirmed when a testcase from the same module failed and produced a stacktrace, but IDEA still didn't link to testcase sources. Anyone observed this behavior? Bug?

In the example below EndpointSelectorTestCase is the test being executed:

================================================================================
= Testing: select endpoint default property =
= (org.mule.routing.outbound.EndpointSelectorTestCase) =
================================================================================
WARN ServerNotificationManager : Notification not delivered after ServerNotificationManager disposal: ServiceNotification{action=service disposed, resourceId=appleService, serverId=appleService, timestamp=1223503322984}

org.mule.api.routing.CouldNotRouteOutboundMessageException: You must supply a valid expression for property "expression" the invalid expression is "#[header:endpoint]". Failed to route event via endpoint: null. Message payload is of type: String
at org.mule.routing.outbound.EndpointSelector.route(EndpointSelector.java:61)
at org.mule.routing.outbound.EndpointSelectorTestCase.testSelectEndpointDefaultProperty(EndpointSelectorTestCase.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:235)
at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:215)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

1 comment
Comment actions Permalink

Hi,
I had exactly the same issue and it was driving me crazy, until I found this article, which gave me the idea: http://www.jetbrains.net/devnet/docs/DOC-92
Basically in my case I had the output path of my project (where the compiler puts the .class files compiled from my source) added in the project library (can't even remember why). Removed that entry from the library, and links work again from the stack trace. Your case may be similar, also check other points in the article.
You probably already solved this, bust I'm leaving this comment just for reference in case someone else has the same issue.

0

Please sign in to leave a comment.