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 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    anyflip.com | 9 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