Derby
  1. Derby
  2. DERBY-4647

BaseTestCase.execJavaCmd() does not work with weme 6.2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.8.2.2, 10.9.1.0
    • Component/s: Test
    • Environment:
    • Urgency:
      Normal

      Description

      Spawning a java process with BaseTestCase.execJavaCmd() does not work with weme 6.2, I think because the boot classpath does not get passed. This issue came up in DERBY-4179. After this issue is fixed, BootLockTest should be enabled for weme.

      The error is actually
      .JVMJ9VM011W Unable to load jclfoun10_24: The specified module could not be foun
      d.
      JVMEXEX013E Internal VM error: Failed to create Java VM
      JVMEXEX014I Run C:\cygwin\ibmsvn\ntsoftware\weme6.2\bin\j9.exe -help for usage

      execJavaProcess does pick up the j9 executable but does not pass on the other settings.

      This is how my script invokes the test with j9. It probably has a lot of legacy system properties not needed, but I suppose execJavaCmd should just pass along all system properties, but I don't know how it would get the bootclasspath. Perhaps -Dbootcp was a way to pass it on in the old harness.

      c:/cygwin/ibmsvn/ntsoftware/weme6.2/bin/j9 -jcl:foun11 -DderbyTesting.serverho
      st=localhost -DderbyTesting.clienthost=localhost -Demma.active= -Xbootclasspath/
      a:c:/cygwin/ibmsvn/ntsoftware/weme6.2/lib/jdbc.jar -Dbootcp=c:/cygwin/ibmsvn/nts
      oftware/weme6.2/lib/jdbc.jar junit.textui.TestRunner org.apache.derbyTesting.fun
      ctionTests.tests.store.BootLockTest

      Otherwise, currently I think the method is only used in replication and network server, but am not sure.

        Issue Links

          Activity

          Kathey Marsden created issue -
          Kathey Marsden made changes -
          Field Original Value New Value
          Link This issue relates to DERBY-4179 [ DERBY-4179 ]
          Hide
          Kathey Marsden added a comment -

          Linking to DERBY-4179 as that was where this issue was discovered and BootLockTest should be enabled for weme once this issue is fixed.

          Show
          Kathey Marsden added a comment - Linking to DERBY-4179 as that was where this issue was discovered and BootLockTest should be enabled for weme once this issue is fixed.
          Myrna van Lunteren made changes -
          Labels derby_triage10_8
          Urgency Normal
          Kathey Marsden made changes -
          Assignee Kathey Marsden [ kmarsden ]
          Kathey Marsden made changes -
          Link This issue blocks DERBY-4249 [ DERBY-4249 ]
          Hide
          Kathey Marsden added a comment -

          Attached is a patch for this issue. I am running tests now.
          I would appreciate if someone familiar with PhoneME could look at it.

          For BootLockTest, J9 (weme 6.2) does not require derby.database.forceDatabaseLock to be set, so now this is only needed for PhoneME() but we don't currently have an isPhoneMEPlatform() method so I am just using
          if (JDBC.vmSupportsJSR169() && !isJ9Platform()). What is the best way to identify PhoneME()?

          Show
          Kathey Marsden added a comment - Attached is a patch for this issue. I am running tests now. I would appreciate if someone familiar with PhoneME could look at it. For BootLockTest, J9 (weme 6.2) does not require derby.database.forceDatabaseLock to be set, so now this is only needed for PhoneME() but we don't currently have an isPhoneMEPlatform() method so I am just using if (JDBC.vmSupportsJSR169() && !isJ9Platform()). What is the best way to identify PhoneME()?
          Kathey Marsden made changes -
          Attachment derby-4667_diff.txt [ 12491282 ]
          Kathey Marsden made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Kathey Marsden made changes -
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.2 [ 12317968 ]
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Labels derby_triage10_8 derby_backport_reject_10_5
          Kathey Marsden made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 12510350 ] Default workflow, editable Closed status [ 12801929 ]
          Hide
          Knut Anders Hatlen added a comment -

          [bulk update: close all resolved issues that haven't had any activity the last year]

          Show
          Knut Anders Hatlen added a comment - [bulk update: close all resolved issues that haven't had any activity the last year]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          473d 22h 58m 1 Kathey Marsden 24/Aug/11 18:33
          Resolved Resolved Reopened Reopened
          385d 5h 35m 1 Kathey Marsden 13/Sep/12 00:08
          Reopened Reopened Resolved Resolved
          11m 19s 1 Kathey Marsden 13/Sep/12 00:20
          Resolved Resolved Closed Closed
          428d 8h 55m 1 Knut Anders Hatlen 15/Nov/13 08:15

            People

            • Assignee:
              Kathey Marsden
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development