Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-538

In the case when user id and password are provided, openjpa should use them in the call to getConnection to avoid "Null userid is not supported" thrown from the backend.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.1.0
    • 1.1.0
    • jdbc
    • None

    Description

      [jcc][t4][10205][11234][3.51.74] Null userid is not supported. ERRORCODE=-4461, SQLSTATE=42815
      org.apache.openjpa.jdbc.sql.SQLExceptions.narrow(SQLExceptions.java:146)
      org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4054)
      org.apache.openjpa.jdbc.sql.DB2Dictionary.newStoreException(DB2Dictionary.java:501)
      org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:102)
      org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:80)
      org.apache.openjpa.jdbc.kernel.TableJDBCSeq.allocateSequence(TableJDBCSeq.java:402)
      org.apache.openjpa.jdbc.kernel.TableJDBCSeq.nextInternal(TableJDBCSeq.java:266)
      org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:60)
      org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:160)
      org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:144)
      org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:592)
      org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:464)
      org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:440)
      org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignObjectId(JDBCStoreManager.java:576)
      org.apache.openjpa.kernel.DelegatingStoreManager.assignObjectId(DelegatingStoreManager.java:134)
      org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:517)
      org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2814)
      org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:39)

      Attachments

        1. OPENJPA-538.637439.patch
          1 kB
          Fay Wang

        Activity

          People

            Unassigned Unassigned
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: