Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/EMF] Missing serialized package: myPackage.ecore
[CDO/EMF] Missing serialized package: myPackage.ecore [message #425822] Tue, 09 December 2008 13:09 Go to next message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi,

can anyone say something about this exception?

java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unkn own
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$EPackageDescript or.getEPackage(RegistryReader.java:255)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
at
org.eclipse.emf.internal.cdo.util.ModelUtil.getGeneratedEPac kage(ModelUtil.java:348)
at
org.eclipse.emf.internal.cdo.util.ModelUtil.createEPackage(M odelUtil.java:330)
at
org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl$Rem otePackageDescriptor.getEPackage(CDOPackageRegistryImpl.java :181)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
at
org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.lo adPackage(CDOSessionPackageManagerImpl.java:152)
at
org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loa d(CDOPackageImpl.java:401)
at
org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loo kupClass(CDOPackageImpl.java:288)
at
org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl.re solve(CDOClassRefImpl.java:71)
at
org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO ClassRefAndResolve(CDODataInputImpl.java:218)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:114)
at
org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO Revision(CDODataInputImpl.java:309)
at
org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:116)
at
org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
at
org.eclipse.emf.internal.cdo.protocol.CDOClientRequest.confi rming(CDOClientRequest.java:103)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:118)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:98)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:68)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:237)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:392)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:82)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
at
org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.send(CDO RevisionManagerImpl.java:149)
at
org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.loadRevi sions(CDORevisionManagerImpl.java:125)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevisions(CDORevisionResolverImpl.java:186)
at org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:374)
at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:175)
at
org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
at
org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:396)
at
de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.isReferenceSet(TraceabilityView.java:83)
at
de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.getFont(TraceabilityView.java:70)
at
org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnL abelProvider.java:41)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
at
org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(A bstractTableViewer.java:386)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:466)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
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.StructuredViewer.updateItem(Struct uredViewer.java:2041)
at
org.eclipse.jface.viewers.AbstractTableViewer.createItem(Abs tractTableViewer.java:264)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefres hAll(AbstractTableViewer.java:741)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:633)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:620)
at
org.eclipse.jface.viewers.AbstractTableViewer$2.run(Abstract TableViewer.java:576)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1365)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1328)
at
org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(A bstractTableViewer.java:574)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1603)
at
de.feuh.st.requipse.ui.views.TraceabilityView.selectionChang ed(TraceabilityView.java:167)
at
org.eclipse.ui.internal.AbstractSelectionService.firePostSel ection(AbstractSelectionService.java:179)
at
org.eclipse.ui.internal.AbstractSelectionService$2.selection Changed(AbstractSelectionService.java:71)
at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
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.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
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:193)
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:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.RuntimeException: Missing serialized package:
weightedLinks.ecore
at
de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.loadPackage(WeightedLinksPackageIm pl.java:219)
at
de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.init(WeightedLinksPackageImpl.java :122)
at
de.feuh.st.requipse.tracer.links.weighted.weightedLinks.Weig htedLinksPackage. <clinit>(WeightedLinksPackage.java:63)
... 97 more


This is what I do:

Create a model on another (Linux-) PC with CDO/HSQLDB, then copy the
HSQLDB to my (Windows-)PC, read the model (which works for several
elements) but as soon as I want to read a WeightedLink (instance of a
different metamodel than the rest) I get the error above.

Where does EMF look for the .ecore file and why does it not find it (it
is in the model/ folder of the plugin-project ...).

Any hints?

