Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - imichel

Pages: [1]
Uml Process / Attach to Java JVM for sequence diagram?
« on: June 04, 2016, 12:00:08 pm »
Hi all,

Has any one had an success in connecting to a running JVM and then generating sequence diagrams from it?   



General Board / Re: "Failed to find class" in Execution
« on: November 15, 2012, 01:10:49 am »
One more thing, my console the "failed to find class" messags is nested in other errors, as below:

[88796289]      Default Directory is C:\Program Files\Java\jre6\bin
[88796291]      Unhandled exception stacktrace:
[88796292]      0  ClassLoader.loadClass
[88796293]      1  Launcher$AppClassLoader.loadClass
[88796294]      2  ClassLoader.loadClass
[88796295]      3  URLClassLoader.findClass
[88796298]      4  AccessController.doPrivileged
[88796299]      5  URLClassLoader$
[88796300]      Unhandled exception stacktrace:
[88796301]      0  ClassLoader.loadClass
[88796303]      1  Launcher$AppClassLoader.loadClass
[88796304]      2  ClassLoader.loadClass
[88796306]      3  URLClassLoader.findClass
[88796307]      Failed to find class
[88796308]      Unhandled exception stacktrace:
[88796310]      0  ClassLoader.loadClass
[88796311]      1  Launcher$AppClassLoader.loadClass
[88796312]      2  ClassLoader.loadClass
[88796313]      3  URLClassLoader.findClass
[88796314]      4  AccessController.doPrivileged
[88796316]      5  URLClassLoader$
[88796317]      Unhandled exception stacktrace:
[88796318]      0  ClassLoader.loadClass
[88796319]      1  Launcher$AppClassLoader.loadClass
[88796321]      2  ClassLoader.loadClass
[88796322]      3  URLClassLoader.findClass
[88796405]      debug starts for C:\Program Files\Java\jre6\bin\javaw.exe
[88796410]      Failed to set breakpoint in file c:\code\myapplication\src\ at line 24

General Board / "Failed to find class" in Execution Analyzer Debug
« on: November 15, 2012, 01:06:12 am »
Hi All,

I am trying to connect EA to my running Jboss server and after that generate sequence diagrams as I use the application.  

The instructions in the EA help docs tell me to do 2 major things:

1) Add the agent dll path to my VM args
2) Add the root of the source code to my classpath.

For #1 it is successful because I am able to connect to the process.  For #2, I am getting an error when going to "Debug" which is:

[88796323]      Failed to find class

The path which I added to me classpath for #1 points to the directory which contains the "com" folder:


Does any one know what is going on?  

I am using Jboss Developer Studio 3.0 and have added the source location in the Launch Configuration of my server by going to the "Classpath" tab and then added "c:\code\myapplication\src" as a User Entry there.  

I am on version 8.0 of EA, although the DLL that comes with the install says "75" and it is associated to the vm like this:

 -agentpath:"C:\Program Files\Sparx Systems\EA\SSJavaProfiler75"



General Board / Re: Failed to locate source file for class
« on: April 21, 2011, 05:52:16 am »

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.



General Board / Re: Failed to locate source file for class
« on: April 21, 2011, 05:50:35 am »

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 []

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?



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

General Board / Failed to locate source file for class
« on: April 20, 2011, 04:55:47 am »

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 [];

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?



General Board / Re: How to manage coding updates across diagrams
« on: October 18, 2010, 10:29:00 pm »
Thanks so much for your help.  I'll try these steps, but do you know how to tell what the original sandbox/local path that was used to create the model is currently?  If I right click on the top-level model package and go to properties I don't see any path listed.



General Board / How to manage coding updates across diagrams
« on: October 16, 2010, 08:27:12 pm »

I have a class model which was imported from my co-workers local sandbox and reverse engineered.  After a few weeks I have updated the model with some new classes and modified some methods and I want to update the mode he imported.  In order to update the model I selected Code Engineering -> Import Source Directory and then checked "sychronize existing classes".  After the import was complete I see that EA did not overwrite my existing model but created a new namespace of the same name with my new classes.  This is fine as long as I can find out which diagrams reference my Class model.  There are literally hundreds of classes and I don't know which ones are referenced.   I'd like to be able to delete the old namespace and have all diagrams which referenced the old one point to the new namespace.  Is there a way to search for all diagrams which reference any of the classes in my model, without having to click on each model element and "Find References"?  This would take forever.  

Maybe I also did the import wrong, because I was expecting it to "sychronize" with the existing namespace.  I am importing from the same code base, just a different sandbox so I think EA might have gotten confused.  

Any thoughts?


Ian :-X

Bugs and Issues / Re: EA Stops Recording After Some Time
« on: December 22, 2009, 06:50:22 am »

One thing I found was the Output view in EA says during debug that it is looking for a third party java class (JakartaRelevelingLogger)

21/12/2009 14::42 Looking for class com.arjuna.common.internal.util.logging.jakarta.JakartaRelevelingLogger source in path C:\Workspace\jboss-4.2.2.GA\bin\com\arjuna\common\internal\util\logging\jakarta

I never see a line below it that says it found the class, like I do for my imported module source.

I also don't see any errors after this complaining that it can't find the source, so I don't really know if this is causing the issue.  One thing I've I tried is placing filters in the Debug Build Script tab labelled "Sequence Diagram Recording".  I tried these two filters but no luck:

com.arjuna.*::*  and com.arjuna.*

Any one have any other ideas why EA just stops recording?


Bugs and Issues / EA Stops Recording After Some Time
« on: December 22, 2009, 01:25:04 am »

I am connecting EA to a running JVM in order to generate sequence diagrams.  Do do this I've placed a "Start Recording" marker in the doGet() method of my servlet and nothing else.  I know that recording has started because I can generate the sequence diagram after 5-10 minutes, but it is incomplete.  Even after waiting an hour the sequence diagram is still stuck in the same spot in the code.  EA is still recording because the "Stop recording" menu item is available.  It seems like EA is hanging or something.  I'm pretty sure its not the code because the last method call in the sequence that I can generate is a a split() method on java.langString, or something similar.

I am thinking that there is some timeout setting in EA or on the JVM for the agent connection that I can change in order to allow EA to listen for extended periods of time to a running process.  Does any one know of a timeout setting I can play with?  

Any one have any other ideas on what could be happening?



Pages: [1]