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

testGetBytes under BlobClob4BlobTest failed on Zos with encoding issue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None
    • Environment:
      IBM 1.5

      Description

      testGetBytes(org.apache.derbyTesting.functionTests.tests.jdbcapi
      .BlobClob4BlobTest)junit.framework.ComparisonFailure: FAIL -
      wrong substring value
      expected:<snip garbage> but was:<you can lead a horse to water but you can't form
      i>
      at java.lang.Throwable.<init>(Throwable.java:67)
      at
      junit.framework.AssertionFailedError.<init>(AssertionFailedEr
      ror.java:11)
      at
      junit.framework.ComparisonFailure.<init>(ComparisonFailure.ja
      va:19)
      at
      org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4Blo
      bTest.verifyInterval(BlobClob4BlobTest.java:3221)
      at
      org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4Blo
      bTest.testGetBytes(BlobClob4BlobTest.java:1767)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
      Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
      Impl.java:59)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
      AccessorImpl.java:39)
      at
      org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.
      java:101)
      at
      junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at
      org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.ja
      va:57)
      at
      junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at
      org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.ja
      va:57)

      running with -Dfile.encoding="UTF-16" on windows with Sun jdk 1.6 shows this issue as well but also shows other failures as well e.g.
      14) testGetBlobBeforeAndAfterUpdateStream(org.apache.derbyTesting.functionTests.tests.jdbcapi.B
      amework.AssertionFailedError: FAIL - wrong blob value
      at org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4BlobTest.updateBlobWith
      ob4BlobTest.java:2727)
      at org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4BlobTest.testGetBlobBef
      lobClob4BlobTest.java:2698)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:104)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

      If these other failures are not the same issue, we can file another bug.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kmarsden Katherine Marsden
                Reporter:
                kmarsden Katherine Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: