facebook

forward engineering does not work

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #275130 Reply

    Hi, I am new in MyEclipse.
    i have two problems:
    1. In my uml model i have a created a package with the name
    com.firm.test
    Then i have puted inside some classes. After the generation java classes(forward engineering), i have found pakage
    com_firm_test .

    2. Forward engenieering does’t work. After some editing my classes i can’t more do forward engenieering. The master shows the window, but after pressing “finish” the window of the master is not closed. I must press “Cancel” and then found, that the model is generated partially.
    I have found

    
    !ENTRY org.eclipse.ui 4 0 2007-09-06 12:16:33.439
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.IllegalArgumentException
        at org.eclipse.jdt.core.dom.PrimitiveType.setPrimitiveTypeCode(PrimitiveType.java:280)
        at org.eclipse.jdt.core.dom.AST.newPrimitiveType(AST.java:1495)
        at org.argouml.language.java.generator.GeneratorJava2.generateAttribute(GeneratorJava2.java:233)
        at org.argouml.language.java.generator.GeneratorJava2.generateClassifier(GeneratorJava2.java:586)
        at org.argouml.language.java.generator.GeneratorJava2.generateFile2(GeneratorJava2.java:1041)
        at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWizard.performFinish(NewUMLJavaCodeGenWizard.java:198)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
        at org.eclipse.jface.window.Window.open(Window.java:796)
        at com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.basicRun(GenerateJavaActionDelegate.java:49)
        at com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.run(GenerateJavaActionDelegate.java:37)
        at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
        at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
    

    please help
    PS: I have readed the tutorial. First time all is ok , but after any correcture or change in model i can not generate java classes.

    #275131 Reply

    sory, I have forgotten to specify a configuration

    
    *** Date: 
    Thursday, September 6, 2007 1:14:28 PM CEST
    
    ** System properties:
    OS=Linux
    OS version=2.6.13-15.16-default
    Java version=1.5.0_11
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.0 GA
    Build id: 6.0.0-GA-200708
    
    
    *** Eclipse details:
    Eclipse Platform
    
    Version: 3.3.0
    Build id: I20070621-1340
    
    
    
    
    Eclipse Platform
    
    Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
    Build id: I20070621-1340
    
    
    Eclipse Java Development Tools
    
    Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
    Build id: I20070621-1340
    
    
    Eclipse Plug-in Development Environment
    
    Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
    Build id: I20070621-1340
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.3.0.v20070620
    Build id: 20070620-1021
    
    
    Eclipse RCP
    
    Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
    Build id: I20070621-1340
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.3.0.v20070620
    Build id: 20070620-1021
    
    
    
    
    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -showsplash
    -launcher
    /usr/eclipse/eclipse
    -name
    Eclipse
    --launcher.library
    /usr/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
    -startup
    /usr/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
    -vm
    /usr/jdk1.5.0_11/bin/../jre/lib/i386/client/libjvm.so
    
    #275151 Reply

    The first problem is solved.
    To second one . I opened a new class diagram and copied my classes in it. But by attempt to generate (UML->generate java) a *.java classes the dialog is not closed. And nothing occurs. I must press a cancel button and found nothing in my src directory.
    I have shown other posts with similar problem, but nothig found. Is this a bag? (sory)

    #275162 Reply

    I have found the reason.
    I created a new data type byte[] and use it for a property.
    Just for the testing I have changed it to other type and all seems ok.

    But i need this type. What can i do ? How can i use other types of java ?

    How are you do this?

    thanks

    #275170 Reply

    Loyal Water
    Member

    Can you send me an example UMR that doesn’t work so that I can test this at my end.

    #275190 Reply

    @support-nipun wrote:

    Can you send me an example UMR that doesn’t work so that I can test this at my end.

    sended at “pm”

    #275227 Reply

    Loyal Water
    Member

    Thanks for sending me the sample UMR. I was able to reproduce this error at my end as well. I have filed a bug for my dev team. Ill get back to you with an update asap.

    #276161 Reply

    azpublic
    Member

    This message has not been recovered.

    #276171 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #281234 Reply

    dlseever
    Participant

    Is this issue still a bug? I am using release 6.0.1 and can not get UML to generate Java. To replicate this bug, within one class diagram I create 6 classes. All have class names, two are sub-classes of one, the other two are members of the last class. If I do not select an item on the drawing then the UML menu items are not enabled.

    So when I select all, UML->Generate a dialog pops up asking for a src folder location and looks like it wants to select what items to convert to code. However, it does not have any of the diagram items from the one class diagram. It does have Java->Lang.->String. When “finish” is selected no code is generated and the dialog stays up until I press cancel. If you need my example send me an email.

    #281275 Reply

    Riyad Kalla
    Member

    dlseever,
    Is this UMR file something you can share with me? Can you email it to support@genuitec.com ATTN Riyad, and also include a link to this forum for reference?

    #281404 Reply

    dlseever
    Participant

    I sent the *.umr file and the link via email to the address in the post of 1/29/2008 at 12:44pm..

    #281423 Reply

    Riyad Kalla
    Member

    dlseever,
    I’m not sure what is going on here… the UMR looks fine, but I see the bug you were reporting, it’s very strange.

    I’ve filed it for the dev team to take a look at. In the mean time I don’t have any workarounds for you besides recreating the UMR and seeing if it does it again… to speed that up, you can try right-clicking on the diagram, exporting it to XMI, then creating a new UMR and importing the XMI.

    NOTE: That will only populate the “model” (in the outline on the left) you need to Drag and Drop those components back into a new class diagram to create a new diagram. Should be fairly straight forward.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: forward engineering does not work

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