osate / osate-ge

Old Graphical editor for OSATE repository, kept for reference
6 stars 3 forks source link

Resource '/bless-predeclared' does not exist. #185

Closed brlarson closed 7 years ago

brlarson commented 7 years ago

I get this error when trying to Open Diagram for a couple of projects I've tried (Isolette and MD-VI), but Stepper opens fine.

Nowhere in either the running workspace, or the OSATE sources does the string "bless-predeclared" exist.

AADL projects can be downloaded from bless.santoslab.org.

Stack trace:

!ENTRY org.osate.ge 4 0 2017-01-11 14:58:56.146 !MESSAGE org.osate.ge.internal.ui.handlers.OpenDiagramHandler.execute(): Error opening classifier diagram !STACK 0 org.eclipse.e4.core.di.InjectionException: java.lang.RuntimeException: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.osate.ge.internal.services.impl.DefaultSerializableReferenceService.getReferencedObject(DefaultSerializableReferenceService.java:112) at org.osate.ge.internal.IndependenceProvider.getBusinessObjectForKey(IndependenceProvider.java:35) at org.osate.ge.internal.CachingIndependenceProvider.getBusinessObjectForKey(CachingIndependenceProvider.java:40) at org.eclipse.graphiti.features.impl.AbstractFeatureProvider.getBusinessObjectForPictogramElement(AbstractFeatureProvider.java:433) at org.eclipse.graphiti.pattern.DefaultFeatureProviderWithPatterns.getBusinessObjectForPictogramElement(DefaultFeatureProviderWithPatterns.java:824) at org.osate.ge.internal.services.impl.DefaultDiagramService.findFirstDiagramByRootBusinessObject(DefaultDiagramService.java:215) at org.osate.ge.internal.services.impl.DefaultDiagramService.openExistingDiagramForRootBusinessObject(DefaultDiagramService.java:247) at org.osate.ge.internal.services.impl.DefaultDiagramService.openOrCreateDiagramForRootBusinessObject(DefaultDiagramService.java:232) at org.osate.ge.internal.ui.handlers.OpenDiagramHandler.execute(OpenDiagramHandler.java:44) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) at org.eclipse.equinox.launcher.Main.main(Main.java:1488) Caused by: java.lang.RuntimeException: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getRelevantProjects(DeclarativeReferenceResolver.java:213) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getCachedResourceDescriptions(DeclarativeReferenceResolver.java:192) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getAadlPackage(DeclarativeReferenceResolver.java:145) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getAadlPackage(DeclarativeReferenceResolver.java:388) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getNamedElementByQualifiedName(DeclarativeReferenceResolver.java:367) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getReferencedObject(DeclarativeReferenceResolver.java:264) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ... 60 more Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:334) at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:208) at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:140) at org.eclipse.core.internal.resources.Project.getReferencedProjects(Project.java:469) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.addReferencedProjects(DeclarativeReferenceResolver.java:218) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.addReferencedProjects(DeclarativeReferenceResolver.java:221) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getRelevantProjects(DeclarativeReferenceResolver.java:209) ... 70 more

!ENTRY org.eclipse.ui 4 0 2017-01-11 14:58:56.148 !MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.e4.core.di.InjectionException: org.eclipse.e4.core.di.InjectionException: java.lang.RuntimeException: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) at org.eclipse.equinox.launcher.Main.main(Main.java:1488) Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.RuntimeException: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.osate.ge.internal.services.impl.DefaultSerializableReferenceService.getReferencedObject(DefaultSerializableReferenceService.java:112) at org.osate.ge.internal.IndependenceProvider.getBusinessObjectForKey(IndependenceProvider.java:35) at org.osate.ge.internal.CachingIndependenceProvider.getBusinessObjectForKey(CachingIndependenceProvider.java:40) at org.eclipse.graphiti.features.impl.AbstractFeatureProvider.getBusinessObjectForPictogramElement(AbstractFeatureProvider.java:433) at org.eclipse.graphiti.pattern.DefaultFeatureProviderWithPatterns.getBusinessObjectForPictogramElement(DefaultFeatureProviderWithPatterns.java:824) at org.osate.ge.internal.services.impl.DefaultDiagramService.findFirstDiagramByRootBusinessObject(DefaultDiagramService.java:215) at org.osate.ge.internal.services.impl.DefaultDiagramService.openExistingDiagramForRootBusinessObject(DefaultDiagramService.java:247) at org.osate.ge.internal.services.impl.DefaultDiagramService.openOrCreateDiagramForRootBusinessObject(DefaultDiagramService.java:232) at org.osate.ge.internal.ui.handlers.OpenDiagramHandler.execute(OpenDiagramHandler.java:44) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ... 41 more Caused by: java.lang.RuntimeException: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getRelevantProjects(DeclarativeReferenceResolver.java:213) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getCachedResourceDescriptions(DeclarativeReferenceResolver.java:192) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getAadlPackage(DeclarativeReferenceResolver.java:145) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getAadlPackage(DeclarativeReferenceResolver.java:388) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getNamedElementByQualifiedName(DeclarativeReferenceResolver.java:367) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver.getReferencedObject(DeclarativeReferenceResolver.java:264) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ... 60 more Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/bless-predeclared' does not exist. at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:334) at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:208) at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:140) at org.eclipse.core.internal.resources.Project.getReferencedProjects(Project.java:469) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.addReferencedProjects(DeclarativeReferenceResolver.java:218) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.addReferencedProjects(DeclarativeReferenceResolver.java:221) at org.osate.ge.internal.services.impl.DeclarativeReferenceResolver$DeclarativeCache.getRelevantProjects(DeclarativeReferenceResolver.java:209) ... 70 more

