facebook

Professional 2014 UML 2 does not generate Java code

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #346492 Reply

    David G. Libke
    Participant

    I am using MyEclipse Professional 2014 for my modeling, code generation, and build.

    In my UML 2 model I have 4 package diagrams for which I need to generate java code. I successfully generated the java code for 2 dependent packages, the diagram class that are dependent on those 2 packages will not generate any code. The 4th package diagram generated its code has compile errors because of the missing package.

    The failing package has 2 interfaces and 5 classes. They use the dependent packages as parameters to methods. The wizard comes up with all 7classes selected; I enter the target directory and click the finish button. The next generating window flashes and everything disappears.

    The .log file simply has the following entry:
    !ENTRY org.topcased.uml2java 1 0 2014-01-28 19:31:16.837
    !MESSAGE UML2JAVA – Starting UML2JAVA Plugin…

    No other information is available. It is this one diagram that fails; all other diagram generate the java code.

    Any help would be greatly appreciated

    Dave

    #346499 Reply

    Dave,

    We couldn’t replicate the issue at our end.

    > Can you please attach the UML2 file which exhibits this issue to help us replicate the issue at our end ?

    > Please share your MyEclipse installation details from MyEclipse > Installation summary > Installation details.

    #346518 Reply

    David G. Libke
    Participant

    Pradeep,

    What I found is two generalization edges mysteriously got changed to an EObject and could not be deleted from the model. To resolve the problem I made a copy of the parent class with a some letters added to the name. Then, I deleted the original class from the model, which removed the offending edges. Next I removed the added letters and restored all edges. Now it was happy and generated all the classes.

    Dave

    #346520 Reply

    Dave,

    Glad that you got it working.
    Let us know if you see any issues in MyEclipse.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Professional 2014 UML 2 does not generate Java code

You must be logged in to post in the forum log in