Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage
Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage [message #1129251] Tue, 08 October 2013 12:52 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 116
Registered: July 2009
Senior Member
Hi,

I updating an GMF generated editor. Using now emf 2.9.1 with Eclipse 4.2.2.

After generating the code from genmodel I try to generate the diagram editor via the GMF Dashboard.
The generation of the diagram editor fails with the following Error:
An internal error occurred during: "Execute Templates".
Stacktrace:
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.lang.reflect.Field.get(Unknown Source)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:273)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
at
org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getModel(EmfMetamodelDesc.java:64)
at
org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getLoadStatus(EmfMetamodelDesc.java:86)
at
org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.MetamodelRegistry.toEPackageRegistry(MetamodelRegistry.java:85)
at org.eclipse.m2m.internal.qvt.oml.compiler.CompilerUtils.getEPackageRegistry(CompilerUtils.java:106)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.getEPackageRegistry(QVTOCompiler.java:569)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.parse(QVTOCompiler.java:272)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.doCompile(QVTOCompiler.java:416)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compileSingleFile(QVTOCompiler.java:373)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:259)
at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:246)
at
org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:75)
at
org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:63)
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:46)
at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
at
org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
at
org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
at
org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
at
org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
at org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.generate(XpandTextEmitter.java:64)
at org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGenerateJavaClass(GeneratorBase.java:347)
at org.eclipse.gmf.codegen.util.Generator.generateExternalizationSupport(Generator.java:892)
at org.eclipse.gmf.codegen.util.Generator.customRun(Generator.java:135)
at org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run(GeneratorBase.java:486)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun(GeneratorBase.java:483)
at org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(GeneratorBase.java:90)
at
org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation.run(ExecuteTemplatesOperation.java:226)
at
org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation$1.run(ExecuteTemplatesOperation.java:122)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Session Data:
eclipse.buildId=M20130204-1200
java.version=1.7.0_40
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product
org.eclipse.epp.package.modeling.product


Does any one know how to fix the error?

Martin
Re: Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage [message #1129304 is a reply to message #1129251] Tue, 08 October 2013 13:52 Go to previous messageGo to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 116
Registered: July 2009
Senior Member
After deleting the project and getting a fresh update from svn then generation works like magic. No
idea what has changed but its ok now.
:)


