Book a Demo

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 - Taz

Pages: [1] 2
1
General Board / Re: Anybody configured EA debugger for Java?
« on: May 09, 2008, 01:18:39 am »
I think I fixed the debugger now.  By using the full path to the source and binary files instead of relying on the root folder it is now working.  But only if I don't put breakpoints in the code or only in the class where the main() function is.  If I put breakpoints in any other class that is called by the main() function, the debugger throws again the same or similiar error messages that it doesn't find the class.

2
General Board / Anybody configured EA debugger for Java?
« on: May 07, 2008, 01:32:07 am »
I am getting very frustrated now after spending now over a week trying to configure the debugger in EA to work with java. Has anybody managed to configure it for java yet? I already posted a message about this in relation to generating Sequence Diagrams and also contacted Support, but so far no solution. If anybody could post any examples on how to configure it. Problem seems to be, that although I manage to run it, it doesn't seem to find the source code. I can see the source code and set breakpoints  in EA, but when debugging it, it gives the following error messages after loading the classpaths:


"Failed to find class Lcom/p1/p2/reporting".
"Failed to find class com/p1/p2/reporting".
"Failed to locate source file for class Lcom/p1/p2/reporting/RunReport;"
"Failed to locate source file for class com/p1/p2/reporting/RunReport;"
...

The strange thing is that the application seems to run fine as it then shows the exact output that is expected.


3
General Board / Re: How to setup debugger to Generate Sequence Dia
« on: May 09, 2008, 01:14:30 am »
I more or less found the solution to the debug problem. Instead of relying on the application root I had to put in the full path for the source and binary files. Doing this I managed to generate a sequence diagram from the class with the main method.  I thought, great, fantastic and went home in celebration mood yesterday.  

However, when I came back to work today and trying to generate a sequence diagram from a class that is called from the main() method, it wouldn't work. Throwing again errors that it can't find the class".  

So depending on where I put the breakpoints just now it works or doesn't work. Very strange indeed.  It's the same application. Both classes are in the same folder and used by that application.  Only difference, the one class has the main() function the other is called within the main() function.  So why can I set breakpoints in the main() function, and it generates the Sequence Diagrams, but not in the class, that is being called by the main() method? What am I missing?

4
After trying various things I eventually mangaged to get the 'debug' tab somewhat configured, but I still have problems.  I get the following error in my Output Window:

"Failed to locate source file for class Lcom/p1/p2/reporting/RunReport"

First I don't understand, where the "L" comes from. Should be "com/p1..."
Second, how do I specify where to look for the source files?