Cheers,
Stefan
Re: [CDO/EMF] Missing serialized package: myPackage.ecore [message #425824 is a reply to message #425822] Tue, 09 December 2008 13:17 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6483
Registered: July 2009
Senior Member
Hi Stefan,

I know I had this error once long ago but I can#t remeber the cause
anymore ;-(
Let's hear if Ed can explain it...

Cheers
/Eike

----
http://thegordian.blogspot.com



Stefan Winkler schrieb:
> Hi,
>
> can anyone say something about this exception?
>
> java.lang.ExceptionInInitializerError
> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unkn own
> 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$EPackageDescript or.getEPackage(RegistryReader.java:255)
>
> at
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>
> at
> org.eclipse.emf.internal.cdo.util.ModelUtil.getGeneratedEPac kage(ModelUtil.java:348)
>
> at
> org.eclipse.emf.internal.cdo.util.ModelUtil.createEPackage(M odelUtil.java:330)
>
> at
> org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl$Rem otePackageDescriptor.getEPackage(CDOPackageRegistryImpl.java :181)
>
> at
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>
> at
> org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.lo adPackage(CDOSessionPackageManagerImpl.java:152)
>
> at
> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loa d(CDOPackageImpl.java:401)
>
> at
> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loo kupClass(CDOPackageImpl.java:288)
>
> at
> org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl.re solve(CDOClassRefImpl.java:71)
>
> at
> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO ClassRefAndResolve(CDODataInputImpl.java:218)
>
> at
> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:114)
>
> at
> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO Revision(CDODataInputImpl.java:309)
>
> at
> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:116)
>
> at
> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.protocol.CDOClientRequest.confi rming(CDOClientRequest.java:103)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:118)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:98)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:68)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:237)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:392)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:82)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.send(CDO RevisionManagerImpl.java:149)
>
> at
> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.loadRevi sions(CDORevisionManagerImpl.java:125)
>
> at
> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevisions(CDORevisionResolverImpl.java:186)
>
> at
> org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:374)
> at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:175)
> at
> org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
>
> at
> org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:396)
> at
> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.isReferenceSet(TraceabilityView.java:83)
>
> at
> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.getFont(TraceabilityView.java:70)
>
> at
> org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnL abelProvider.java:41)
>
> at
> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
> at
> org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(A bstractTableViewer.java:386)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:466)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> 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.StructuredViewer.updateItem(Struct uredViewer.java:2041)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer.createItem(Abs tractTableViewer.java:264)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres hAll(AbstractTableViewer.java:741)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:633)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:620)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer$2.run(Abstract TableViewer.java:576)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1365)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1328)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(A bstractTableViewer.java:574)
>
> at
> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
> at
> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1603)
>
> at
> de.feuh.st.requipse.ui.views.TraceabilityView.selectionChang ed(TraceabilityView.java:167)
>
> at
> org.eclipse.ui.internal.AbstractSelectionService.firePostSel ection(AbstractSelectionService.java:179)
>
> at
> org.eclipse.ui.internal.AbstractSelectionService$2.selection Changed(AbstractSelectionService.java:71)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> 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.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
>
> at
> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
>
> at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>
> 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:193)
>
> 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:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.lang.RuntimeException: Missing serialized package:
> weightedLinks.ecore
> at
> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.loadPackage(WeightedLinksPackageIm pl.java:219)
>
> at
> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.init(WeightedLinksPackageImpl.java :122)
>
> at
> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.Weig htedLinksPackage. <clinit>(WeightedLinksPackage.java:63)
>
> ... 97 more
>
>
> This is what I do:
>
> Create a model on another (Linux-) PC with CDO/HSQLDB, then copy the
> HSQLDB to my (Windows-)PC, read the model (which works for several
> elements) but as soon as I want to read a WeightedLink (instance of a
> different metamodel than the rest) I get the error above.
>
> Where does EMF look for the .ecore file and why does it not find it
> (it is in the model/ folder of the plugin-project ...).
>
> Any hints?
>
> Cheers,
> Stefan
>
>


