Giter Club home page Giter Club logo

olca-conversion-service's People

Contributors

msrocka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

olca-conversion-service's Issues

Support MySQL

Add possibility to use a MySQL database for the conversion back-end.

Enhancement: add caching

The result of a conversion could be stored in a cache, so subsequent calls to convert the exact same object to the exact same target would be served from the cache for a certain period of time.

Reference systems in requests

  • get available reference systems from server
  • add optional parameter for the reference systems that should be used in a conversion in the conversion request

Failure when building with olca-modules 1.7.4

I am having an issue when building with the latest version (1.7.4) of olca-modules, built from GreenDelta/olca-modules. I have changed olca-conversion-service/pom.xml <olca.version> tag to 1.7.4.

There are some incompatible function names and types. Build log bellow:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.817 s
[INFO] Finished at: 2018-11-29T09:30:04-02:00
[INFO] Final Memory: 52M/285M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.2.31:compile (compile) on project olca-conversion-service: Compilation failure: Compilation failure:
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/ImportILCD.kt:[24,13] Unresolved reference: importProcess
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/ImportSimaProCsv.kt:[22,40] Type mismatch: inferred type is File but Array<(out) File!>! was expected
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/LcaRepo.kt:[16,1] Class 'LcaRepo' is not abstract and does not implement abstract member public abstract fun putMetaInfo(p0: JsonObject!): Unit defined in org.openlca.jsonld.EntityStore
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Error when trying to build from source

I get an error when launching mvn install. I (think I correctly) installed the olca modules. mvn install successed.

Here is the stack trace

[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.2.31:compile (compile) on project olca-conversion-service: Compilation failure: Compilation failure:
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/RefSystem.kt:[16,32] Unresolved reference: restoreInMemory
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/RefSystem.kt:[49,19] Unresolved reference: dump
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ConversionSetup.kt:[16,24] Type mismatch: inferred type is List<FlowMapEntry>? but String! was expected
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ConversionSetup.kt:[16,35] No value passed for parameter 'p1'
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[6,39] Unresolved reference: ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[12,22] Unresolved reference: ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[14,19] None of the following functions can be called with the arguments supplied:
[ERROR] public constructor EcoSpold01Import(p0: IDatabase!, p1: UnitMapping!) defined in org.openlca.io.ecospold1.input.EcoSpold01Import
[ERROR] public constructor EcoSpold01Import(p0: IDatabase!, p1: UnitMapping!, p2: Array<(out) File!>!) defined in org.openlca.io.ecospold1.input.EcoSpold01Import
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[23,35] Too many arguments for public constructor ImportConfig() defined in org.openlca.io.ecospold2.input.ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[24,16] Unresolved reference: flowMap
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[25,35] Type mismatch: inferred type is ImportConfig but IDatabase! was expected
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportILCD.kt:[22,9] Val cannot be reassigned
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportJSON.kt:[17,17] Too many arguments for public open fun run(): Unit defined in org.openlca.jsonld.input.JsonImport
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportJSON.kt:[17,36] Too many arguments for public open fun run(): Unit defined in org.openlca.jsonld.input.JsonImport
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.