Closed brlarson closed 10 years ago
creating an instance model also throws this stack trace:
java.lang.NullPointerException at org.osate.aadl2.util.Aadl2InstanceUtil.isSame(Aadl2InstanceUtil.java:243) at org.osate.aadl2.instantiation.ConnectionInfo.resolveFeatureInstance(ConnectionInfo.java:218) at org.osate.aadl2.instantiation.ConnectionInfo.createConnectionInstance(ConnectionInfo.java:190) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.addConnectionInstance(CreateConnectionsSwitch.java:822) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.expandFeatureGroupConnection(CreateConnectionsSwitch.java:951) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.balanceFeatureGroupEnds(CreateConnectionsSwitch.java:919) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.finalizeConnectionInstance(CreateConnectionsSwitch.java:737) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.appendSegment(CreateConnectionsSwitch.java:557) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.appendSegment(CreateConnectionsSwitch.java:607) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.appendSegment(CreateConnectionsSwitch.java:607) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.instantiateConnections(CreateConnectionsSwitch.java:319) at org.osate.aadl2.instantiation.CreateConnectionsSwitch.access$0(CreateConnectionsSwitch.java:248) at org.osate.aadl2.instantiation.CreateConnectionsSwitch$1.caseComponentInstance(CreateConnectionsSwitch.java:228) at org.osate.aadl2.instantiation.CreateConnectionsSwitch$1.caseComponentInstance(CreateConnectionsSwitch.java:1) at org.osate.aadl2.instance.util.InstanceSwitch.doSwitch(InstanceSwitch.java:220) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69) at org.osate.aadl2.modelsupport.modeltraversal.AadlProcessingSwitch.process(AadlProcessingSwitch.java:185) at org.osate.aadl2.modelsupport.modeltraversal.ForAllElement.processObject(ForAllElement.java:286) at org.osate.aadl2.modelsupport.modeltraversal.PreOrderTraversal.visitRoot(PreOrderTraversal.java:59) at org.osate.aadl2.modelsupport.modeltraversal.PreOrderTraversal.visitRoot(PreOrderTraversal.java:65) at org.osate.aadl2.modelsupport.modeltraversal.PreOrderTraversal.visitRoot(PreOrderTraversal.java:65) at org.osate.aadl2.modelsupport.modeltraversal.PreOrderTraversal.visitRoot(PreOrderTraversal.java:65) at org.osate.aadl2.modelsupport.modeltraversal.ForAllElement.processPreOrderAll(ForAllElement.java:545) at org.osate.aadl2.instantiation.InstantiateModel.fillSystemInstance(InstantiateModel.java:439) at org.osate.aadl2.instantiation.InstantiateModel.createSystemInstanceInt(InstantiateModel.java:385) at org.osate.aadl2.instantiation.InstantiateModel$1.doExecute(InstantiateModel.java:345) 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:353) at org.osate.aadl2.instantiation.InstantiateModel.buildInstanceModelFile(InstantiateModel.java:256) at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler$1.exec(InstantiateHandler.java:160) at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler$1.exec(InstantiateHandler.java:1) at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:62) at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:246) at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:84) at org.osate.xtext.aadl2.ui.handlers.InstantiateHandler.execute(InstantiateHandler.java:137) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:214) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:851) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4170) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4013) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3652) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:144) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:613) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 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:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
I've tried setting breakpoints in .isSame and .resolveFeatureInstance, but can't trip the Eclipse debugger before the NullPointerException in thrown.
Please read the bug report instruction and send a model to reproduce the issue. Otherwise, we cannot provide any other useful support.
Thanks.
Just click on the error message and it will lead you to to offending model element. BTW. it is a warning rather than an error message. The intent of it was to let you know that the model has not been defined down to the thread level. I commented out the test for this message. Should be in tonite's build.
closed
The "Instantiated subcomponent has a component type only" error message provides no indication of which component was improperly instantiated.
Please indicate the offending component with its name and perhaps marker indicating place of omission.