Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Validation failed error(Validation failed error while validating the model)
Validation failed error [message #666352] Wed, 20 April 2011 05:34 Go to next message
Sophia is currently offline SophiaFriend
Messages: 4
Registered: March 2011
Junior Member
When I validate the model (gmfgen,gmfgraph...) it is giving validation failed error. The error log says classnotfound exception. But I have the class in the same project.

org.eclipse.emf.common.util.WrappedException: java.lang.ClassNotFoundException:
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(RegistryReader.java:279)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.delegatedGet EPackage(EPackageRegistryImpl.java:196)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:149)
at org.eclipse.gmf.internal.validate.ExternModelImport.register Locally(ExternModelImport.java:184)
at org.eclipse.gmf.internal.validate.ExternModelImport.register ReferencedMetaModels(ExternModelImport.java:176)
at org.eclipse.gmf.internal.validate.ExternModelImport.initiali zeExternPackages(ExternModelImport.java:142)
at org.eclipse.gmf.internal.validate.ExternModelImport.getImpor ter(ExternModelImport.java:99)
at org.eclipse.gmf.internal.validate.ExternModelImport$1.valida te(ExternModelImport.java:73)
at org.eclipse.gmf.internal.validate.ValidatorChain.validate(Va lidatorChain.java:67)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:164)
at org.eclipse.emf.edit.ui.action.ValidateAction$2.validate(Val idateAction.java:287)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:143)
at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents( Diagnostician.java:183)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:167)
at org.eclipse.emf.edit.ui.action.ValidateAction$2.validate(Val idateAction.java:287)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostic ian.java:143)
at org.eclipse.emf.edit.ui.action.ValidateAction.validate(Valid ateAction.java:258)
at org.eclipse.emf.edit.ui.action.ValidateAction$1.run(Validate Action.java:177)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.ex ecute(WorkspaceModifyDelegatingOperation.java:69)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Caused by: java.lang.ClassNotFoundException:
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1193)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(RegistryReader.java:272)
... 23 more
Re: Validation failed error [message #666631 is a reply to message #666352] Thu, 21 April 2011 11:56 Go to previous message
Sophia is currently offline SophiaFriend
Messages: 4
Registered: March 2011
Junior Member
When I deleted the eclipse configuration folder and replaced with a new one the model got validated successfully.
Previous Topic:ViewFactory Deprecation
Next Topic:"clone" created when I add an item
Goto Forum:
  


Current Time: Mon Nov 04 14:48:22 GMT 2024

Powered by FUDForum. Page generated in 0.03922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top