Book a Demo

Author Topic: Failed to locate source file for class  (Read 3473 times)

imichel

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Failed to locate source file for class
« on: April 20, 2011, 04:55:47 am »
All,

I am in the process of trying to generate a sequence diagram from a running JVM using EA.  Whenever I add a breakpoint I get the following message in the Output window:

[22917576]      Failed to locate source file for class [path.to.Class];

If I go to this class in my Model I am able to right-click and use "View Source".  In addition I am able to use "Open Source Directory" option and it goes directly to the correct place in my filesystem.

I am thinking that this error is the reason why if I connect EA to the JVM process that the breakpoint isn't hit.

Any thoughts on how I can resolve this error?

Thanks

Ian

imichel

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Failed to locate source file for class
« Reply #1 on: April 21, 2011, 05:50:35 am »
All,

I got past this error and EA now says it can find my source while debugging/attaching to the Java process:

[26160067]      Found class [className] source in path [path.to.Source]

The problem I have now is that when I run my code my breakpoints are never hit.  There are no errors in the console so I don't have any good leads regarding what the problem is.  

The only two things I can think of now are:

1) I have the incorrect SSWinProfiler*.dll in the JAVA_OPT on my JVM.  The one that came with the EA sparx 8.0 disttibution has SSWinProfiler75.dll version, but in the docs it says to add SSWinProfiler80.dll.
2) EA doesn't link the source with the running JVM and isn't throwing the error.

Any one have any thoughts on how I can solve the problem?


Thanks,

Ian

Does any one have an idea of what is going on?

imichel

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Failed to locate source file for class
« Reply #2 on: April 21, 2011, 05:52:16 am »
All,

I forgot to mention how I solved the initial problem.

I solved the intial issue by adding the source path to the CLASSPATH of my running JBoss server by going to the JBoss IDE Launch Configuration, "Classpath" tab, and then adding a "User Entries" path which is the path to the source where the application is being built/deployed to the server.

Thanks,

Ian