Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4558

Issue (regression) with IBM JDK and Derby 10.5.3.0 and an OpenJPA testcase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.5.3.0
    • None
    • JDBC
    • Urgent
    • Regression, Seen in production

    Description

      The OpenJPA project just moved from Derby 10.2.2.0 to Derby 10.5.3.0. We have found that one of our testcases no longer works after this upgrade. But, the failure only happens with the IBM JDK. The Sun JDK (and Apple JDK) seem to work just fine.

      The testcase is related to executing stored procedures. You can find the testcase in the Apache OpenJPA project:

      TestNativeQueryProcedures.testNoReturnMultiParamProcedure (org.apache.openjpa.persistence.jdbc.query)
      junit.framework.AssertionFailedError: Caught unexpected exception executing stored procedure: Method resolution for signature org.apache.openjpa.persistence.jdbc.query.procedure.DerbyProcedureList.addSuffixToName(java.lang.String, java.lang.String) was ambiguous. (No single maximally specific method.) {{ call ADD_SUFFIX_TO_NAME (?, ?) }} [code=20000, state=42X73]
      at junit.framework.Assert.fail(Assert.java:47)
      at org.apache.openjpa.persistence.jdbc.query.TestNativeQueryProcedures.testNoReturnMultiParamProcedure(TestNativeQueryProcedures.java:227)
      Show details »
      « Hide details
      junit.framework.AssertionFailedError: Caught unexpected exception executing stored procedure: Method resolution for signature org.apache.openjpa.persistence.jdbc.query.procedure.DerbyProcedureList.addSuffixToName(java.lang.String, java.lang.String) was ambiguous. (No single maximally specific method.) {{ call ADD_SUFFIX_TO_NAME (?, ?) }} [code=20000, state=42X73]
      at junit.framework.Assert.fail(Assert.java:47)
      at org.apache.openjpa.persistence.jdbc.query.TestNativeQueryProcedures.testNoReturnMultiParamProcedure(TestNativeQueryProcedures.java:227)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:600)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at org.apache.openjpa.persistence.test.AbstractPersistenceTestCase.runTest(AbstractPersistenceTestCase.java:514)
      at junit.framework.TestCase.runBare(TestCase.java:127)

      We have only experienced this with the IBM JDK, both at the Java 6 SR5 and SR7 fix levels.

      Thanks,
      Kevin

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwsutter Kevin W. Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: