Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Re: [TEXO] problem with annotationsmodel
Re: [TEXO] problem with annotationsmodel [message #551288] Thu, 05 August 2010 19:43
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Michal,
Are you running Eclipse with jdk 1.5? I did the last build using jdk 1.6 and have now build again using jdk 1.5, I
published this build a few minutes back, maybe it makes a difference...

btw, Texo is supported on the EMFT newsgroup which I added as a cc.

gr. Martin

On 08/05/2010 04:18 PM, e1n wrote:
> Hi !
>
> I have decided to switch my project from EMF/TENEO to EMF/TEXO.
> I had already *.ecore model so I have installed texo from it's update site.
> Then I created ordinary java project and added Texto Nature to it.
> I have chenged names of source and templates folders etc.
> My next step was to generate model code and orm.xml file with some custom
> java annotations using texo.java.annotation source it also worked with
> out any problem.
> Problem occur when I generated annotationsmodel. All seemed to be
> working fine until I had started to traverse the *.annotationsmodel tree
> structure in order to find and change Generate save many access
> property. I was flooded with following errors:
>
> !ENTRY org.eclipse.jface 4 2 2010-08-05 16:17:19.844
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> org.eclipse.emf.common.util.WrappedException:
> org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.texo.orm.edit was unable to load class
> org.eclipse.emf.texo.orm.ormannotations.provider.Ormannotati onsItemProviderAdapterFactory.
>
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:176)
>
> at
> org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:163)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:246)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:297)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:277)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:264)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.getResourc eLocator(ItemProviderAdapter.java:1851)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.getTypeTex t(ItemProviderAdapter.java:1785)
>
> at
> org.eclipse.emf.texo.annotations.annotationsmodel.provider.A nnotatedEReferenceItemProvider.getCreateChildText(AnnotatedE ReferenceItemProvider.java:225)
>
> at
> org.eclipse.emf.edit.command.CreateChildCommand.<init>(CreateChildCommand.java:220)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.createCrea teChildCommand(ItemProviderAdapter.java:1195)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.createCrea teChildCommand(ItemProviderAdapter.java:1179)
>
> at
> org.eclipse.emf.edit.provider.ItemProviderAdapter.createComm and(ItemProviderAdapter.java:999)
>
> at
> org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.crea teCommand(AdapterFactoryEditingDomain.java:464)
>
> at
> org.eclipse.emf.edit.command.CreateChildCommand.create(Creat eChildCommand.java:66)
>
> at
> org.eclipse.emf.edit.ui.action.CreateChildAction.createActio nCommand(CreateChildAction.java:89)
>
> at
> org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction. configureAction(StaticSelectionCommandAction.java:155)
>
> at
> org.eclipse.emf.edit.ui.action.CreateChildAction.<init>(CreateChildAction.java:53)
>
> at
> org.eclipse.emf.edit.ui.action.CreateChildAction.<init>(CreateChildAction.java:63)
>
> at
> org.eclipse.emf.texo.annotations.annotationsmodel.presentati on.AnnotationsmodelActionBarContributor.generateCreateChildA ctions(AnnotationsmodelActionBarContributor.java:299)
>
> at
> org.eclipse.emf.texo.annotations.annotationsmodel.presentati on.AnnotationsmodelActionBarContributor.selectionChanged(Ann otationsmodelActionBarContributor.java:275)
>
> at
> org.eclipse.emf.texo.annotations.annotationsmodel.presentati on.AnnotationsmodelEditor.setSelection(AnnotationsmodelEdito r.java:1645)
>
> at
> org.eclipse.emf.texo.annotations.annotationsmodel.presentati on.AnnotationsmodelEditor$6.selectionChanged(Annotationsmode lEditor.java:838)
>
> at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.core.runtime.Platform.run(Platform.java:888)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
> at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
> at
> org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2132)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1160)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1190)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:228)
>
> at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:222)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:389)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1598)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 396)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3484)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3068)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>
> 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(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:592)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> Caused by: org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.texo.orm.edit was unable to load class
> org.eclipse.emf.texo.orm.ormannotations.provider.Ormannotati onsItemProviderAdapterFactory.
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:164)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:874)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:172)
>
> ... 61 more
> Caused by: java.lang.UnsupportedClassVersionError: Bad version number in
> .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:183)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:576)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:546)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:477)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:465)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:445)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:211)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:381)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
>
> 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:326)
>
> 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.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> ... 65 more
>
>
> With regards, e1n


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:eoperation in ecore diagram
Next Topic:Re: [TEXO] problem with annotationsmodel
Goto Forum:
  


Current Time: Sat Apr 20 03:54:41 GMT 2024

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

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

Back to the top