Guest User

Untitled

a guest
Oct 15th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  2.  
  3. com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed
  4.  
  5. java.sql.SQLNonTransientConnectionException: Could not create connection to database server
  6.  
  7. <property name="connection.url">jdbc:mysql://localhost:3306/stocks</property>
  8. <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  9. <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
  10.  
  11. autoReconnect=true
  12. useSSL=false
  13. allowPublicKeyRetrieval=true
  14.  
  15. # Java Maven CircleCI 2.0 configuration file
  16. #
  17. # Check https://circleci.com/docs/2.0/language-java/ for more details
  18. #
  19. version: 2
  20. jobs:
  21. build:
  22. docker:
  23. # specify the version you desire here
  24. - image: circleci/openjdk:8-jdk
  25.  
  26. # Specify service dependencies here if necessary
  27. # CircleCI maintains a library of pre-built images
  28. # documented at https://circleci.com/docs/2.0/circleci-images/
  29. # - image: circleci/postgres:9.4
  30. - image: circleci/mysql:latest-ram
  31. environment:
  32. - MYSQL_ROOT_PASSWORD: (my real password goes here)
  33. - MYSQL_DATABASE: stocks
  34. - MYSQL_USER: bob
  35. - MYSQL_PASSWORD: (the real password goes here)
  36.  
  37. working_directory: ~/repo
  38.  
  39. environment:
  40. # Customize the JVM maximum heap limit
  41. MAVEN_OPTS: -Xmx3200m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
  42.  
  43. steps:
  44. - checkout
  45. - run: sudo apt install -y mysql-client
  46.  
  47. # Download and cache dependencies
  48. - restore_cache:
  49. keys:
  50. - v1-dependencies-{{ checksum "pom.xml" }}
  51. # fallback to using the latest cache if no exact match is found
  52. - v1-dependencies-
  53.  
  54. - run: mvn dependency:go-offline
  55.  
  56. - save_cache:
  57. paths:
  58. - ~/.m2
  59. key: v1-dependencies-{{ checksum "pom.xml" }}
  60.  
  61. # run tests!
  62. - run: mvn integration-test
Add Comment
Please, Sign In to add comment