Re: [CDO/EMF] Missing serialized package: myPackage.ecore [message #425899 is a reply to message #425824] Thu, 11 December 2008 13:09 Go to previous messageGo to next message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi,

I still got this issue :-(

Should I open a bugzilla?
Ed?

Cheers,
Stefan



Eike Stepper schrieb:
> Hi Stefan,
>
> I know I had this error once long ago but I can#t remeber the cause
> anymore ;-(
> Let's hear if Ed can explain it...
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Stefan Winkler schrieb:
>> Hi,
>>
>> can anyone say something about this exception?
>>
>> java.lang.ExceptionInInitializerError
>> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>> at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unkn own
>> 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$EPackageDescript or.getEPackage(RegistryReader.java:255)
>>
>> at
>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>
>> at
>> org.eclipse.emf.internal.cdo.util.ModelUtil.getGeneratedEPac kage(ModelUtil.java:348)
>>
>> at
>> org.eclipse.emf.internal.cdo.util.ModelUtil.createEPackage(M odelUtil.java:330)
>>
>> at
>> org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl$Rem otePackageDescriptor.getEPackage(CDOPackageRegistryImpl.java :181)
>>
>> at
>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.lo adPackage(CDOSessionPackageManagerImpl.java:152)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loa d(CDOPackageImpl.java:401)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loo kupClass(CDOPackageImpl.java:288)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl.re solve(CDOClassRefImpl.java:71)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO ClassRefAndResolve(CDODataInputImpl.java:218)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:114)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO Revision(CDODataInputImpl.java:309)
>>
>> at
>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:116)
>>
>> at
>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
>>
>> at
>> org.eclipse.emf.internal.cdo.protocol.CDOClientRequest.confi rming(CDOClientRequest.java:103)
>>
>> at
>> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:118)
>>
>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
>> at
>> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:98)
>>
>> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:68)
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:237)
>> at
>> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:392)
>>
>> at
>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:82)
>>
>> at
>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.send(CDO RevisionManagerImpl.java:149)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.loadRevi sions(CDORevisionManagerImpl.java:125)
>>
>> at
>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevisions(CDORevisionResolverImpl.java:186)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:374)
>> at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:175)
>> at
>> org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
>>
>> at
>> org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:396)
>>
>> at
>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.isReferenceSet(TraceabilityView.java:83)
>>
>> at
>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.getFont(TraceabilityView.java:70)
>>
>> at
>> org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnL abelProvider.java:41)
>>
>> at
>> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(A bstractTableViewer.java:386)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:466)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>> 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.StructuredViewer.updateItem(Struct uredViewer.java:2041)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.createItem(Abs tractTableViewer.java:264)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres hAll(AbstractTableViewer.java:741)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:633)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:620)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer$2.run(Abstract TableViewer.java:576)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1365)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1328)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(A bstractTableViewer.java:574)
>>
>> at
>> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1603)
>>
>> at
>> de.feuh.st.requipse.ui.views.TraceabilityView.selectionChang ed(TraceabilityView.java:167)
>>
>> at
>> org.eclipse.ui.internal.AbstractSelectionService.firePostSel ection(AbstractSelectionService.java:179)
>>
>> at
>> org.eclipse.ui.internal.AbstractSelectionService$2.selection Changed(AbstractSelectionService.java:71)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>> 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.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
>> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>>
>> at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>
>> 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:193)
>>
>> 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:386)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> 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: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>> Caused by: java.lang.RuntimeException: Missing serialized package:
>> weightedLinks.ecore
>> at
>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.loadPackage(WeightedLinksPackageIm pl.java:219)
>>
>> at
>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.init(WeightedLinksPackageImpl.java :122)
>>
>> at
>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.Weig htedLinksPackage. <clinit>(WeightedLinksPackage.java:63)
>>
>> ... 97 more
>>
>>
>> This is what I do:
>>
>> Create a model on another (Linux-) PC with CDO/HSQLDB, then copy the
>> HSQLDB to my (Windows-)PC, read the model (which works for several
>> elements) but as soon as I want to read a WeightedLink (instance of a
>> different metamodel than the rest) I get the error above.
>>
>> Where does EMF look for the .ecore file and why does it not find it
>> (it is in the model/ folder of the plugin-project ...).
>>
>> Any hints?
>>
>> Cheers,
>> Stefan
>>
>>
Re: [CDO/EMF] Missing serialized package: myPackage.ecore [message #425901 is a reply to message #425899] Thu, 11 December 2008 13:28 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6483
Registered: July 2009
Senior Member
Stefan,

I know that it's currently not so easy as usual to maintain the newsgroup.
So I suggest htat you file a bugzilla on CDO and cc Ed.

Cheers
/Eike

----
http://thegordian.blogspot.com



Stefan Winkler schrieb:
> Hi,
>
> I still got this issue :-(
>
> Should I open a bugzilla?
> Ed?
>
> Cheers,
> Stefan
>
>
>
> Eike Stepper schrieb:
>> Hi Stefan,
>>
>> I know I had this error once long ago but I can#t remeber the cause
>> anymore ;-(
>> Let's hear if Ed can explain it...
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>
>> Stefan Winkler schrieb:
>>> Hi,
>>>
>>> can anyone say something about this exception?
>>>
>>> java.lang.ExceptionInInitializerError
>>> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>>> at
>>> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unkn own 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$EPackageDescript or.getEPackage(RegistryReader.java:255)
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.util.ModelUtil.getGeneratedEPac kage(ModelUtil.java:348)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.util.ModelUtil.createEPackage(M odelUtil.java:330)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl$Rem otePackageDescriptor.getEPackage(CDOPackageRegistryImpl.java :181)
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.lo adPackage(CDOSessionPackageManagerImpl.java:152)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loa d(CDOPackageImpl.java:401)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loo kupClass(CDOPackageImpl.java:288)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl.re solve(CDOClassRefImpl.java:71)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO ClassRefAndResolve(CDODataInputImpl.java:218)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:114)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO Revision(CDODataInputImpl.java:309)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:116)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.protocol.CDOClientRequest.confi rming(CDOClientRequest.java:103)
>>>
>>> at
>>> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:118)
>>>
>>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
>>> at
>>> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:98)
>>>
>>> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:68)
>>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:237)
>>> at
>>> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:392)
>>>
>>> at
>>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:82)
>>>
>>> at
>>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.send(CDO RevisionManagerImpl.java:149)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.loadRevi sions(CDORevisionManagerImpl.java:125)
>>>
>>> at
>>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevisions(CDORevisionResolverImpl.java:186)
>>>
>>> at
>>> org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:374)
>>> at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:175)
>>> at
>>> org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
>>>
>>> at
>>> org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:396)
>>>
>>> at
>>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.isReferenceSet(TraceabilityView.java:83)
>>>
>>> at
>>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.getFont(TraceabilityView.java:70)
>>>
>>> at
>>> org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnL abelProvider.java:41)
>>>
>>> at
>>> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(A bstractTableViewer.java:386)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:466)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>> 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.StructuredViewer.updateItem(Struct uredViewer.java:2041)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.createItem(Abs tractTableViewer.java:264)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres hAll(AbstractTableViewer.java:741)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:633)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:620)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer$2.run(Abstract TableViewer.java:576)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1365)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1328)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(A bstractTableViewer.java:574)
>>>
>>> at
>>> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1603)
>>>
>>> at
>>> de.feuh.st.requipse.ui.views.TraceabilityView.selectionChang ed(TraceabilityView.java:167)
>>>
>>> at
>>> org.eclipse.ui.internal.AbstractSelectionService.firePostSel ection(AbstractSelectionService.java:179)
>>>
>>> at
>>> org.eclipse.ui.internal.AbstractSelectionService$2.selection Changed(AbstractSelectionService.java:71)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>> 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.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
>>> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>>>
>>> at
>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>>
>>> 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:193)
>>>
>>> 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:386)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>>
>>> 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: 549)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>>> Caused by: java.lang.RuntimeException: Missing serialized package:
>>> weightedLinks.ecore
>>> at
>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.loadPackage(WeightedLinksPackageIm pl.java:219)
>>>
>>> at
>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.init(WeightedLinksPackageImpl.java :122)
>>>
>>> at
>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.Weig htedLinksPackage. <clinit>(WeightedLinksPackage.java:63)
>>>
>>> ... 97 more
>>>
>>>
>>> This is what I do:
>>>
>>> Create a model on another (Linux-) PC with CDO/HSQLDB, then copy the
>>> HSQLDB to my (Windows-)PC, read the model (which works for several
>>> elements) but as soon as I want to read a WeightedLink (instance of
>>> a different metamodel than the rest) I get the error above.
>>>
>>> Where does EMF look for the .ecore file and why does it not find it
>>> (it is in the model/ folder of the plugin-project ...).
>>>
>>> Any hints?
>>>
>>> Cheers,
>>> Stefan
>>>
>>>


