GithubHelp home page GithubHelp logo

Comments (10)

arcuri82 avatar arcuri82 commented on May 14, 2024

thanks for reporting this issue.

I have not seen it before, and I cannot reproduce it. So, I ll need some more info to investigate it:

  • output of java -version
  • output of mvn --version
  • name of the project in EMB you are trying out
  • terminal command-line you are using to run evomaster.jar
  • does the same problem appear if you use evomaster.jar version 1.0.2 (downloaded from GitHub) instead of locally built 1.0.2-SNAPSHOT?

from evomaster.

bruceyy avatar bruceyy commented on May 14, 2024
mvn --version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-40-generic", arch: "amd64", family: "unix"
java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

I have tried scout-api and features-service.

running java -jar core/target/evomaster.jar

I have downloaded the v1.0.1 jar and that works, whereas my locally built 1.0.1 throws the same error as above.

thanks

from evomaster.

arcuri82 avatar arcuri82 commented on May 14, 2024

hmmm... that is really weird. Usually, that error message would be present when Jackson support is not provided to Jersey. But that is explicitly done in the pom file with:

            <dependency>
                <groupId>org.glassfish.jersey.media</groupId>
                <artifactId>jersey-media-json-jackson</artifactId>
                <version>${jersey.version}</version>
            </dependency>

can you check if those files end up in the generated jar? eg.:

cd core/target/
unzip evomaster.jar -d foo
ls foo/org/glassfish/jersey/jackson/

furthermore, which mvn command did you use when building locally?

thanks

from evomaster.

arcuri82 avatar arcuri82 commented on May 14, 2024

might also be worthy to delete the files from:
~/.m2/repository/org/glassfish/jersey/media/
to force Maven to re-download them (in case there was some file corruption issue there...)

from evomaster.

bruceyy avatar bruceyy commented on May 14, 2024

Yup files are in the generated jar

Command used : mvn clean install -DskipTests

I have wiped my maven local repo and still getting the error

from evomaster.

bruceyy avatar bruceyy commented on May 14, 2024

I have managed to build from source v1.0.1 on a different machine and copy it over, run it, and its working (woohoo).

It would seem there is something quirky going during the compilation process - thanks for your help and I will update the issue if i find out exactly what it was causing the error

from evomaster.

arcuri82 avatar arcuri82 commented on May 14, 2024

thanks for the update.

wondering if it is something related to the version of Maven... you wrote you used 3.6.3, whereas on my machine I still have an older 3.5.0

What is the Maven version in the other machine you managed to successfully build?

from evomaster.

bruceyy avatar bruceyy commented on May 14, 2024

yeah you got it - switched to maven version 3.5.0 and can successfully build and run v1.0.1 :)

(other machine was version 3.3.9)

from evomaster.

arcuri82 avatar arcuri82 commented on May 14, 2024

thanks for checking this out.
i ll need to look into why it fails with 3.6.3

from evomaster.

arcuri82 avatar arcuri82 commented on May 14, 2024

updating maven-assembly plugin seems to fix the issue

from evomaster.

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.