osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Error when instantiating the model #156

Closed stevevestal closed 11 years ago

stevevestal commented 11 years ago

Two or three times in the past couple of weeks, I have gotten a pop-up with the error message "Error when instantiating the model" when attempting to instantiate a system implementation (by right-clicking on the system implementation element in the Outline pane and selecting "Instantiate System"). An empty instance file is created. No other information is provided. Unfortunately, I have not been able to reproduce this in a toy example model that I can upload here.

Does this message indicate an internal tool problem?

I currently have a large model that does this. Is there anything I can do to retrieve or generate useful diagnostic information?

juli1 commented 11 years ago

Hi Steve, Do you have the console output of the Eclipse system ? Also, would it be possible to provide a model that triggers this error in order to be able to reproduce it ?

Greetings,

stevevestal commented 11 years ago

I opened the Console view, but trying to instantiate a model doesn't write anything to it. In fact, Eclipse says there are no consoles to display while doing this.

Unfortunately I cannot provide the full model, at least not quickly, due to data release issues. I haven't been able to reproduce the problem in a small example yet, either.

Is there any sort of error file being written somewhere? Any sort of logging I can turn on?

On 1/18/2013 2:31 PM, Julien wrote:

Hi Steve, Do you have the console output of the Eclipse system ? Also, would it be possible to provide a model that triggers this error in order to be able to reproduce it ?

Greetings,

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12439720.

reteprelief commented 11 years ago

Steve,

There is an error log. You find it in your workspace under .metadata under the file name .log

peter

From: stevevestal [mailto:notifications@github.com] Sent: Friday, January 18, 2013 3:57 PM To: osate/osate2-core Subject: Re: [osate2-core] Error when instantiating the model (#156)

I opened the Console view, but trying to instantiate a model doesn't write anything to it. In fact, Eclipse says there are no consoles to display while doing this.

Unfortunately I cannot provide the full model, at least not quickly, due to data release issues. I haven't been able to reproduce the problem in a small example yet, either.

Is there any sort of error file being written somewhere? Any sort of logging I can turn on?

On 1/18/2013 2:31 PM, Julien wrote:

Hi Steve, Do you have the console output of the Eclipse system ? Also, would it be possible to provide a model that triggers this error in order to be able to reproduce it ?

Greetings,

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12439720.

— Reply to this email directly or view it on GitHubhttps://github.com/osate/osate2-core/issues/156#issuecomment-12440649.

juli1 commented 11 years ago

Hi Steve, There should be something on the console but it seems that nothing is shown. As this version is still in testing status, we need to investigate. The best thing would be to reproduce the error with a small example you can send.

Thanks,

stevevestal commented 11 years ago

I exited and restarted Eclipse to get a new .log file and then tried to instantiate the system. Here is the log from that one command.

!SESSION 2013-01-18 15:12:14.160

eclipse.buildId=M20120914-1800 java.version=1.7.0_11 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.equinox.event 4 0 2013-01-18 15:12:32.947 !MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/Context/context/SET] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@2eecc9 !STACK 0 org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: org.eclipse.e4.ui.model.application.ui.menu.impl.OpaqueToolItemImpl cannot be cast to org.eclipse.e4.ui.model.application.ui.basic.MTrimElement at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859) at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111) at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81) at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72) at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1252) at org.eclipse.ui.internal.Workbench.openWorkbenchWindow(Workbench.java:2324) at org.eclipse.ui.internal.Workbench.getWorkbenchPage(Workbench.java:1737) at org.eclipse.ui.internal.Workbench.setReference(Workbench.java:1756) at org.eclipse.ui.internal.Workbench.access$22(Workbench.java:1753) at org.eclipse.ui.internal.Workbench$33.handleEvent(Workbench.java:1693) at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687) at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187) at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81) at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58) at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setContext(PartImpl.java:399) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:609) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:518) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:503) at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1114) at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:646) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59) at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103) at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98) at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:646) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59) at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:639) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:968) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at 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:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) Caused by: java.lang.ClassCastException: org.eclipse.e4.ui.model.application.ui.menu.impl.OpaqueToolItemImpl cannot be cast to org.eclipse.e4.ui.model.application.ui.basic.MTrimElement at org.eclipse.ui.internal.CoolBarToTrimManager.find(CoolBarToTrimManager.java:266) at org.eclipse.ui.internal.WorkbenchWindowConfigurer$WindowActionBarConfigurer.containsCoolItem(WorkbenchWindowConfigurer.java:180) at org.eclipse.ui.internal.WorkbenchWindowConfigurer.containsCoolItem(WorkbenchWindowConfigurer.java:501) at org.eclipse.ui.internal.WorkbenchWindow.isWorkbenchCoolItemId(WorkbenchWindow.java:1549) at org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.isValidCoolItemId(PluginActionSetBuilder.java:488) at org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.contributeCoolbarAction(PluginActionSetBuilder.java:448) at org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.contribute(PluginActionSetBuilder.java:376) at org.eclipse.ui.internal.PluginActionSetBuilder.readActionExtensions(PluginActionSetBuilder.java:279) at org.eclipse.ui.internal.PluginActionSetBuilder.processActionSets(PluginActionSetBuilder.java:230) at org.eclipse.ui.internal.ActionPresentation.setActionSets(ActionPresentation.java:184) at org.eclipse.ui.internal.WorkbenchWindow.updateActionSets(WorkbenchWindow.java:1882) at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:623) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ... 108 more

On 1/18/2013 3:02 PM, Peter Feiler wrote:

Steve,

There is an error log. You find it in your workspace under .metadata under the file name .log

peter

