facebook

sequence diagram dialog box – Unhandled event loop exception

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

    gastil
    Member

    In a very simple java web project (to simplify this example for this bug), I create a new UML2 model then right-click a class ->MyEclipse -> generate UML2 Sequence Diagram.

    the dialog box comes up. I select ‘Create a new model’. I use the default name and destination it chose. I try to click Finish. Finish appears active (blue on mac cocoa) but clicking it does nothing.

    I watched the .log with tail -f during this process. I saw errors during two activities. The last stack trace in the log is the attempt to generate the sequence diagram.

    My installation details are identical to my last post (April 12) Mac OS X 10.5.8, MyEclipse 9 trial demo license. Not sure if it matters, but JDK 1.5 is default on this mac but this project uses the JDK 1.6.

    The log is only for this very short MyEclipse session for the bug report:
    ————————————————————————
    !SESSION 2011-04-20 08:02:53.096 ———————————————–
    eclipse.buildId=unknown
    java.version=1.5.0_28
    java.vendor=Apple Inc.
    BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
    Framework arguments: -keyring /Users/gastil/.eclipse_keyring -showlocation
    Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/gastil/.eclipse_keyring -consoleLog -showlocation

    !ENTRY org.eclipse.core.net 1 0 2011-04-20 08:02:57.008
    !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.141
    !MESSAGE NLS unused message: UMLPlugin.requires_jre_linux_1_5_0 in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.141
    !MESSAGE NLS unused message: UMLUtil_dialog_deleteWarning2_message in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.141
    !MESSAGE NLS unused message: UMLPlugin.dialog_rename_warning_title in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.142
    !MESSAGE NLS unused message: UMLEditor_dialog_read_only_file_title in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.142
    !MESSAGE NLS unused message: UMLPlugin.requires_jre_windows_1_4_2 in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.143
    !MESSAGE NLS unused message: UMLEditor_dialog_invalid_input_title in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.143
    !MESSAGE NLS unused message: UMLPlugin.dialog_rename_warning_message in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.143
    !MESSAGE NLS unused message: UMLEditor_dialog_incompatible_os_title in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.144
    !MESSAGE NLS unused message: UMLEditor_dialog_invalid_input_message in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.144
    !MESSAGE NLS unused message: UMLPlugin_error_invalid_os in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.144
    !MESSAGE NLS unused message: NewUML2ModelWizard_dialog_error_title in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.145
    !MESSAGE NLS unused message: NewUML2ModelWizard_dialog_error_message in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.145
    !MESSAGE NLS unused message: NewDiagramAction.item_new_use_case_diagram in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.145
    !MESSAGE NLS unused message: NewDiagramAction.item_new_sequence_diagram in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:05.146
    !MESSAGE NLS unused message: NewDiagramAction.new_collaboration_diagram in: com.genuitec.eclipse.uml2.ui.messages

    !ENTRY com.genuitec.eclipse.core 1 0 2011-04-20 08:03:08.313
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY org.eclipse.jface 2 0 2011-04-20 08:03:11.567
    !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-04-20 08:03:11.567
    !MESSAGE A conflict occurred for SHIFT+DEL:
    Binding(SHIFT+DEL,
    ParameterizedCommand(Command(org.eclipse.datatools.sqltools.result.removeAllInstances,Remove All Visible Results,
    ,
    Category(org.eclipse.datatools.sqltools.result.category,SQL Results View,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(SHIFT+DEL,
    ParameterizedCommand(Command(org.topcased.modeler.deleteModelObject,Delete From Model,
    Allows the user to delete the selected graph element and its associated model element in a Topcased editor.,
    Category(org.eclipse.ui.category.edit,Edit,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:13.629
    !MESSAGE NLS unused message: prompt_optclasspath in: com.genuitec.eclipse.easie.core.configuration

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:13.630
    !MESSAGE NLS unused message: prompt_preclasspath in: com.genuitec.eclipse.easie.core.configuration

    !ENTRY org.eclipse.osgi 2 1 2011-04-20 08:03:13.634
    !MESSAGE NLS unused message: prompt_optlibrarypath in: com.genuitec.eclipse.easie.core.configuration

    !ENTRY org.eclipse.osgi 2 0 2011-04-20 08:03:20.889
    !MESSAGE While loading class “org.eclipse.wst.jsdt.internal.core.JavaModelManager$16”, thread “Thread[Worker-0,5,main]” timed out waiting (5000ms) for thread “Thread[Worker-4,5,main]” to finish starting bundle “org.eclipse.wst.jsdt.core_1.1.2.me201103172348 [879]”. To avoid deadlock, thread “Thread[Worker-0,5,main]” is proceeding but “org.eclipse.wst.jsdt.internal.core.JavaModelManager$16” may not be fully initialized.
    !STACK 0
    org.osgi.framework.BundleException: State change in progress for bundle “reference:file:/Applications/MyEclipse/Common/plugins/org.eclipse.wst.jsdt.core_1.1.2.me201103172348.jar” by thread “Worker-4”.
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
    at org.eclipse.wst.jsdt.internal.core.JavaModelManager$15.run(JavaModelManager.java:4182)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
    … 16 more
    Root exception:
    org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
    at org.eclipse.wst.jsdt.internal.core.JavaModelManager$15.run(JavaModelManager.java:4182)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    !ENTRY org.eclipse.ui 4 0 2011-04-20 08:04:09.596
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.ClassCastException: org.eclipse.uml2.uml.internal.impl.ClassImpl
    at com.genuitec.eclipse.uml2.reverse.seqeunce.helpers.SequenceUtils.findExistingPackage(SequenceUtils.java:56)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.SequenceModelUpdate.setLifelineType(SequenceModelUpdate.java:158)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ExpressionSwitch.getNewLifeline(ExpressionSwitch.java:533)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ExpressionSwitch.getTgtLifeline(ExpressionSwitch.java:274)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ExpressionSwitch.doInvocation(ExpressionSwitch.java:219)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ExpressionSwitch.doMethodInvocation(ExpressionSwitch.java:188)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ExpressionSwitch.switchExpression(ExpressionSwitch.java:88)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.StatementSwitch.doReturnStatement(StatementSwitch.java:140)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.StatementSwitch.switchStatement(StatementSwitch.java:124)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ModelConvertor.convertMethodDeclaration(ModelConvertor.java:172)
    at com.genuitec.eclipse.uml2.reverse.seqeunce.ModelConvertor.access$2(ModelConvertor.java:165)

    #316217 Reply

    gastil,
    Can you please try the same test in a new workspace and see if that fails. Also, if possible, can you please provide us the failing project. You can email the same at support@genuitec.com ATTN Neeraj with the link to this thread.

    #316251 Reply

    gastil
    Member

    Hi Neeraj,

    I created a new workspace and, using other java web projects I was able to make the sequence diagram. In that case the finish button did execute. When I tried to bring the original java web project into this new workspace, the finish button did not execute (did nothing). One difference is this original project has some errors (it cannot find some classes in another project in its build path, a separate mystery to solve.) So, I conclude the problem is with my project, not with MyEclipse. However, it would have been nice if clicking the finish gave a message such as ‘cannot make sequence diagram due to …’ instead of doing nothing.

    The project is too complicated to send.

    Thank you for your help.
    – gastil

    #316309 Reply

    support-swapna
    Moderator

    gastil,

    Thank you for reporting it. I have raised a PR for the dev team and a better error reporting will be added.
    Sorry for the inconvenience caused.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: sequence diagram dialog box – Unhandled event loop exception

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