Book a Demo

Author Topic: Not able to use JDWP in EA 9.3  (Read 16339 times)

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Not able to use JDWP in EA 9.3
« on: November 25, 2015, 11:07:50 pm »
I am trying to connect my java virtual machine running via commands in cmd with EA version 9.3. But there is no option of Java(JDWP) in execution analyzer of EA. How can I now debug the java code. I tried attaching to virtual machine option but a popout says that no agent is loaded in the process and I have no clue about it.
Please help me get out of these circumstances.
If the above query is not clear do tell me to write again
Thank you for pondering over.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #1 on: November 26, 2015, 08:21:34 am »
I'm not sure when the JDWP debugging was added, but I strongly suspect it was after 9.3.

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #2 on: November 26, 2015, 03:17:07 pm »
So any possible way to work around without jdwp or would I be able to achieve the same result with GDB debugging?
and what does it mean when pop out says that no agent is loaded whenever I try to attach to a virtual machine.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #3 on: November 26, 2015, 04:11:10 pm »
I just checked, JDWP first appeared in the release notes in version 10. You may be able to achieve some level of debugging using GDB, there's not much that I can do to help you with that though. Consider updating to the latest version, if only to save yourself the time.

The simple explanation for "no agent is loaded" is that EA doesn't know how to debug what you've requested.

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #4 on: November 26, 2015, 04:14:57 pm »
Thanks for the help.
I had debugged using the newer version but my company does not have license for the newer version that's why I was trying to debug using the older version. I have found out what jdb does for us the same work is done by GDB. So do you have any command in mind that will server the purpose of "java  -Xdebug -Xrunjdwp:transport=dt_shmem,address=debug,server=y,suspend=y,
address=58341"
Thanks once again

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #5 on: November 26, 2015, 04:37:49 pm »
I don't think you're going to get version 9.3 of EA communicating with that.

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #6 on: November 26, 2015, 04:41:22 pm »
And any suggestion how could I rectify the problem of no agent loaded into the process. I first run the debugger using  the eclipse and then try to connect EA with the port in use.
I also have tried connecting to the port which has the command "java  -Xdebug -Xrunjdwp:transport=dt_shmem,address=debug,server=y,suspend=y,
address=58341" running. But get the same error.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #7 on: November 27, 2015, 08:37:08 am »
I can't help you any more than by saying upgrade. 9.3 just won't do it and the money your employer is spending for you to try to get it to work is better spent on the upgrade.

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #8 on: December 02, 2015, 08:24:10 pm »
Thanks for the help.
One more thing I need to ask you. I have created a sequence diagram in the latest version of EA. Now I opened the eap model using EA9.3 and copied the sequence diagram in my project model of EA. When I checked in the changes made in the model and try verifying the diagram from other system the diagram was not viewable. Does the EA has no support for copied images from other eap models?
If my query is still unclear or confusing do tell me.
Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13522
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Not able to use JDWP in EA 9.3
« Reply #9 on: December 02, 2015, 08:31:52 pm »
You can simply open your model in the newest version of EA.
There's no conversion or anything necesarry.

Geert

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to open diagram copied in another mod
« Reply #10 on: December 02, 2015, 09:16:54 pm »
Yeah I am able to open it but the problem is that when the diagram existing in model "a" is copied(ctrl+c) and pasted(paste from clipboard) into another model, its not viewable to other users. Our project is accessible to many users and there is a system of locking a folder. So when I commit changes to the project, the pasted diagram is viewable from only my system and not other's.
Cant we copy a diagram into clipboard and paste it into another model? Will there be a problem?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13522
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Not able to use JDWP in EA 9.3
« Reply #11 on: December 02, 2015, 09:52:31 pm »
You cannot copy a diagram across models if the other model doesn't contain the elements and relations shown on that diagram.

The diagram is not an image, but it shows elements and relations to those elements.
Copying the diagram only copies the definition of which elements are on the diagram, and how they should look on that diagram (location, color etc).
But if the target model doesn't know the element, then it cannot be shown in the diagram.

You should really think about what you are trying to achieve to find the best solution for your case.

Geert


akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #12 on: December 02, 2015, 09:57:29 pm »
Excellent reply. Thank you
What if I export the diagram into png or bitmap format. and then paste it. Is that possible? Or what about importing from XMI file? Will that work?
If these steps failed then probably we may try the whole recording process in our project coz we just found that we might have a license for the newer version too.
Thanks in advance.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13522
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Not able to use JDWP in EA 9.3
« Reply #13 on: December 02, 2015, 10:45:07 pm »
Sure you can copy paste any image, in Enterprise Architect, but that's not really the same no.

If you have payed your yearly license renewal fee then your license for 9.3 is valid for version 12 or 12.1 as well.

Geert

akshit

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Not able to use JDWP in EA 9.3
« Reply #14 on: December 03, 2015, 03:48:53 pm »
I  was trying to register my current version of EA with  a registered key but when I entered key into EA no change occurs. Am I missing anything while upgrading? I have a key for EA 12.0.1209 while the EA that I am using is 12.0.1215. Will there be a problem in registration when one is using different builds.