Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta2
    • Fix Version/s: 2.0.0-beta3
    • Component/s: jdbc
    • Labels:
      None

      Description

      When running JPA on DB2 zOS v9, the following exception is thrown:

      Exception in thread "main" <openjpa-2.0.0-SNAPSHOT-r422266:832587 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Index name "OPENJPA_SEQUENCE_TABLE_IDX" is 26-character long. The database allows maximum 18-character for an index name.
      at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:5021)
      at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateIndexSQL(DBDictionary.java:3429)
      at org.apache.openjpa.jdbc.schema.SchemaTool.createIndex(SchemaTool.java:1017)
      at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:565)
      at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:345)
      at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:322)
      at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
      at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
      at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:155)
      at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)

        Issue Links

          Activity

          Fay Wang created issue -
          Fay Wang made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Resolution Fixed [ 1 ]
          Fay Wang made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Donald Woods made changes -
          Fix Version/s 2.0.0-beta3 [ 12314857 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Affects Version/s 2.0.0-beta2 [ 12314802 ]
          Component/s jdbc [ 12311300 ]
          Fay Wang made changes -
          Link This issue is blocked by OPENJPA-1679 [ OPENJPA-1679 ]

            People

            • Assignee:
              Fay Wang
              Reporter:
              Fay Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development