просто попытался преобразовать в Ecore-Model из данной UML-модели. После этого я пытаюсь создать модель генератора.Рекурсия в Ecore-File?
Everytime я пытаюсь сделать это я получаю сообщение об ошибке, что есть «исключение цикл событий Необработанный» с этого журнала:
org.eclipse.swt.SWTException: Не удалось выполнить работоспособной (java.lang .NullPointerException) at org.eclipse.swt.SWT.error (SWT.java:3884) at org.eclipse.swt.SWT.error (SWT.java:3799) at org.eclipse.swt.widgets.Synchronizer .runAsyncMessages (Synchronizer.java:137) на org.eclipse.swt.widgets.Display.runAsyncMessages (Display.java:3885) на org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:3506) на org.eclipse.jface.window.Window.runEventLoop (W indow.java:825) at org.eclipse.jface.window.Window.open (Window.java:801) at org.eclipse.gmf.internal.bridge.ui.dashboard.DashboardMediator $ RunWizardAction.run (DashboardMediator. java: 316) at org.eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure $ 1.mousePressed (HyperlinkFigure.java:63) at org.eclipse.draw2d.Figure.handleMousePressed (Figure.java:873) at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed (SWTEventDispatcher.java:214) at org.eclipse.draw2d.LightweightSystem $ EventHandler.mouseDown (LightweightSystem.java:513) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:179) at org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java:84) по адресу org.eclipse.swt.widgets.Wi dget.sendEvent (Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java:3910) at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:3503) на org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java:2405) на org.eclipse.ui.internal.Workbench.runUI (Workbench.java:2369) на org.eclipse.ui.internal. Workbench.access $ 4 (Workbench.java:2221) at org.eclipse.ui.internal.Workbench $ 5.run (Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm. java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:149) at org.ec lipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:194) at org.eclipse.core. runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110) на org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:79) на org.eclipse.core.runtime. adaptor.EclipseStarter.run (EclipseStarter.java:368) на org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:179) на sun.reflect.NativeMethodAccessorImpl.invoke0 (нативный метод) на солнце .reflect.NativeMethodAccessorImpl.invoke (Неизвестный источник) at sun.reflect.DelegatingMethodAccessorImpl.invoke (Неизвестный источник) at java.lang.reflect.Method.invoke (Неизвестный источник) на org.eclipse.equinox.launcher.Main.invokeFramework (Main.java:559) на org.eclipse.equinox.launcher.Main.basicRun (Main .java: 514) at org.eclipse.equinox.launcher.Main.run (Main.java:1311) Вызвано: java.lang.NullPointerException at org.eclipse.emf.converter.util.ConverterUtil.computeRequiredPackages (ConverterUtil.java:374) at org.eclipse.emf.converter.ui.contribution.base.ModelConverterPackagePage.validate (ModelConverterPackagePage.java:965) at org.eclipse.emf.importer.ui.contribution.base.ModelImporterPackagePage.validate (ModelImporterPackagePage.java:101) на org.eclipse.emf.converter.ui.contribution.base.ModelConverterPackagePage $ 1.run (ModelConverterPackagePage.java:155) на org.eclipse.swt.widgets.RunnableLock .run (RunnableLock.java:35) на org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:134) ... 34 более
После этого происходит еще одно исключение с этим текстом: " Не удалось создать идентификатор редактора org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelEditorID: неожиданное исключение было выбрано. "
Данные сеанса говорит: eclipse.buildId = неизвестно java.version = 1.6.0_13 java.vendor = Sun Microsystems Inc. загрузчика константа: OS = win32, ARCH = x86, WS = win32, NL = de_DE Рамочные аргументы: -product org.eclipse.epp.package.modeling.product Аргументы командной строки: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product -consoleLog
С этим длинным журналом:
java.lang.NullPointerException at org.e clipse.emf.ecore.util.EcoreUtil.getURI (EcoreUtil.java:2887) at org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.diagnose (GenModelImpl.java:2930) at org.eclipse. emf.codegen.ecore.genmodel.presentation.GenModelEditor.validate (GenModelEditor.java:1773) at org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModelEditor.initialize (GenModelEditor.java:596) at org. eclipse.emf.codegen.ecore.genmodel.presentation.GenModelEditor.createPages (GenModelEditor.java:1080) на org.eclipse.ui.part.MultiPageEditorPart.createPartControl (MultiPageEditorPart.java:357) на org.eclipse.ui. internal.EditorReference.createPartHelper (EditorReference.java:662) at org.eclipse.ui.internal.EditorReference.createPart (EditorReference.java:462) at org.eclipse. ui.internal.WorkbenchPartReference.getPart (WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor (EditorReference.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched (WorkbenchPage. java: 2857) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2762) at org.eclipse.ui.internal.WorkbenchPage.access $ 11 (WorkbenchPage.java:2754) at org.eclipse .ui.internal.WorkbenchPage $ 10.run (WorkbenchPage.java:2705) на org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:70) на org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2701) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2685) at org.eclip se.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:2668) на org.eclipse.emf.converter.ui.contribution.base.ModelConverterWizard.openEditor (ModelConverterWizard.java:318) на org.eclipse.emf. importer.ui.contribution.base.ModelImporterWizard.performFinish (ModelImporterWizard.java:167) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:752) на org.eclipse.gmf.internal.bridge. ui.dashboard.DashboardMediator $ RunWizardAction $ 1.finishPressed (DashboardMediator.java:311) на org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:373) на org.eclipse.jface.dialogs.Dialog $ 2. widgetSelected (Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:228) at org.eclipse.swt.widge ts.EventTable.sendEvent (EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java:3910) на org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:3503) на org.eclipse.jface.window.Window.runEventLoop (Window.java:825) at org.eclipse.jface.window.Window.open (Window.java:801) at org.eclipse.gmf.internal.bridge.ui.dashboard.DashboardMediator $ RunWizardAction.run (DashboardMediator.java:316) at org. eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure $ 1.mousePressed (HyperlinkFigure.java:63) на org.eclipse.draw2d.Figure.handleMousePressed (Figure.java:873) на org.eclipse.draw2d.SWTEventDispatcher .dispatchMousePressed (SWTEventDispatcher.java:214) at org.eclipse.draw2d.LightweightSystem $ EventHandler.mouseDown (LightweightSystem.java:513) at org.eclipse.swt .widgets.TypedListener.handleEvent (Тип1). : 1003) на org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java:3910) на org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:3503) на org.eclipse.ui .internal.Workbench.runEventLoop (Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI (Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access $ 4 (Workbench. java: 2221) at org.eclipse.ui.internal.Workbench $ 5.run (Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332) at o rg.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:493) на org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:149) на org.eclipse.ui.internal.ide.application. IDEApplication.start (IDEApplication.java:113) на org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:194) в org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java: 368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Met корыто) в sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source) в sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source) в java.lang.reflect.Method.invoke (Unknown Source) в org.eclipse.equinox .launcher.Main.invokeFramework (Main.java:559) на org.eclipse.equinox.launcher.Main.basicRun (Main.java:514) на org.eclipse.equinox.launcher.Main.run (Main.java : 1311)
Есть ли у кого-нибудь идеи, что происходит не так? Я немного посмотрел на свою модель, но не смог найти что-то не так. Я просто подумал, что может быть рекурсия из-за исключения Unhandled event loop exception, но возможно ли это?
Спасибо заранее, Dominik
Возможно, вы хотите закрыть этот вопрос, приняв свой ответ. – ShiDoiSi