schrieb Martin Jacob, Am 08.10.2013 14:52:
> Hi,
>
> I updating an GMF generated editor. Using now emf 2.9.1 with Eclipse 4.2.2.
>
> After generating the code from genmodel I try to generate the diagram editor via the GMF Dashboard.
> The generation of the diagram editor fails with the following Error:
> An internal error occurred during: "Execute Templates".
> Stacktrace:
> java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage
> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
> at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
> at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
> at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
> at java.lang.reflect.Field.get(Unknown Source)
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:273)
> at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
> at
> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getModel(EmfMetamodelDesc.java:64)
>
> at
> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getLoadStatus(EmfMetamodelDesc.java:86)
>
> at
> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.MetamodelRegistry.toEPackageRegistry(MetamodelRegistry.java:85)
>
> at
> org.eclipse.m2m.internal.qvt.oml.compiler.CompilerUtils.getEPackageRegistry(CompilerUtils.java:106)
> at
> org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.getEPackageRegistry(QVTOCompiler.java:569)
> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.parse(QVTOCompiler.java:272)
> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.doCompile(QVTOCompiler.java:416)
> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compileSingleFile(QVTOCompiler.java:373)
> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:259)
> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:246)
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:75)
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:63)
>
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:46)
> at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
>
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
>
> at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
> at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
> at org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.generate(XpandTextEmitter.java:64)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGenerateJavaClass(GeneratorBase.java:347)
> at org.eclipse.gmf.codegen.util.Generator.generateExternalizationSupport(Generator.java:892)
> at org.eclipse.gmf.codegen.util.Generator.customRun(Generator.java:135)
> at org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run(GeneratorBase.java:486)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
> at org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun(GeneratorBase.java:483)
> at org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(GeneratorBase.java:90)
> at
> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation.run(ExecuteTemplatesOperation.java:226)
>
> at
> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation$1.run(ExecuteTemplatesOperation.java:122)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
> Session Data:
> eclipse.buildId=M20130204-1200
> java.version=1.7.0_40
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
> Framework arguments: -product org.eclipse.epp.package.modeling.product
> Command-line arguments: -os win32 -ws win32 -arch x86_64 -product
> org.eclipse.epp.package.modeling.product
>
>
> Does any one know how to fix the error?
>
> Martin
Re: Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage [message #1129523 is a reply to message #1129304] Tue, 08 October 2013 18:21 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5590
Registered: July 2009
Senior Member
I like this type of self-healing problem :P

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 08.10.2013 15:52, schrieb Martin Jacob:
> After deleting the project and getting a fresh update from svn then generation works like magic. No idea what has
> changed but its ok now.
> :)
>
>
> schrieb Martin Jacob, Am 08.10.2013 14:52:
>> Hi,
>>
>> I updating an GMF generated editor. Using now emf 2.9.1 with Eclipse 4.2.2.
>>
>> After generating the code from genmodel I try to generate the diagram editor via the GMF Dashboard.
>> The generation of the diagram editor fails with the following Error:
>> An internal error occurred during: "Execute Templates".
>> Stacktrace:
>> java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.emf.cdo.security.SecurityPackage
>> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>> at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
>> at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
>> at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
>> at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
>> at java.lang.reflect.Field.get(Unknown Source)
>> at
>> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:273)
>> at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
>> at
>> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getModel(EmfMetamodelDesc.java:64)
>>
>> at
>> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.EmfMetamodelDesc.getLoadStatus(EmfMetamodelDesc.java:86)
>>
>> at
>> org.eclipse.m2m.internal.qvt.oml.emf.util.mmregistry.MetamodelRegistry.toEPackageRegistry(MetamodelRegistry.java:85)
>>
>> at
>> org.eclipse.m2m.internal.qvt.oml.compiler.CompilerUtils.getEPackageRegistry(CompilerUtils.java:106)
>> at
>> org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.getEPackageRegistry(QVTOCompiler.java:569)
>> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.parse(QVTOCompiler.java:272)
>> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.doCompile(QVTOCompiler.java:416)
>> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compileSingleFile(QVTOCompiler.java:373)
>> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:259)
>> at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:246)
>> at
>> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:75)
>> at
>> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:63)
>>
>> at
>> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:46)
>> at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
>> at
>> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
>>
>> at
>> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
>>
>> at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
>> at
>> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
>> at
>> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
>> at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
>> at org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.generate(XpandTextEmitter.java:64)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGenerateJavaClass(GeneratorBase.java:347)
>> at org.eclipse.gmf.codegen.util.Generator.generateExternalizationSupport(Generator.java:892)
>> at org.eclipse.gmf.codegen.util.Generator.customRun(Generator.java:135)
>> at org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run(GeneratorBase.java:486)
>> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
>> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
>> at org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun(GeneratorBase.java:483)
>> at org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(GeneratorBase.java:90)
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation.run(ExecuteTemplatesOperation.java:226)
>>
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation$1.run(ExecuteTemplatesOperation.java:122)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>>
>> Session Data:
>> eclipse.buildId=M20130204-1200
>> java.version=1.7.0_40
>> java.vendor=Oracle Corporation
>> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
>> Framework arguments: -product org.eclipse.epp.package.modeling.product
>> Command-line arguments: -os win32 -ws win32 -arch x86_64 -product
>> org.eclipse.epp.package.modeling.product
>>
>>
>> Does any one know how to fix the error?
>>
>> Martin
Previous Topic:(non) modifiable attributes...
Next Topic:EMF artifacts on Maven Central
Goto Forum:
  


Current Time: Sun Dec 21 17:20:59 GMT 2014

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

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