philip-alldredge commented 7 years ago

I'll try to take a look at soon. In the meantime, does the problem go away if the entire workspace is refreshed. Eclipse appears to be trying to reference a project names "bless-predeclared". Does such a project exist? If so, is it closed or not refreshed?

brlarson commented 7 years ago

Phillip,

I completely closed the projects, and freshly opened new ones. I don't think a refresh is the problem.

I don't recall anything titled "bless-predeclared". There are BLESS_Properties, BLESS_Types and BLESS in Plugin_Resources where the predeclared BLESS types and properties are defined, but there's no provision, like OSATE for core-langage properties to reference them w/o the package or property set names.

--Brian

On Jan 11, 2017, at 3:43 PM, philip-alldredge notifications@github.com<mailto:notifications@github.com> wrote:

I'll try to take a look at soon. In the meantime, does the problem go away if the entire workspace is refreshed. Eclipse appears to be trying to reference a project names "bless-predeclared". Does such a project exist? If so, is it closed or not refreshed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/osate/osate-ge/issues/185#issuecomment-272004294, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABIt6nV9tzWC-He3mBa9_jh63-q7-KGbks5rRUzwgaJpZM4LhELJ.

Brian R Larson Research Associate FDA Scholar in Residence Kansas State University

philip-alldredge commented 7 years ago

The reason I mentioned refreshing is because I've had Eclipse behave strangely in some cases when a project is out of sync.

I'll take a look at it when I have a chance, but Eclipse is definitely trying to open a folder or project named bless-predeclared. A quick google shows that bless-predeclared is a project used in some bless tutorials.

It could take some time to try to reproduce the issue and dig in deep enough to determine the root cause. I was just trying to supply a potential workaround.

brlarson commented 7 years ago

Thanks, Philip.

On Jan 11, 2017, at 4:01 PM, philip-alldredge notifications@github.com<mailto:notifications@github.com> wrote:

The reason I mentioned refreshing is because I've had Eclipse behave strangely in some cases when a project is out of sync.

I'll take a look at it when I have a chance, but Eclipse is definitely trying to open a folder or project named bless-predeclared. A quick google shows that bless-predeclared is a project used in some bless tutorials.

It could take some time to try to reproduce the issue and dig in deep enough to determine the root cause. I was just trying to supply a potential workaround.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/osate/osate-ge/issues/185#issuecomment-272009493, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABIt6s54RWyxFrINBKjqHU9huKpD6jiIks5rRVFUgaJpZM4LhELJ.

Brian R Larson Research Associate FDA Scholar in Residence Kansas State University

philip-alldredge commented 7 years ago

Brian, The cause is that the Isolette project references a "bless-predeclared" project that doesn't exist and this is triggering an error. I'll update the editor to not throw an error under such circumstances. The editor uses the project references to resolve references since there could be duplicate packages in an Eclipse workspace.

In the meantime as a workaround, right-click on the affected projects and select Properties. Under Project References, uncheck bless-predeclared.

philip-alldredge commented 7 years ago

Closing

brlarson commented 7 years ago

Thank Philip,

That was a good catch.

--Brian

On Jan 12, 2017, at 11:11 AM, philip-alldredge notifications@github.com<mailto:notifications@github.com> wrote:

Brian, The cause is that the Isolette project references a "bless-predeclared" project that doesn't exist and this is triggering an error. I'll update the editor to not throw an error under such circumstances. The editor uses the project references to resolve references since there could be duplicate packages in an Eclipse workspace.

In the meantime as a workaround, right-click on the affected projects and select Properties. Under Project References, uncheck bless-predeclared.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/osate/osate-ge/issues/185#issuecomment-272222727, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABIt6m-fsa0S7EbWiQFMe67ykhkwl8SFks5rRl6ygaJpZM4LhELJ.

Brian R Larson Research Associate FDA Scholar in Residence Kansas State University