Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/648720/#msg_648720
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
]]>Wojciech Trocki2011-01-14T08:40:19-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/648730/#msg_648730
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 Schnekenburger2011-01-14T09:55:07-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/648803/#msg_648803
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
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]]>Wojciech Trocki2011-01-14T15:11:54-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649226/#msg_649226
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 Schnekenburger2011-01-18T09:53:31-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649442/#msg_649442
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. ]]>Wojciech Trocki2011-01-19T09:18:56-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649449/#msg_649449
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 Schnekenburger2011-01-19T09:31:17-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649456/#msg_649456
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.
-------------
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)
Produced error: POSTCOMMIT_FAILED
org.eclipse.emf.transaction.internal.EMFTransactionPlugin:
Uncaught exception during post-commit listener notifications
Any idea??
]]>Wojciech Trocki2011-01-19T10:10:21-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649514/#msg_649514
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 Schnekenburger2011-01-19T14:39:13-00:00Re: InterruptedException in aspectToolProvider
https://www.eclipse.org/forums/index.php/mv/msg/203000/649519/#msg_649519
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.
]]>Wojciech Trocki2011-01-19T14:44:26-00:00