Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » InterruptedException in aspectToolProvider
InterruptedException in aspectToolProvider [message #648720] Fri, 14 January 2011 08:40 Go to next message
Wojciech Trocki is currently offline Wojciech TrockiFriend
Messages: 64
Registered: May 2010
Member
Hello again. Smile
I use org.eclipse.papyrus.diagram.common.aspectToolProvider
Extension point.
I create my own aspect tool but when I try to change property stereotype, emf throws InterruptedException.

I look into papyrus code and apply stereotype post action throws this error too.
This blocks other aspect tools that are next in hierarchy.
For example when I create apply stereotype and then association end properties. Association end properties don't run.
Is any chance to fix this?

Thanks for answers

Re: InterruptedException in aspectToolProvider [message #648730 is a reply to message #648720] Fri, 14 January 2011 09:55 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi,

I did not succeed to reproduce this bug. Could i have more information about your configuration (which version of Papyrus, platform), and the error log corresponding to the exception

Cheers
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: InterruptedException in aspectToolProvider [message #648803 is a reply to message #648720] Fri, 14 January 2011 15:11 Go to previous messageGo to next message
Wojciech Trocki is currently offline Wojciech TrockiFriend
Messages: 64
Registered: May 2010
Member
Hello.
Big thanks for reply.

Steps to reproduce from user view:

1. Create new class diagram
2. Apply profile which have a which stereotype for association.
3. Go to palette and select customize
4. Create new local palette.
5. In appeared window (Local palette content) change components to profile related components ( UML tools to
profile name)
6. Change to visibility to metaclass --> Stereotypes.
7. Go to association and add new association with stereotype to palette.
8. At this point we have this
http://img717.imageshack.us/img717/2269/imgddj.jpg
9. Then add association end properties and set non custom values.
10. Use created element in diagram.
11. Association end properties don't work.
I debug this code and any of additional aspect actions failed to run, because StereotypePostAction produces exception.
Look at line 208 in StereotypePostAction
with editPart.performRequest(request);
this is the last call in this method.

I don't have log because i have problem with log4j.
I think that there is a problem with emf transactions mechanism.

For my own aspect provider I have the same situation.

I need this because I make workaroud for adding stereotypes for end properties in association.
User can't do this in diagram. I file this bug but anyone answers on it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333393

[Updated on: Sat, 15 January 2011 18:26]

Report message to a moderator

Re: InterruptedException in aspectToolProvider [message #649226 is a reply to message #648803] Tue, 18 January 2011 09:53 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi,

I tried to reproduce again thjis bug, but was not successful.

1. I created a test.profile.uml, with a stereotype that extends the metaclass Association. Save and define it.
2. Create a model with class diagram displaying 2 classes, and the previous profile applied on it.
3. customize the palette, using the tool Association with stereotype applied
4. add to this tool the post action on properties
5. set the target property aggregation = composite and navigable = no
6. set the source property = navigable
7. Use the tool on the diagram between the 2 classes: no exception, and it works.

Could you try the same steps with the following zipped project: Zipped project

I found the code editpart.performRequest at line 280. Was it a typo mistake from you?

HTH
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: InterruptedException in aspectToolProvider [message #649442 is a reply to message #648720] Wed, 19 January 2011 09:18 Go to previous messageGo to next message
Wojciech Trocki is currently offline Wojciech TrockiFriend
Messages: 64
Registered: May 2010
Member
Sorry for this misunderstand.
This is my fault. Seems to I that I have different version of papyrus.
In your version all work's fine. My produces Exception.
With version was used to check this bug?
------
Thank you so much for your time.

[Updated on: Wed, 19 January 2011 09:20]

Report message to a moderator

Re: InterruptedException in aspectToolProvider [message #649449 is a reply to message #649442] Wed, 19 January 2011 09:31 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
No problem, it is sometimes hard to understand the source of the bug Wink

I based the tests on the release 0.7.1 to test the code, and on the nightly build dating from last week also.

Cheers,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: InterruptedException in aspectToolProvider [message #649456 is a reply to message #649449] Wed, 19 January 2011 10:10 Go to previous messageGo to next message
Wojciech Trocki is currently offline Wojciech TrockiFriend
Messages: 64
Registered: May 2010
Member
I prepare new eclipse with papyrus from last nightly build.
Now editPart.performRequest(request); is on the right line, 280.
Your project was imported and customization created (xml here:
http://pastebin.com/DRCZ0k2N).
Adding association from palette make association with default values. Sad

-------------
I have this error when performing request in applystereotype:
Real error:
java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@11dca40 (name: St_Assoc, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false)

See: void org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.postcommit(InternalTransaction tx)


Produced error: POSTCOMMIT_FAILED
org.eclipse.emf.transaction.internal.EMFTransactionPlugin:
Uncaught exception during post-commit listener notifications

Any idea??

[Updated on: Wed, 19 January 2011 10:20]

Report message to a moderator

Re: InterruptedException in aspectToolProvider [message #649514 is a reply to message #649456] Wed, 19 January 2011 14:39 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi,

I tested against the new release 0.7.2 from today. I see no errors, it creates me the asked association. I compare the xml configuration files, which were the same (except of course the identifier numbers).

There should be something interacting in the diagram or in your environment. Do you only install Papyrus or some other projects?

Cheers,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: InterruptedException in aspectToolProvider [message #649519 is a reply to message #649456] Wed, 19 January 2011 14:44 Go to previous message
Wojciech Trocki is currently offline Wojciech TrockiFriend
Messages: 64
Registered: May 2010
Member
I found whats is going on.
This is not a palette bug but papyrus model listeners.
When papyrus model listener extension point is used post commit actions fails. Thats way this bug is not reproducible in your environment.
-----------------

Big thanks for support and your time.

[Updated on: Wed, 19 January 2011 15:09]

Report message to a moderator

Previous Topic:robustness diagram support in the future?
Next Topic:How to use OCL Specification with Papyrus
Goto Forum:
  


Current Time: Thu Apr 25 11:38:10 GMT 2024

Powered by FUDForum. Page generated in 0.04803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top