Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Problems on CDOPackageUnit after server reboot
[CDO] Problems on CDOPackageUnit after server reboot [message #1419319] Mon, 08 September 2014 12:27
Sata Nambinina is currently offline Sata NambininaFriend
Messages: 1
Registered: September 2014
Junior Member
Hi all,

We have a problem after a database import :
- We do export and import to/from XMI

- Export and import is fine : all data are loaded and work fine

When doing "cdo packages REPO", we got this :
[i]CDOPackageUnit[id=fr.profil, state=LOADED, type=DYNAMIC, originalType=NATIVE, timeStamp=2014-09-08 14:13:53.255]
CDOPackageInfo[packageURI=fr.model, parentURI=null]
CDOPackageInfo[packageURI=fr.model.shape, parentURI=fr.model]
[/i]
- after the import and tests, we close the server from OSGI Console "close"

- We launch server and when doing "cdo packages REPO" on OSGI console, we do not have the same as before, the order and the package Unit was changed :

[i]CDOPackageUnit[id=fr.model.shape, state=PROXY, type=UNKNOWN, originalType=NATIVE, timeStamp=2014-09-08 13:58:51.610]
CDOPackageInfo[packageURI=fr.model.shape, parentURI=fr.model]
CDOPackageInfo[packageURI=fr.model, parentURI=null]
[/i]
No errors appear on Server Console when launching the server. After the launch of the client, NullPointerException occured on MetaDataManager::loadPackageUnit :
Object[] values = DBUtil.select(connection, where, CDODBSchema.PACKAGE_UNITS_PACKAGE_DATA);
=> return null
with the variable where = "id='fr.model.shape'"
and the message below appears :

Quote:
java.lang.NullPointerException
at org.eclipse.emf.cdo.server.internal.db.MetaDataManager.loadPackageUnit(MetaDataManager.java:123)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.loadPackageUnit(DBStoreAccessor.java:804)
at org.eclipse.emf.cdo.internal.server.Repository.loadPackages(Repository.java:361)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageUnitImpl.load(CDOPackageUnitImpl.java:250)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageUnitImpl.load(CDOPackageUnitImpl.java:239)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageInfoImpl.doGetEPackage(CDOPackageInfoImpl.java:123)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageInfoImpl.getEPackage(CDOPackageInfoImpl.java:110)
at org.eclipse.emf.cdo.internal.common.model.CDOPackageInfoImpl.getEPackage(CDOPackageInfoImpl.java:105)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:133)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.delegatedGetResource(ResourceSetImpl.java:337)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:379)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:216)
at org.eclipse.emf.cdo.server.internal.db.MetaDataManager.getMetaInstance(MetaDataManager.java:110)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.ObjectTypeTable.getObjectType(ObjectTypeTable.java:90)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.DelegatingObjectTypeMapper.getObjectType(DelegatingObjectTypeMapper.java:60)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractHorizontalMappingStrategy.readObjectType(AbstractHorizontalMappingStrategy.java:76)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalMappingStrategy.readObjectType(HorizontalMappingStrategy.java:194)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.readObjectType(DBStoreAccessor.java:178)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.getObjectType(DBStoreAccessor.java:195)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.readRevision(DBStoreAccessor.java:215)
at org.eclipse.emf.cdo.internal.server.Repository.loadRevisions(Repository.java:470)
at org.eclipse.emf.cdo.internal.common.revision.CDORevisionManagerImpl.loadRevisions(CDORevisionManagerImpl.java:382)
at org.eclipse.emf.cdo.internal.common.revision.CDORevisionManagerImpl.getRevisions(CDORevisionManagerImpl.java:293)
at org.eclipse.emf.cdo.internal.common.revision.CDORevisionManagerImpl.getRevision(CDORevisionManagerImpl.java:276)
at org.eclipse.emf.cdo.spi.common.revision.RevisionInfo.execute(RevisionInfo.java:132)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.LoadRevisionsIndication.responding(LoadRevisionsIndication.java:169)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:134)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:298)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerReadIndication.execute(CDOServerReadIndication.java:36)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



Does anyone have idea or advice on where the problem is ?

Thanks in Advance,

Sata
Previous Topic:[xcore] Disabling auto-build of xcore
Next Topic:Call for Submissions: Modeling Symposium ECE 2014
Goto Forum:
  


Current Time: Sat Aug 24 01:08:43 GMT 2019

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

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

Back to the top