Error using DBUtils in first scenario

前端 未结 1 1672
挽巷
挽巷 2020-11-29 13:04

When I use DBUtils.java in Eclipse and run the tests there it works fine, but when I run it through Jenkins the first time that DBUtils are used is failing. And the second w

相关标签:
1条回答
  • 2020-11-29 13:28

    First may I gently remind you that DBUtils.java was created as a demo example and is not part of the core of Karate. I am beginning to regret having put this there because of questions like this. See another example.

    EDIT - Since this question comes up a lot: You are expected to write your own code to connect to your database, execute SQL and unpack the results the way you want. Please don't tag questions around this as "karate".

    Anyway, please work with somebody in your team or org to fix this problem:

    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: 
    Could not get JDBC Connection; nested exception is
    java.sql.SQLRecoverableException: IO Error: Connection reset
    

    It is quite possible that your Jenkins box is not able to establish a connection to the database and the ports are fire-walled off etc.

    0 讨论(0)
提交回复
热议问题