Debug
(Application (Enter Path)
 com.p1.p2.reporting.RunReport

(Enter any runtime variables below)
jre=C:\Program Files\Java\jdk1.6.0_05\jre\bin\client,-Djava.class.path=.;./lib;./config;./lib/commons-collections-3.2.jar;./lib/commons-configuration-1.3.jar;./lib/commons-lang-2.3.jar;./lib/commons-logging-1.1.jar;./lib/jtds-1.2.jar;./lib/log4j-1.2.14.jar;./lib/serializer.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xml-apis.jar;./lib/tar.jar;./lib/poi-3.0.2-FINAL-20080204.jar;./lib/poi-contrib-3.0.2-FINAL-20080204.jar;./lib/poi-scratchpad-3.0.2-FINAL-20080204.jar;./lib/commons-dbcp-1.2.2.jar;./lib/commons-pool-1.4.jar;./bin


5
Yes, it definately would be a worthy feature. There seems to be a lot of power in EA but tapping into it isn't always the easiest thing.  However, it would help if the documentation would show a little bit more detailed instructions on these difficult bits, especially more examples/screenshots. At the moment it's a bit patchy, they are there sometimes and then not there when it is crucial (at least for somebody like me who doesn't like to spend hours over documentations trying to figure them out ;-)).  Anyway, this isn't helping me at the moment. Any idea as to what I did wrong?

6
Yes I have the latest Eclipse Integration Plugin. That's why I hoped that this would take care of all these low level details.

7
I want to generate Sequence Diagrams from my code which apparently is supported but I have difficulties setting up all the required build scripts. I assumed that using the Eclipse PlugIn it wouldn't be necessary to go down having to manually configure all the java settings, but apparently, i was wrong.  I looked through the help files and found some instructions, but even with them I couldn't get it to work yet.  For example for the build script it only gives an example for Visual Studio to point to the solution file. What is the equivalent for Eclipse or do I have to use the java build.  For the Test Command I managed to get it working eventually by adding all classpathes (but I'm not sure if that should not be entered somewhere else).  For run it only said "Customer". I assume that is the class name but having a more complex class structure "com.p1.p2.p3.Customer" I'm not sure if I put the whole class structure in there or what else.   And for Debug I followed the example (jre=C:\Program Files\Java\jdk1.6.0_05) but am stuck with the class path as i don't understand why in the example it says "-Djava.classpath=%classpath1603%;C:\benchmark\java\example1". is %classpath1603% something I have to set up in my environment.  I tried to enter the classpathes as I added them for "test", but when trying to run it, I keep on getting the following error: "Please configure JRE variable in package".  

Here is what I entered so far:

Build:

C:\Eclipse\IDE\eclipse.exe "C:\Dev\workspaces\P1 Platform\build.xml"

Test:

java -classpath .;./lib;./config;./lib/commons-collections-3.2.jar;./lib/commons-configuration-1.3.jar;./lib/commons-lang-2.3.jar;./lib/commons-logging-1.1.jar;./lib/jtds-1.2.jar;./lib/log4j-1.2.14.jar;./lib/serializer.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xml-apis.jar;./lib/tar.jar;./lib/poi-3.0.2-FINAL-20080204.jar;./lib/poi-contrib-3.0.2-FINAL-20080204.jar;./lib/poi-scratchpad-3.0.2-FINAL-20080204.jar;./lib/commons-dbcp-1.2.2.jar;./lib/commons-pool-1.4.jar;./bin; com.p1.p2.reporting.RunReport ".\config\config.xml"

Run

com.p1.p2.reporting.RunReport

Debug

com.p1.p2.reporting.RunReport ".\config\config.xml"

run time variables:

jre = C:\Program Files\Java\jdk1.6.0_05,-classpath .;./lib;./config;./lib/commons-collections-3.2.jar;./lib/commons-configuration-1.3.jar;./lib/commons-lang-2.3.jar;./lib/commons-logging-1.1.jar;./lib/jtds-1.2.jar;./lib/log4j-1.2.14.jar;./lib/serializer.jar;./lib/xalan.jar;./lib/xercesImpl.jar;./lib/xml-apis.jar;./lib/tar.jar;./lib/poi-3.0.2-FINAL-20080204.jar;./lib/poi-contrib-3.0.2-FINAL-20080204.jar;./lib/poi-scratchpad-3.0.2-FINAL-20080204.jar;./lib/commons-dbcp-1.2.2.jar;./lib/commons-pool-1.4.jar;./bin

Any help greatly appreciated,

Thanks

8
General Board / Re: How to Generate DDL with Foreign Keys
« on: March 14, 2008, 12:12:09 am »
You're right, we missed that step.  What confused us was, that the diagram shows a FK constrained when you link two tables making us believe, that constrained was already created. When generating the code, it also dropped that FK constrained, but then didn't recreate it.

Thanks for your help.


9
General Board / Re: How to Generate DDL with Foreign Keys
« on: March 13, 2008, 10:35:33 pm »
Hi David,

Thanks for your reply.  We are using SQL Server 2005 and EA 7.1 (Build 827) and only have generated the Scripts so far which don't show the Foreign Key Constraints.

Taz

10
General Board / How to Generate DDL with Foreign Keys
« on: March 13, 2008, 03:34:04 am »
We created a data schema and generated the ddl for SQL Server 2005, but it seemed to miss the Foreign Keys.  Did we miss something. We clicked the Primary/Foreign Key Constraints in the "Generate Package DDL" dialog. The Primay Keys Constraints were created but not the Foreign Keys.  

11
General Board / Re: How to filter out Actors from Package
« on: February 28, 2008, 10:25:04 pm »
Yes I thought so much. Looking at the scope option, I guess I could set all actors as private and filter on that.   Thanks for the tip

12
General Board / Re: How to filter out Actors from Package
« on: February 27, 2008, 03:32:44 am »
How do you do filter on visibility of elements?  I just tried the following step:

1. I opened the Use Case Diagram in the package.
2. Selected an Actor and clicked "Set Feature Visibility"
3. Deselected all Attribute and Operation Visibility
4. Also selected "Hide Object Runstate in current diagram" for good measure
5. Saved the changes
6. Closed and Re-opened the parent package. Actor is still visible.

Is there anything else I have to do?

13
General Board / How to filter out Actors from Package
« on: February 27, 2008, 03:05:43 am »
I like to know if it is possible to filter out individual element types like actors, Initial and Final symbols, etc, from showing in a Package.  All I want to see are relevant information like the Use Cases, otherwise it ends up to cluttered.  

I noticed that in the "Set Feature Visibility" one can hide stereotyped features, so I added a stereotype to each Actor called "worker", and then put worker in as a stereotype to hide, but they still show up in the package.  

Ideally I would like an option where I can for example specifiy to only show Use Cases. Is this possible, and if not, is there anything that can be done?  

Thanks

14
General Board / How to display linked elements in package
« on: January 25, 2008, 07:17:04 am »
How can I get actors of a usecase diagram display in the parent package when the actores are linked (as Simple Link)?  It seems that they only show up when I make a copy but I really don't want to do this.  

15
Bugs and Issues / Re: Eclipse MDG integration problem
« on: March 15, 2008, 02:04:49 am »
I have the same problem.  Have you or anybody else found a fix for this problem? I'm using EA 7.1.827 with Eclipse 3.3.2.

Pages: [1] 2