Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stem-dev] Problems with predicates

Dear Emily,

It is hard to find a solution to the problem from the error log, because I don't know in which context the problem
occurs.
I can't reproduce it.

The ErrorLog through an error that the class for the diseasepredicate was not found:

Org.eclipse.stem.diseasemodels could not load the class
Org.eclipse.stem.diseasemodels.predicates.diseasepredicates.provider.DiseasepredicatesItemProviderAdapterFactory $
PredicateChildCreationExtender.

Caused by: java.lang.ClassNotFoundException:
Org.eclipse.stem.diseasemodels.predicates.diseasepredicates.provider.DiseasepredicatesItemProviderAdapterFactory $
PredicateChildCreationExtender
Can not be found by org.eclipse.stem.diseasemodels_3.0.0.I20161215165321

So, my question and ideas for you.

Happens this problem only in one Project or general in STEM?

Do you have more than one STEM installation on your System? Please use only one STEM installation on your System,
sometimes a second one, can occur crazy errors.
If you want a second installation of STEM, I would recommend to use a Linux based OS(e.g Ubuntu) on a virtual machine
(https://www.virtualbox.org/).

If this Problem occurs in one Project look at all names and try to remember which changes you have made.
Maybe you have a typo in a decorator. Please look also in your Model Generator.

I have one idea if its a general Problem.

I would do a back up of your STEM Projects, like I showed you in the Workshop, and make a clean new installation of
STEM and import your projects. That should solve the problem.

I hope that helps you.

Best regards,
Taras

On 19 April 2017 at 16:08, Emily Nixon <emily.nixon@xxxxxxxxxxxxx> wrote:
Hi all,

I keep getting an error when trying to create a new predicate. The exception stack trace from the error log is at the bottom of this email. If anyone knows why this is happening then it would be great if you could let me know.

Best wishes,

Emily  

org.eclipse.emf.common.util.WrappedException: org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.stem.diseasemodels was unable to load class org.eclipse.stem.diseasemodels.predicates.diseasepredicates.provider.DiseasepredicatesItemProviderAdapterFactory$PredicateChildCreationExtender.
at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:171)
at org.eclipse.emf.edit.EMFEditPlugin$4$1PluginChildCreationExtenderDescriptor.createChildCreationExtender(EMFEditPlugin.java:247)
at org.eclipse.emf.edit.provider.ChildCreationExtenderManager.getChildCreationExtenders(ChildCreationExtenderManager.java:156)
at org.eclipse.emf.edit.provider.ChildCreationExtenderManager.getNewChildDescriptors(ChildCreationExtenderManager.java:171)
at org.eclipse.stem.core.predicate.provider.PredicateItemProviderAdapterFactory.getNewChildDescriptors(PredicateItemProviderAdapterFactory.java:399)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.getNewChildDescriptors(ItemProviderAdapter.java:807)
at org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.getNewChildDescriptors(AdapterFactoryEditingDomain.java:748)
at org.eclipse.stem.core.predicate.presentation.PredicateActionBarContributor.selectionChanged(PredicateActionBarContributor.java:278)
at org.eclipse.stem.core.predicate.presentation.PredicateEditor.setSelection(PredicateEditor.java:1507)
at org.eclipse.stem.core.predicate.presentation.PredicateEditor$6.selectionChanged(PredicateEditor.java:811)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2171)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1202)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1231)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:408)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.stem.ui.launcher.WorkbenchLauncher.launch(WorkbenchLauncher.java:47)
at org.eclipse.stem.core.common.presentation.CoreEditorAdvisor$Application.start(CoreEditorAdvisor.java:409)
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(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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Caused by: org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.stem.diseasemodels was unable to load class org.eclipse.stem.diseasemodels.predicates.diseasepredicates.provider.DiseasepredicatesItemProviderAdapterFactory$PredicateChildCreationExtender.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:167)
... 47 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.stem.diseasemodels.predicates.diseasepredicates.provider.DiseasepredicatesItemProviderAdapterFactory$PredicateChildCreationExtender cannot be found by org.eclipse.stem.diseasemodels_3.0.0.I20161215165321
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
... 51 more


--
Emily Nixon
PhD Student
Demonstrator 

School of Biological Sciences

University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Bristol
BS8 1TQ

Tel +44 (0)117 394 41389




--
Emily Nixon
PhD Student
Demonstrator 

School of Biological Sciences

University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Bristol
BS8 1TQ

Tel +44 (0)117 394 1389


Back to the top