Page 1 of 1

EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 13 Sep 2017 14:37
by tomas.navarrete
Hi,

In a fresh install of openlca 1.6 (linux) I tried to install EUGEOS 2.1 "System" version but the full installation fails. The process is incomplete, and once it is finished, I end up with an incomplete version of EUGEOS 2.1 (there are very few Processes and no Impact Assessment methods).

Is there something in particular that I must do in Linux to make it work ?


here is the error message that gets logged:

Code: Select all

315859 	ModalContext 	WARN 	org.openlca.io.olca.ProcessImport 	there where invalid exchanges in RootEntity [type=Process, refId=cc2ffc7b-7998-49dd-ab6c-fe56fbc401bd, name=heat and power co-generation, natural gas, combined cycle power plant, 400MW electrical | heat, district or industrial, natural gas | cut-off, S] that where removed during the import
315888 	ModalContext 	ERROR 	org.openlca.core.database.ProcessDao 	Error while inserting Process

Code: Select all

javax.persistence.RollbackException: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: RootEntity [type=Flow, refId=1125e767-7b5d-442e-81d6-9b0d3e1919ac, name=heat, district or industrial, natural gas].
     at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:159)
     at org.openlca.core.database.BaseDao.insert(BaseDao.java:163)
     at org.openlca.io.olca.ProcessImport.createProcess(ProcessImport.java:80)
     at org.openlca.io.olca.ProcessImport.run(ProcessImport.java:61)
     at org.openlca.io.olca.DatabaseImport.importStructs(DatabaseImport.java:79)
     at org.openlca.io.olca.DatabaseImport.run(DatabaseImport.java:34)
     at org.openlca.app.wizards.io.DbImportWizard$ImportDispatch.run(Unknown Source)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: RootEntity [type=Flow, refId=1125e767-7b5d-442e-81d6-9b0d3e1919ac, name=heat, district or industrial, natural gas].
     at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.discoverUnregisteredNewObjects(RepeatableWriteUnitOfWork.java:313)
     at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.calculateChanges(UnitOfWorkImpl.java:723)
     at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1516)
     at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:278)
     at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169)
     at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) 

Re: EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 13 Sep 2017 17:23
by aciroth
Thank you Thomas we will check and will post here back.

Re: EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 14 Sep 2017 16:41
by tomas.navarrete
OK.
By the way, the file I tried to import was :

Code: Select all

EuGeos' 15804-IA v.2.1

Re: EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 15 Sep 2017 11:06
by aciroth
Hi Thomas,
thank you for the feedback, the calculated system process database for EuGeos was indeed incorrect, we have fixed this now and are uploading it to Nexus as new (Nexus-internal) version, which you can then download. If you run into any further issues, please let us know.
Thank you!
Andreas

Re: EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 15 Sep 2017 14:50
by tomas.navarrete
Hi Andreas,
Thank you we weill try that and let you know what happens.

cheers,
Tomás

Re: EUGEOS 2.1 import in openlca 1.6 fails before completion

Posted: 21 Sep 2017 10:58
by tomas.navarrete
So, I have downloaded the LCI eugeos version from nexus, and restored it in openlca 1.6.3, but there are no lcia methods.
see: Image
As opposed to the unit version, that has them
see: Image

I have one question:
  • Is this the intended use of the LCI eugeos version for openlca ?
    • If this is the case, what is the best way to get the methods from the unit version into the system version ?
    • Otherwise, maybe you can propose in nexus the system version including the methods.



cheers,