Re: [CDO/EMF] Missing serialized package: myPackage.ecore [message #425935 is a reply to message #425901] Fri, 12 December 2008 13:39 Go to previous message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi,

I found a solution which is ok for me.
For some reason which I can't reconstruct (maybe just turning the
scrollwheel at the wrong time) I had the "Initialize by loading"
property in that package set to true - in all other packages it was false.

So while I still don't know why the bundle class loader is looking in
the wrong place for the .ecore file, if I use initialize by
loading=false, it does not try to find the package in the first place
and everything is fine ;-)

Cheers,
Stefan

Eike Stepper schrieb:
> Stefan,
>
> I know that it's currently not so easy as usual to maintain the
> newsgroup.
> So I suggest htat you file a bugzilla on CDO and cc Ed.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Stefan Winkler schrieb:
>> Hi,
>>
>> I still got this issue :-(
>>
>> Should I open a bugzilla?
>> Ed?
>>
>> Cheers,
>> Stefan
>>
>>
>>
>> Eike Stepper schrieb:
>>> Hi Stefan,
>>>
>>> I know I had this error once long ago but I can#t remeber the cause
>>> anymore ;-(
>>> Let's hear if Ed can explain it...
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>>
>>>
>>>
>>> Stefan Winkler schrieb:
>>>> Hi,
>>>>
>>>> can anyone say something about this exception?
>>>>
>>>> java.lang.ExceptionInInitializerError
>>>> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>>>> at
>>>> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unkn own
>>>> 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$EPackageDescript or.getEPackage(RegistryReader.java:255)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.util.ModelUtil.getGeneratedEPac kage(ModelUtil.java:348)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.util.ModelUtil.createEPackage(M odelUtil.java:330)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl$Rem otePackageDescriptor.getEPackage(CDOPackageRegistryImpl.java :181)
>>>>
>>>> at
>>>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.lo adPackage(CDOSessionPackageManagerImpl.java:152)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loa d(CDOPackageImpl.java:401)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.model.CDOPackageImpl.loo kupClass(CDOPackageImpl.java:288)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl.re solve(CDOClassRefImpl.java:71)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO ClassRefAndResolve(CDODataInputImpl.java:218)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:114)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.CDODataInputImpl.readCDO Revision(CDODataInputImpl.java:309)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:116)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.protocol.CDOClientRequest.confi rming(CDOClientRequest.java:103)
>>>>
>>>> at
>>>> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:118)
>>>>
>>>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:317)
>>>> at
>>>> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:98)
>>>>
>>>> at
>>>> org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:68)
>>>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:237)
>>>> at
>>>> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:392)
>>>>
>>>> at
>>>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:82)
>>>>
>>>> at
>>>> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.send(CDO RevisionManagerImpl.java:149)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.CDORevisionManagerImpl.loadRevi sions(CDORevisionManagerImpl.java:125)
>>>>
>>>> at
>>>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevisions(CDORevisionResolverImpl.java:186)
>>>>
>>>> at
>>>> org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:374)
>>>> at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:175)
>>>> at
>>>> org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
>>>>
>>>> at
>>>> org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:396)
>>>>
>>>> at
>>>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.isReferenceSet(TraceabilityView.java:83)
>>>>
>>>> at
>>>> de.feuh.st.requipse.ui.views.TraceabilityView$LabelProviderW rapper.getFont(TraceabilityView.java:70)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnL abelProvider.java:41)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(A bstractTableViewer.java:386)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:466)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>>> 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.StructuredViewer.updateItem(Struct uredViewer.java:2041)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.createItem(Abs tractTableViewer.java:264)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres hAll(AbstractTableViewer.java:741)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:633)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.internalRefres h(AbstractTableViewer.java:620)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer$2.run(Abstract TableViewer.java:576)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1365)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1328)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(A bstractTableViewer.java:574)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1603)
>>>>
>>>> at
>>>> de.feuh.st.requipse.ui.views.TraceabilityView.selectionChang ed(TraceabilityView.java:167)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.AbstractSelectionService.firePostSel ection(AbstractSelectionService.java:179)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.AbstractSelectionService$2.selection Changed(AbstractSelectionService.java:71)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>>> 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.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
>>>> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>> at
>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>>>>
>>>> at
>>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>>>
>>>> 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:193)
>>>>
>>>> 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:386)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>>>
>>>> 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: 549)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>>>> Caused by: java.lang.RuntimeException: Missing serialized package:
>>>> weightedLinks.ecore
>>>> at
>>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.loadPackage(WeightedLinksPackageIm pl.java:219)
>>>>
>>>> at
>>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.impl .WeightedLinksPackageImpl.init(WeightedLinksPackageImpl.java :122)
>>>>
>>>> at
>>>> de.feuh.st.requipse.tracer.links.weighted.weightedLinks.Weig htedLinksPackage. <clinit>(WeightedLinksPackage.java:63)
>>>>
>>>> ... 97 more
>>>>
>>>>
>>>> This is what I do:
>>>>
>>>> Create a model on another (Linux-) PC with CDO/HSQLDB, then copy
>>>> the HSQLDB to my (Windows-)PC, read the model (which works for
>>>> several elements) but as soon as I want to read a WeightedLink
>>>> (instance of a different metamodel than the rest) I get the error
>>>> above.
>>>>
>>>> Where does EMF look for the .ecore file and why does it not find it
>>>> (it is in the model/ folder of the plugin-project ...).
>>>>
>>>> Any hints?
>>>>
>>>> Cheers,
>>>> Stefan
>>>>
>>>>
Previous Topic:EMF Statechart support for generating state machine codes
Next Topic:custom widgets with EMF
Goto Forum:
  


Current Time: Sat Feb 22 17:13:44 GMT 2020

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

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

Back to the top