UML modelling - exceptions

Hi!
I use the version 10.1.3.3 of JDeveloper.
I'd like to create the documentation to some projects of mine and JDev seems to be a perfect tool for it, permiting to put the UML diagrams into the packages.
However, I have the following problem. My UML book says (along with many sources in Internet) that the best method to represent exceptions in UML is by using stereotypes. Now, this feature is afaik not available in my version of JDev.
I can put the exception class on the diagram form, but I can't find any sensible solution on how to connect the class (let's say MyClass) to the exception class (let's say MyClassExc).
I came up with 2 ideas. Either not show expeptions at all, or connect them to the classes by using "dependencies" (correct me if I'm wrong but it's not be most clear way to do it)
Please, give me some ideas on how to adequatelly model exceptions in JDev's UML tool (class diagram).
Thanks in advance,
Paul

Hi,
Sadly you can't set a collection type of the UML elements so when they are converted to Java they become different collection types.
You can our course set the collection types when you have transforms to java using the association dialog. You will find that subsequent transforms will preserve the collection type on the java side though.
Sorry we can't be more helpfull,
Gerard

Similar Messages

  • JSE8: UML modeling: xmi.content vanished - model empty

    Dear fellow users of Sun Java Studio Enterprise 8,
    does anybody know how the following problem can be solved?
    We were using the UML modeling features of Studio Enterprise 8 during the last three weeks. We have built a large class model (to large to be viewed in readable size on screen) with approximately 100 - 130 classes.
    Yesterday evening the elements (the classes) vanished from the model, while the diagrams were still there.
    The only thing we managed to save: We exported the diagram of our largest package as an image.
    After restarting the Studio Enterprise 8. The model elements are still missing and the diagrams are as white as a new sheet of paper.
    Today I found the reason.
    The file projectname.etd has an <xmi.content> tag which should look like:
    <XMI.content>
         <UML:Project xmi.id="DCE.4DFCDEFB-3003-25C2-82D8-86B80EEE0FE0" mode="Implementation" defaultLanguage="Java" projVersion="6.1.4.837" name="project_name"/>
              <UML:Element.ownedElement>
                   <UML:Class xmi.id="DCE.31A83F15-DD39-5D33-0A64-3F0FC85F1B80" name="element_name" owner="DCE.3C3E618B-9CEE-832E-69DE-6C425C30AD0A">
                        <UML:Element.presentation>
                        </UML:Element.presentation>
                        <UML:Element.ownedElement>
                             <UML:Operation xmi.id="DCE.29EBA057-151F-C131-1C5F-D37B99A0CA80" name="operation_name" isConstructor="true" owner="DCE.31A83F15-DD39-5D33-0A64-3F0FC85F1B80"/>
                        </UML:Element.ownedElement>
                   </UML:Class>
              </UML:Element.ownedElement>
              ... more elements ...
         </UML:Project>
    </XMI.content>Instead the UML:Project tag is empty. The <xmi.content> tag in our projectname.etd looks now like this:
    <XMI.content>
         <UML:Project xmi.id="DCE.4DFCDEFB-3003-25C2-82D8-86B80EEE0FE0" mode="Implementation" defaultLanguage="Java" projVersion="6.1.4.837" name="project_name"/>
    </XMI.content>All other files like diagram_name_1148975434695.etld and diagram_name_1148975434695.etlp seem to be intact.
    If you know how to restore the content of the projectname.etd file from the .etld and .etlp files, we would appreciate to read your answer here.
    Thank you for your time!

    Dear Petersl, dear Jyothi and dear fellow users of Sun Java Studio Enterprise 8,
    unfortunatly we are not able to generate the diagrams from source code since we didn't generate any source code in the first place.
    We were just trying to recall the last steps before the data vanished. This is what we think we did:
    We intended to rename the UML project. Since we couldn't do this we created a whole new project grabbed the packages from the model tree in our old project and dragged and dropped them onto the model tree in the new project.
    When we were asked to decide wether to import or to move the packages, we decided for import. But we didn't like our packages in the imported elements tree. So we moved them back without being prompted.
    Then we moved them to the new model (instead of importing them). Everything worked fine.
    Here I have to correct myself: The model elements didn't vanish while the Studio Enterprise was running - they were still there until we finished the program.
    We exported the image of our largest diagram, saved (we are absolutly sure we did) and shut the Studio Enterprise down.
    When we started Sun Java Studio Enterprise the next day the modell content had gone.
    (We are working on MS Windows XP Professional SP2 w/o admin rights. Our usr home direktory is on the network - we get an exception each time we start the Java Studio Enterprise 8 because some logfiles can't be deleted from the user home directory. We also had problems with the installation of Java Studio Enterprise 8: the paths were to long for the network installation software. So we had to install it locally on each workstation by means of temporary administrator privileges.
    We use Java Studio Enterprise 8 and we had run an update before the incident.)
    I hope this will help you.
    Thank you for your time!
    PS: What are those Duke Dollars good for? Can you buy something with them?
    Message was edited by:
    rekoj

  • Transform Ecore model to UML model

    Hi everyone,
    I need to convert Ecore models to their equivalent representation in UML. For that purpose I'm trying to use the atl script in the following link (http://emftriple.googlecode.com/svn/tags/0.6.1/com.emf4sw.uml/src/com/emf4sw/uml/resources/Ecore2UML.atl).
    It works fine with the exception of not setting the types of UML Properties. I've allowed inter-model references and then I got the following exception which I understand but do not know how to fix:
    org.eclipse.emf.ecore.impl.EDataTypeImpl cannot be cast to org.eclipse.uml2.uml.Type
    which is caused by this rule:
    rule EAttribute2Property {
    from e: Ecore!EAttribute
    to
    u: UML!Property (
    name <- e.name,
    type <- e.eType,
    upper <- e.upperBound,
    lower <- e.lowerBound
    I understand that an ecore type cannot be directly mapped to a UML type. What I need is a function that checks the ecore type and then returns the corresponding UML primitive type.
    I've tried the following test, but since I do not have the UML primitive types loaded it does not returns nothing:
    type <- UML!PrimitiveType.allInstances() -> select(e | e.name = 'String').first()
    In addition, I know that the destination model (UML) must contain the following XML in order to import the UML primitive types:
    <packageImport xmi:id="_ZhW94SBFEeO_m-zgIyufMQ">
    <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
    </packageImport>
    Can anyone help me with this?
    Thanks in advance!

    I solved this issue last week by importing the model with the UMLPrimitiveTypes and then I've defined a helper that receives the Ecore type and return its corresponding UML type.
    helper def : getMappingType(input : Ecore!ETypedElement) : UML!Type =
    if(input.name = 'EString') then Library!PrimitiveType.allInstancesFrom('IN_Library')->any(e|e.name='String')
    else if(input.name = 'EBoolean') then Library!PrimitiveType.allInstancesFrom('IN_Library')->any(e|e.name='Boolean')
    else if(input.name = 'EInt') then Library!PrimitiveType.allInstancesFrom('IN_Library')->any(e|e.name='Integer')
    else if(input.name = 'EDouble') then Library!PrimitiveType.allInstancesFrom('IN_Library')->any(e|e.name='Real')
    else OclUndefined
    endif endif endif endif;
    rule EAttribute2Property {
    from e: Ecore!EAttribute
    to
    u: UML!Property (
    name <- e.name,
    type <- thisModule.getMappingType(e.eType),
    upper <- e.upperBound,
    lower <- e.lowerBound
    Thanks anyway!

  • Why does R/3 have no ABAP UML modelling tools integrated?

    I find it strange that SAP tout the benefits of OO programming and ABAP classes, then completely fail to provide a UML round trip modelling tool integrated into the ABAP workbench.
    Doesn't this display a lack of foresight on SAPs behalf? I mean, if you are serious about the use of OO software, shouldn't you be serious about providing the framework such as UML modelling tools to facilitate optimal development?
    Currently if I design a solution with ABAP objects, I am using Altova UModel to document the solution, but the lack of integration with the ABAP environment means that I am always struggling to keep the code and model in sync.
    does anybody have similar views on this? If views are in accordance, couldn't the SDN community try to lobby SAP to provide such a tool?

    Hello Anthony
    I document my ABAP-OO developments with Altova UModel, too. A colleague recently showed me that the NetWeaver Developer Studio has UML functionality but for Java developments only (where round-trip engineering is already commonplace).
    I assume that the problem with ABAP round-trip engineering is the ABAP dictionary. With Java you have the simple data types and the the class hierarchies of Java. In ABAP we also need the dictionary types.
    I would appreciate to have such UML tools for ABAP available, yet I do not expect them to become available in the near future.
    Regards
       Uwe

  • With weblogic workshop 9.2 I see Java Model Exception

    Hello,
    With workshop 9.2 I see error window displayed when importing projects form my zip file.
    com.bea.wlw.controls.core.publish.AssemblyException: Java Model Exception: Java Model Status [EJBproject does not exist]
    at com.bea.wlw.controls.core.publish.ClassPathBuilder.buildClassPathImpl(ClassPathBuilder.java:45)
    at com.bea.wlw.controls.core.publish.ClassPathBuilder.buildClassPathImpl(ClassPathBuilder.java:34)
    at com.bea.wlw.controls.core.publish.ClassPathBuilder.buildClassPath(ClassPathBuilder.java:18)
    at com.bea.wlw.controls.core.validation.ControlValidator.build(ControlValidator.java:69)
    Why this is happening ?
    Liang Zhong

    Hello Liang,
    I've seen a similar issue occur in Workshop 9.2 when I import a set of projects which have interdependencies. In my case the error window is displayed and then disappears as soon as the build is able to find the class.
    If this is the same behavior you are seeing in Workshop 9.2 then you can safely ignore the window
    This issue has been fixed in the newer Workshop build.
    cheers
    Raj

  • UML Modeling in JDeveloper 10.1.3

    Hello, I would like to ask is it possible for me to use the UML modeling functions in JDeveloper 10.1.3 to generate Java sources or classes? And how could I use it if possible? Is there any tutorials on the Web that about using UML modeling functions in JDeveloper 10.1.3? Thanks for any advance.

    Yes you can use UML in JDeveloper and even generate Java classes from the diagram.
    You can find some UML demos that we did for the previous version of JDeveloper here:
    http://www.oracle.com/technology/products/jdev/viewlets/1012viewlet.html
    And more information is in the online help.

  • Java Model Exception

    I have a DC which uses another DC.
    The Used DC has a Model in it.
    When I sync and create Project for the main DC (ie Using DC), it gives an Exception (Java Model Exception).
    Also it says that .classpath  file is read-only.
    I had some nodes  in the using DC structure boubded with the Model(which is in Used DC).
    But now becoz of this Exception, all structure bounded nodes(in using DC) are in error.
    I had the Model in "Used Models"  of the main DC but that also does not seem to appear now.
    Please suggest a solution
    The exact exection is org.eclipse.jdt.core.JavaModelException: File /GGD_NPIDEV_Dsnsnpiadminconfig~pg.com/.classpath is read-only.
    Regards
    Mrinalini
    Edited by: Mrinalini_Sharma on Mar 8, 2010 12:47 PM

    Hi Saravanam,
    One more information about my  scenario.
    In the open activities view, I can see that the name of development configuration is followed by number 1 and 2 in brackets like
    VBD_FPIDEV_D(1)(2). The actual name of the devlopment configuration is VBD_FPIDEV_D. Why are numbers 1 and 2 following the name. It appears in the same way in Activation view and in Transport view too.

  • Mapping Code to Design with UML Modelling

    Hello
    I want to know if I could map code to design automatically with using UML modelling function using JDeveloper 10.1.3? What I mean is... I know I could transform Java classes from Class Diagram, but, how about mapping code automatically with Sequence Diagram? By the way, what is the main function provides to us for other diagrams besides Java Class Diagram? Thank you.
    Charoite

    You can create a sequence diagram from a debugger session in JDeveloper by adding a breakpoint to your existing code and then picking Debug -> Debug with diagram. Every time you step into a class the sequence diagram will update, you can then save the diagram after ending your debug session and edit it from publication.
    JDeveloper does not support creating java code from the sequence diagram.
    Thanks,
    Geoff

  • Mapping UML Model to Database Schema

    Hi All,
    Is it possible to map UML business object model on database schema using Mapping Workbenck? I've done the mapping with imported java classes, but wodering if same could be done with the UML models. I couldn't find any documentation about it either. This feature may be very useful in cases where you want to incorporate TopLink in the design stages of a project.
    Any help will be highly appreciated. Thanks.

    Hi Sharad,
    I agree that incorporating design time practices into this tool might be useful, but is not supported as you described.
    From the perspective of application development, I find it useful to first develop the object model in an IDE such as JDeveloper which supports UML (Which will automatically allow you to deploy the .class files of the project). I point my MW project to the output location of my .class files which seems to work great as I can make changes to the object model in the IDE and easily refresh the contents in the MW.
    I hope this helps.
    Darren

  • UML Modeling: Round Trip Engineering

    Hi!
    Yesterday I worked through and tested the UML Modeling: Developing Applications tutorial. Everything worked awsome and I managed to complete step in the tutorial.
    Today, when I started the studio and wanted to play a little more with Round Trip Engineering I found something strange.
    If I add an operation to the java-source using the source editor it do not show up in the UML class diagram but if I add an operation to the UML class diagram it shows up in the java-source.
    Is it me that is doing anything wrong?
    Is this a known issue/bug?
    Win XP Professional
    Java Studio Enterprise 8 with latest update today.
    Sincerely,
    // Paul

    Paul,
    Glad to hear you like the UML tool. Not sure which release/version you are working with so I'll try to cover all the bases hear.
    The UML module was released with the Enterprise Pack (early access version I believe), the live roundtrip was still enabled. Then we pulled UML module out of the Enterprise Pack because we needed to do some overhauling of the roundtrip feature and we didn't want to prevent Enterprise Pack from going beta, so now UML is available via the beta update center. This version of UML has the live roundtrip disabled so that code is not generated with every model manipulation and the model is not updated with every source edit. It sounds like this is the version you are working with.
    There is a strange scenario where the live roundtrip is unintentionally enabled (live roundtrip should never be enabled... ever - this is not your fault). A bug was filed and I fixed it, but the fix was integrated into a different branch than the one available via the update center. This is because we are about to release Java Studio Enterprise 8.1 and so we did all the bug fixing on that branch and all those fixes will be merged with the UML that is on the update center, probably in the next week or two, but a date has not been decided, yet.
    In summary, rest assured that the issue (and many many others) have been addressed, and those fixes will be merged into the version available on the update center very soon.
    Please keep the feedback coming on reverse engineering and code generation as we are rebuilding these features from scratch for NetBeans 6.
    thanks
    craig

  • Creating class diagrams with the Endevo UML Modeller

    I need to create a UML class diagram from existing LabVIEW 2009 projects and classes.  Has anyone had any experience using the Endevo UML Modeller 1.2 to do this?  The web site does not have an evaluation version of the UML Modeller.

    Try cross-posting (mention the cros post) on the LAVA OOP forum here.
    The develpers from Endvo watch that fourm and reply regularly to GOOP questions.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • UML modeller is so buggy that it's almost useless

    Looks like JSE 8 is released without quality control, at least the UML modeller part of it. I have been now trying to draw one complex sequence diagram 4 hours. Elements jump around randomly, lines go to wherever they want, sometimes you cannot assign label to messages, sometimes you do.
    There is no undo. After you have 12 elements and you do something which makes layout manager suddenly go haywire giving elements random positions, you cannot undo. Draw those 12 elements again. Now, imagine the situation with 50 elements.
    The last straw that broke camel back was that after I finally got my diagram "almost readable state" saved it and reopened it, the formatting was totally broken. All work lost. Here is a screenshot:
    http://www.ee.oulu.fi/~moo/sun_just_cant_do_it.JPG
    Hell, I would have been finished in half of a time with MS PowerPoint and have some WORKING documents in my hands.
    Sun follows its tradition and fails to ship decent desktop software. If you plan to do UML modelling with JSE8 and your UML model contains more than four boxes, forget it. They say they are giving 1300$ worth of software for free. I wouldn't use this tool for any serious work even if they paid me 5000$, since I'd rather work without headaches and it's no good to tell your client "sorry, couldn't do it since my software development environment just ate the plans".

    First of all, thanks for your feedback.
    (It would have been much better if it was a bit softer in tone :) )
    This issue has been reported earlier on the forum, and we addressed it. We fixed many issues with sequence diagrams. They will be available to you in our next TPR (TPR3) releasing very soon.
    In a situation where we don't have a scheduled TPR in the near future, we can provide you with a patch. And, It is always a good idea to browse the forums to see if the issue has been reported earlier and any workarounds posted in response.
    We always welcome constructive feedback (with a positive attitude :) ) and try our best to address the issues and make our tool better.
    Thanks
    Jyothi.

  • UML model synchronization

    I have a problem with the UML support that I need help with. I have an existing Netbeans project and created a UML project reversed from existing Java sources (or something like that).
    I have a source tree like this:
    com.test.packagea
                      ObjectA.java
    com.test.packageb
                      ObjectB.java
                      ObjectC.javaObjectB is dependent on ObjectC through a method call.
    The UML model shows this structure and life is good. I update my source tree from version control (Star Team) and another developer has moved ObjectC into packagea. My tree now has two ObjectC items, one in each package like this:
    com.test.packagea
                      ObjectA.java
                      ObjectC.java
    com.test.packageb
                      ObjectB.java
                      ObjectC.javaWhat I really would like is a way to reconcile this situation. Maybe a notification that source code for ObjectC in packagebis no longer available and then scan any newly created models (ObjectC in packagea) to see if that is the correct model. There may be a way to do this, but I have not found it.
    Thank you,
    David

    I have reset the project to look like this:
    com.test.packagea
                      ObjectA.java
    com.test.packageb
                      ObjectB.java
                      ObjectC.javaI now move ObjectC.java to packagea. The java project updates properly with no problem. I then right click on the com package and choose Tools-->Synchronize model from source and end up with the following project:
    com.test.packagea
                      ObjectA.java
                      ObjectC.java
    com.test.packageb
                      ObjectB.java
                      ObjectB.java
                      ObjectC.java
                      ObjectC.java (This looks to be an instance element?)I would report this but there isn't a bug/rfe report option on the Early Access home page.
    Thank you,
    David

  • Query on Papyrus UML models with applied profiles

    Hi everyone,
    I'm using IncQuery for detecting changes on Papyrus UML models.
    My UML models are applied with UML profiles created by Papyrus.
    How can I query on models applied profiles that have the same stereotype name. How to distinguish stereotype name and UML model element name in queries?
    For example, there is Connector and in the applied profile, there is also a stereotype named Connector. How can I use prefix name for this kind.
    Thanks.

    Since 1.0.0, you can name imports and use the name as a prefix for types:
    import "umlNsUri" as uml;
    import "myProfileUri" as profile;
    pattern someP ( myParam : uml::Connector, myP2 : profile::Connector) {...}

  • UML modeling by reverse-engineering a JAVA project

    I can't seem to get over a basic hurdle to get started with UML modeling. I open an existing JAVA project. I then start a new project and choose "UML" and "-Platform model by reverse-engineering a JAVA project". Next I give the UML project a name and try to open my existing JAVA project. But the wizard does not show any project!
    Appreciate your help.
    Phil

    UML in JSE8 can reverse engineer all 4 built-in types of Java project defined in IDE. To prove that, I just downloaded apache ant source 1.6.5 from http://ant.apache.org/srcdownload.cgi and successfully reverse engineered it with JSE8.
    If you have a project with existing ant script , it's extremely easy, you absolutely don't need to hand-create a java project from scratch to specify source, library dependency etc. Just follow the wizard "create a Java project with existing ant script" to specify your Java project location, the ant script location, and * don't forget * to specify the source location. Any project without source folder specified is not considered a valid candidate for Reverse Engineer, and you won't see it listed under the project chooser in UML wizard when trying to associate the current UML project with a Java project. Please right click to bring up your source project properties to verify if you have source package folder correctly spelled out.
    It IS a supported feature, do let us know if you still have troubles to RE your project.

Maybe you are looking for

  • HT5625 How can I delete an Apple ID account? I exigently have two.

    Hi there I am wondering how I can delete one of my Apple ID's. Apperiantly I have two diffrent emails attatched to two diffrent ID's, but I would like to combine the emails to only one Account. How can a mange that? Best regards, Signy Johannesdottir

  • Problem installing solaris 10 10/08  (x86) in multi-boot configuration

    I'm trying to build a an x86_64 that can boot solaris10, Centos 5.3 and Ubuntu 8.10. (below is the linux fdisk data) I have successfully installed the Ubuntu (partition 3& 6) and Centos ( parititions 2 &5 ). Every time I've tried to install solaris,

  • CR3000 driver to use in LabVIEW

    Hello All; I have a CR3000 Micrologger from Campbell Scientific, and I would like to interface it with the PC using the RS-232 port. I would also like to use LabVIEW as a programming environment to Read/Write data from/to the CR3000. It there any Dri

  • 468 songs,34.2 days, 1.73 GB  something doesn't add up?

    I don't know what's going on how could it be adding up the time of songs incorrectly?

  • Trouble with length of measure when adding tracks

    I notice sometimes when im starting or doing a project, particularly when adding piano or keyboard tracks, when I go to insert a note, it automatically inserts a note that is like 100000 miles long and extends indefinately even if as expand the track