Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368651 - Show message if server is missing the model
Summary: Show message if server is missing the model
Status: CLOSED INVALID
Alias: None
Product: EMFStore
Classification: Modeling
Component: ServerCore (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.8.9.M923   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 04:09 EST by Jonas Helming CLA
Modified: 2012-02-14 11:36 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Helming CLA 2012-01-16 04:09:43 EST
If you start a server with the wrong model you get exceptions like the one below. There should be a warning such as "wrong model"

java.lang.NullPointerException
	at org.eclipse.emf.emfstore.common.model.util.ModelUtil.getAllContainedModelElementsAsList(ModelUtil.java:855)
	at org.eclipse.emf.emfstore.server.model.versioning.operations.impl.CreateDeleteOperationImpl.apply(CreateDeleteOperationImpl.java:86)
	at org.eclipse.emf.emfstore.server.model.versioning.impl.ChangePackageImpl.apply(ChangePackageImpl.java:294)
	at org.eclipse.emf.emfstore.server.startup.EmfStoreValidator.validateProjectGeneration(EmfStoreValidator.java:187)
	at org.eclipse.emf.emfstore.server.startup.EmfStoreValidator.validate(EmfStoreValidator.java:93)
	at org.eclipse.emf.emfstore.server.startup.EmfStoreValidator.validate(EmfStoreValidator.java:109)
	at org.eclipse.emf.emfstore.server.EmfStoreController.validateServerSpace(EmfStoreController.java:286)
	at org.eclipse.emf.emfstore.server.EmfStoreController.initServerSpace(EmfStoreController.java:238)
	at org.eclipse.emf.emfstore.server.EmfStoreController.run(EmfStoreController.java:119)
	at org.eclipse.emf.emfstore.server.EmfStoreController.start(EmfStoreController.java:86)
	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:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:592)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1407)
An error has occurred. See the log file