com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, org.javalite.activejdbc.DBException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry ’1234’ for key ’number’, Query: INSERT INTO accounts (number, balance) VALUES (?, ?), params: 1234,0.00

anyflip.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The Cucumber for Java Book Pages 201 - 250 - Text Version | AnyFlip

    anyflip.com | 8 months ago
    com.google.inject.ProvisionException: Guice provision errors: 1) Error injecting constructor, org.javalite.activejdbc.DBException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry ’1234’ for key ’number’, Query: INSERT INTO accounts (number, balance) VALUES (?, ?), params: 1234,0.00

    Root Cause Analysis

    1. com.google.inject.ProvisionException

      Guice provision errors: 1) Error injecting constructor, org.javalite.activejdbc.DBException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry ’1234’ for key ’number’, Query: INSERT INTO accounts (number, balance) VALUES (?, ?), params: 1234,0.00

      at support.TestAccount.<init>()
    2. support
      TestAccount.<init>
      1. support.TestAccount.<init>(TestAccount.java:8)
      1 frame