From: stevevestal [mailto:notifications@github.com] Sent: Friday, January 18, 2013 3:57 PM To: osate/osate2-core Subject: Re: [osate2-core] Error when instantiating the model (#156)

I opened the Console view, but trying to instantiate a model doesn't write anything to it. In fact, Eclipse says there are no consoles to display while doing this.

Unfortunately I cannot provide the full model, at least not quickly, due to data release issues. I haven't been able to reproduce the problem in a small example yet, either.

Is there any sort of error file being written somewhere? Any sort of logging I can turn on?

On 1/18/2013 2:31 PM, Julien wrote:

Hi Steve, Do you have the console output of the Eclipse system ? Also, would it be possible to provide a model that triggers this error in order to be able to reproduce it ?

Greetings,

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12439720.

— Reply to this email directly or view it on GitHubhttps://github.com/osate/osate2-core/issues/156#issuecomment-12440649.

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12440831.

juli1 commented 11 years ago

This error are related to Eclipse menus and not errors due to the instantiation. Once again, the best thing would be to have a model to reproduce the issue. It will save time for all of us.

stevevestal commented 11 years ago

I will keep working on this.

In the mean time: If I close all the text editor windows and do a right-click reinstantiate on the near-empty instance file from the first attempt, then a Model Instantiate pop-up appears with a different error message:

Unknown error: org.osate.aadl2.impl.FeatureGroupTypeImpl cannot be cast to org.osate.aadl2.ComponentClassifier

(Feature groups can't have explicit implementations, can they?)

On 1/18/2013 3:22 PM, Julien wrote:

This error are related to Eclipse menus and not errors due to the instantiation. Once again, the best thing would be to have a model to reproduce the issue. It will save time for all of us.

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12441606.

juli1 commented 11 years ago

Thanks for working on this, let me know when you will have a model that could be use to reproduce this issue.

Thanks,

stevevestal commented 11 years ago

I'm working on something to reproduce the error, but I think I may have discovered the root cause. See what you think.

My original model is split into multiple projects that depend on each other. I discovered that by placing some files in the same project, instantiations of subsystems that previously failed now succeed.

When I instantiate the overall system, I now get the error "Operation is not supported: Connection between two components that inherit features is not supported."

Is this still on the TODO list? If so, any idea when this might be supported?

On 1/20/2013 1:41 PM, Julien wrote:

Thanks for working on this, let me know when you will have a model that could be use to reproduce this issue.

Thanks,

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12476020.

juli1 commented 11 years ago

Hello Steve,

Thanks for your feedback. Also, as discussed before, without a model to reproduce, this is difficult to know what is the root cause. So, as soon as we have a model, we could start to investigate.

Thanks,

stevevestal commented 11 years ago

Is it the case that "Connection between two components that inherit features is not supported" in Open Source AADL Tool Environment 2.0.0.201212282124?

If so, we have found the "bug," it's just a not-supported-yet feature (where error reporting may be hampered by some glitches in project dependencies and interactions with Eclipse text editor windows). The model definitely makes heavy use of connections between components that inherit and refine features.

On 1/21/2013 10:44 AM, Julien wrote:

Hello Steve,

Thanks for your feedback. Also, as discussed before, without a model to reproduce, this is difficult to know what is the root cause. So, as soon as we have a model, we could start to investigate.

Thanks,

— Reply to this email directly or view it on GitHub https://github.com/osate/osate2-core/issues/156#issuecomment-12505995.

juli1 commented 11 years ago

Hi,

Without having a model to test, this is difficult to investigate. So, let me know when you can make one so that we can try to reproduce it and even fix the issue in OSATE.

Thanks.

philip-alldredge commented 11 years ago

The "org.osate.aadl2.impl.FeatureGroupTypeImpl cannot be cast to org.osate.aadl2.ComponentClassifier" occurs whenever a feature group that extends another feature group is instantiated.

test_case.aadl:

package Test
public

feature group fg_a
end fg_a;

feature group fg_b extends fg_a
end fg_b;

system A
features
    f1 : feature group fg_b;
end A;

system implementation A.impl
end A.impl;

end Test;

Stack trace:

java.lang.ClassCastException: org.osate.aadl2.impl.FeatureGroupTypeImpl cannot be cast to org.osate.aadl2.ComponentClassifier
    at org.osate.aadl2.instantiation.InstantiateModel.addUsedProperties(InstantiateModel.java:1386)
    at org.osate.aadl2.instantiation.InstantiateModel.getAllUsedPropertyDefinitions(InstantiateModel.java:1357)
    at org.osate.aadl2.instantiation.InstantiateModel.fillSystemInstance(InstantiateModel.java:417)
    at org.osate.aadl2.instantiation.InstantiateModel.createSystemInstanceInt(InstantiateModel.java:341)
    at org.osate.aadl2.instantiation.InstantiateModel$1.doExecute(InstantiateModel.java:302)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
    at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
    at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
    at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
    at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
    at org.osate.aadl2.instantiation.InstantiateModel.createSystemInstance(InstantiateModel.java:310)
    at org.osate.aadl2.instantiation.InstantiateModel.buildInstanceModelFile(InstantiateModel.java:227)
    at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler$1.exec(InstantiateHandler.java:186)
    at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler$1.exec(InstantiateHandler.java:1)
    at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
    at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
    at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler.execute(InstantiateHandler.java:161)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
    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:597)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:814)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:707)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:691)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:630)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at 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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    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:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
philip-alldredge commented 11 years ago

On a semi-related note, in the case of this exception, the typical dialog notifying the user that there was an error does not appear because there is a catch block in InstantiateModel.java's createSystemInstanceInt that simply prints the stack trace to the console.

juli1 commented 11 years ago

According to the model reported by philip, the bug is fixed. Please check and reopen if needed.