Code Monkey home page Code Monkey logo

Comments (8)

github-actions avatar github-actions commented on June 2, 2024

Thank you for collaborate with the project giving us feedback!!' You will help us a lot if you can attach and example AVRO and an example Test Plan in order to be able to reproduce the error. If that is the case. Cheers

from kloadgen.

kszosze avatar kszosze commented on June 2, 2024

HI @saini26rohit ,
you should not need to add any dependency for the build. Can you please provide a full log of the fail?
It will help if you can share with us which JVM and maven version are you using for it.
Regards!

from kloadgen.

saini26rohit avatar saini26rohit commented on June 2, 2024

Thank you @kszosze, for the prompt response. I was acting naive. I managed to get the Jar files now. I had to upgrade to JDK 16 and I used eclipse version 2021-03. Post that it downloaded all the dependencies and worked. However, on first time build it failed with error: "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test" . On this I made changes to POM --> "
org.apache.maven.plugins
maven-surefire-plugin
2.19.1

true

</plugin"

And did a compelte clean install. It worked and generated the Jars under target folder:

  1. kloadgen-3.0.0.jar
  2. kloadgen-plugin-3.0.0.jar.

And if I do not make changes to POM.XML it get following errors:
"_[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.681 s <<< FAILURE! - in net.coru.kloadgen.extractor.SchemaExtractorTest
[ERROR] testFlatPropertiesOptionalMapArray Time elapsed: 0.018 s <<< ERROR!
java.nio.file.NoSuchFileException: C:\Users\XXXXXXXX\git\kloadgen\target\test-classes\avro-files\testOptionalMap.avsc
at net.coru.kloadgen.extractor.SchemaExtractorTest.testFlatPropertiesOptionalMapArray(SchemaExtractorTest.java:109)

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project kloadgen: There are test failures._"

Now I have the jar files, but did not understand why a test fails. Anyway thank you for the help.

Thanks,

from kloadgen.

kszosze avatar kszosze commented on June 2, 2024

HI @saini26rohit,
Iยดm curious about which version of the code are you actually using.
Master and Release 3.0.0 are using both version 2.22.2 of Surefire Plugin.
Regarding Java 16, still not supported for us. There is an issue between the version of Lombok and Java 16, so we need to update it in order to make work.
Can you provide a fork of kloadgen with your changes so I can download that code and testing?
I cannot reproduce your situation with the current master, neither release 3.0.0.
Cheers!!

from kloadgen.

saini26rohit avatar saini26rohit commented on June 2, 2024

@kszosze
I tried with both Master and Release 3.0.0 and for both build fail with error: "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test".
Both Master and Release 3.0.0 are using version 2.22.2 for Surefire Plugin. So I was not sure what to do. I googled and the solution was to add testFailureIgnore tag in POM.xml.

true

In my previous comment you might see version : 2.19.1. This was from google search. My intention was to tell you that I added testFailureIgnore tag to POM.xml

from kloadgen.

kszosze avatar kszosze commented on June 2, 2024

Hi @saini26rohit
Sorry for late reply, I have a branch for this issue. Can you try to build it?
Regards

from kloadgen.

saini26rohit avatar saini26rohit commented on June 2, 2024

Hi @kszosze
Thank you for the help. I will try to build with the branch and update you. Mean while can you help me do identify what I am doing wrong below:
When I try in my corporate machine behind corporate network where I have Jdk1.8 I am getting below error:
/PathInMachine/Kloadgen-master/src/main/java/net/coru/kloadgen/extractor/extractors/AvroExtractor.java:[144,21] Valid_TYPES has protected in net.coru.kloadgen.util.RandomTool
/PathInMachine/Kloadgen-master/src/main/java/net/coru/kloadgen/property/editoir/ValueSerializerPropertyEditor.java[104,52] cannot find symbol
symbol : method requireNonNullElse(java.lang.Object,int)
location: class java.util.Objects

Can you help me understand what I am doing wrong.

from kloadgen.

kszosze avatar kszosze commented on June 2, 2024

Hi @saini26rohit ,

This is a know issue fixed in the branch I'm just made to investigate your case.
Can you please use it to build?

Cheers!

from kloadgen.

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.