Git Product home page Git Product logo

Comments (4)

claudemamo avatar claudemamo commented on July 20, 2024

Probably it's taking a minute to start because Smooks is compiling the DFDL schema EDIFACT-Messages.dfdl.xsd. Try setting to true the cacheOnDisk attribute on edifact:unparser to reduce the startup time. As for the errors, I can't comment on them until I can reproduce the errors locally.

from smooks.

domids avatar domids commented on July 20, 2024

Thanks for the tip about cacheOnDisk- sadly it doesn't seem to improve initializiation time much in my project.

Here is a small sample project with a lot of dependencies. It just initializes Smooks, which takes about 14 seconds on my machine. In addition a lot of ClassNotFoundExceptions are thrown.
https://github.com/domids/smooks-startup-test

Thank you very much for your effort!

from smooks.

claudemamo avatar claudemamo commented on July 20, 2024

Your application started up on my machine without a hitch on Java 11 but I do get errors for Java 8:

java.lang.UnsupportedClassVersionError: META-INF/versions/11/module-info has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

My guess is that one or more app dependencies are Java 8 incompatible.

from smooks.

domids avatar domids commented on July 20, 2024

To verify it works with Java 8 I created a GitHub action: https://github.com/domids/smooks-startup-test/runs/4441572234?check_suite_focus=true

The interesting thing is, it doesn't throw any exceptions. So I ran the tests locally with Maven and there weren't also any exceptions. It seems the culprit was executing the application/tests via IntelliJ IDEA.
Sorry for bothering you and thank you for the help.

from smooks.

Related Issues (20)

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.