com.google.gwtorm.server.OrmException: Cannot apply SQL CREATE TABLE account_group_by_id_aud ( added_by INT DEFAULT 0 NOT NULL, removed_by INT, removed_on TIMESTAMP NULL DEFAULT NULL, group_id INT DEFAULT 0 NOT NULL, include_uuid VARCHAR(255) BINARY DEFAULT '' NOT NULL, added_on TIMESTAMP NOT NULL ,PRIMARY KEY(group_id,include_uuid,added_on) )

Google Groups | Sanoob E P | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Gerrit with Gitlab

    Google Groups | 9 months ago | Sanoob E P
    com.google.gwtorm.server.OrmException: Cannot apply SQL CREATE TABLE account_group_by_id_aud ( added_by INT DEFAULT 0 NOT NULL, removed_by INT, removed_on TIMESTAMP NULL DEFAULT NULL, group_id INT DEFAULT 0 NOT NULL, include_uuid VARCHAR(255) BINARY DEFAULT '' NOT NULL, added_on TIMESTAMP NOT NULL ,PRIMARY KEY(group_id,include_uuid,added_on) )
  2. 0

    mysql 5.7

    Google Groups | 8 months ago | Unknown author
    com.google.gwtorm.server.OrmException: Cannot apply SQL ALTER TABLE changes ADD note_db_state TEXT
  3. 0

    gerrit with mysql

    Google Groups | 11 months ago | djph29
    com.google.gwtorm.server.OrmException: Cannot apply SQL CREATE TABLE account_group_by_id_aud ( added_by INT DEFAULT 0 NOT NULL, removed_by INT, removed_on TIMESTAMP NULL DEFAULT NULL, group_id INT DEFAULT 0 NOT NULL, include_uuid VARCHAR(255) BINARY DEFAULT '' NOT NULL, added_on TIMESTAMP NOT NULL ,PRIMARY KEY(group_id,include_uuid,added_on) )
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Duplicate Upgrade Query in 3.1

    GitHub | 2 years ago | jtesser
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'language_id'
  6. 0

    setup.sh: MySQLSyntaxErrorException - DROP DATABASE ${database}

    GitHub | 3 years ago | gallardo
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{database}' at line 1
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException

    Invalid default value for 'added_on'

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  3. MySQL jdbc
    StatementImpl.execute
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.Util.getInstance(Util.java:386)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053)
    4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006)
    6. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468)
    7. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629)
    8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2713)
    9. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2663)
    10. com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:888)
    11. com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:730)
    11 frames
  4. com.google.gwtorm
    JdbcSchema.updateSchema
    1. com.google.gwtorm.jdbc.JdbcExecutor.execute(JdbcExecutor.java:42)
    2. com.google.gwtorm.jdbc.JdbcSchema.createRelations(JdbcSchema.java:119)
    3. com.google.gwtorm.jdbc.JdbcSchema.updateSchema(JdbcSchema.java:89)
    3 frames
  5. com.google.gerrit
    AbstractProgram.main
    1. com.google.gerrit.server.schema.SchemaCreator.create(SchemaCreator.java:78)
    2. com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:100)
    3. com.google.gerrit.pgm.init.BaseInit$SiteRun.upgradeSchema(BaseInit.java:341)
    4. com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:127)
    5. com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
    5 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. com.google.gerrit
    GerritLauncher.main
    1. com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:159)
    2. com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:100)
    3. com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:56)
    3 frames
  8. Unknown
    Main.main
    1. Main.main(Main.java:25)
    1 frame