Code Monkey home page Code Monkey logo

Comments (10)

en-milie avatar en-milie commented on May 28, 2024 1

Should be (finally) fixed now in https://github.com/Endava/cats/releases/tag/cats-7.0.4

from cats.

daniel-f3 avatar daniel-f3 commented on May 28, 2024 1

Awesome thank you, it is fixed.

from cats.

en-milie avatar en-milie commented on May 28, 2024

Hi @comat0zz. Thank you for reporting this. It seems to be caused by the fact the the Swagger 2 parser was not included in the generated linux native image. Can you please confirm if your API spec is swagger 2? If this is true, the fix is available in 58a338e and will be released in 7.0.2.

from cats.

comat0zz avatar comat0zz commented on May 28, 2024

Yes, "swagger": "2.0"

from cats.

en-milie avatar en-milie commented on May 28, 2024

Great. The fix will be available in 7.0.2, which will be released this week.

from cats.

tasoskoutlis-f3 avatar tasoskoutlis-f3 commented on May 28, 2024

Hi @en-milie I just got the 7.0.2 version, I have a Swagger 2 file and I am still getting the same error

cats --contract=swagger.yaml --server=https://api --headers=headers.yaml --blackbox

[**********][*******] ▶ start      Starting CATS, version 7.0.2, build-time 2022-01-16T18:22:12Z UTC 
[**********][*******] ● note       Processing configuration... 
[**********][*******] ℹ info       No security custom Fuzzer file. SecurityFuzzer will be skipped! 
[**********][*******] ℹ info       No custom Fuzzer file. CustomFuzzer will be skipped! 
[**********][*******] ℹ info       No reference data file was supplied! Payloads supplied by Fuzzers will remain unchanged! 
[**********][*******] ℹ info       No URL parameters supplied! 
[**********][*******] ☑ complete   Finished parsing the contract in 62 ms 
[**********][*******] ▶ start      Start cleaning up cats-report folder ... 
[**********][*******] ☑ complete   Cleanup complete! 
java.lang.NullPointerException
        at com.endava.cats.util.OpenApiUtils.getSchemas(OpenApiUtils.java:49)
        at com.endava.cats.command.CatsCommand.initGlobalData(CatsCommand.java:125)
        at com.endava.cats.command.CatsCommand.doLogic(CatsCommand.java:119)
        at com.endava.cats.command.CatsCommand.run(CatsCommand.java:107)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at com.endava.cats.CatsMain.run(CatsMain.java:27)
        at com.endava.cats.CatsMain_ClientProxy.run(Unknown Source)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:125)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)

Can you please have a look? Thanks

from cats.

en-milie avatar en-milie commented on May 28, 2024

Hi @tasoskoutlis-f3 yes. It seems so. I will release a patch tonight.

from cats.

en-milie avatar en-milie commented on May 28, 2024

Hi @tasoskoutlis-f3. This is fixed now in https://github.com/Endava/cats/releases/tag/cats-7.0.3

from cats.

daniel-f3 avatar daniel-f3 commented on May 28, 2024

Hi @en-milie I just got the 7.0.3 version, I have a Swagger 2 file and I am still getting the same error, could you please have a look? Thank you

# # # # # # # # # # # # # # # # # # # # # # # # # #
#             _____   ___ _____ _____             #
#            /  __ \ / _ \_   _/  ___|            #
#            | /  \// /_\ \| | \ `--.             #
#            | |    |  _  || |  `--. \            #
#            | \__/\| | | || | /\__/ /            #
#             \____/\_| |_/\_/ \____/             #
#           .. ...    -.-. --- --- .-..           #
#                                                 #
# # # # # # # # # # # # # # # # # # # # # # # # # #
                     Powered by Quarkus 2.6.2.Final
[**********][*******] ▶ start      Starting CATS, version 7.0.3, build-time 2022-01-18T18:51:46Z UTC 
[**********][*******] ● note       Processing configuration... 
[**********][*******] ℹ info       No security custom Fuzzer file. SecurityFuzzer will be skipped! 
[**********][*******] ℹ info       No custom Fuzzer file. CustomFuzzer will be skipped! 
[**********][*******] ℹ info       No reference data file was supplied! Payloads supplied by Fuzzers will remain unchanged! 
[**********][*******] ℹ info       No URL parameters supplied! 
[**********][*******] ☑ complete   Finished parsing the contract in 279 ms 
[**********][*******] ▶ start      Start cleaning up cats-report folder ... 
[**********][*******] ☑ complete   Cleanup complete! 
java.lang.NullPointerException
	at com.endava.cats.util.OpenApiUtils.getSchemas(OpenApiUtils.java:59)
	at com.endava.cats.command.CatsCommand.initGlobalData(CatsCommand.java:125)
	at com.endava.cats.command.CatsCommand.doLogic(CatsCommand.java:119)
	at com.endava.cats.command.CatsCommand.run(CatsCommand.java:107)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
	at picocli.CommandLine.access$1300(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
	at picocli.CommandLine.execute(CommandLine.java:2078)
	at com.endava.cats.CatsMain.run(CatsMain.java:27)
	at com.endava.cats.CatsMain_ClientProxy.run(Unknown Source)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:125)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
	at io.quarkus.runner.GeneratedMain.main(Unknown Source)

from cats.

en-milie avatar en-milie commented on May 28, 2024

Hi @daniel-f3. Can you please post a sample that fails? I'm not able to reproduce this anymore with the swagger 2 spec I have.

from cats.

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.