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

replication tests hang with classpath entry with parentheses

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: None
    • Component/s: Test
    • Environment:
      Windows 7 Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
    • Urgency:
      Urgent
    • Bug behavior facts:
      Regression Test Failure

      Description

      If the CLASSPATH has parentheses, the replication test will hang. NetworkServer will failed to start due to the parentheses in the CLASSPATH.
      I reproduce this problem with the following script:
      c:/sun/sdk/jdk1.6.0/jre/bin/java -Dderby.system.home=c:/derby3/trunk/testtmp/db_
      master -Dderby.infolog.append=true -cp .\;c:/derby3/trunk/tools/java/junit.jar\;
      c:/derby3/trunk/jars/sane/derbyrun.jar\;c:/derby3/trunk/jars/sane/derbyTesting.j
      ar\;c:/derby3/trunk/tools/java/jakarta-oro-2.0.8.jar\;C:\Program Files (x86)\Qui
      ckTime\QTSystem\QTJava.zip org.apache.derby.drda.NetworkServerControl start -h 0
      .0.0.0 -p 1527 -noSecurityManager

      This is the error from the script:
      /c/Users/lily/bin/replstart.sh: line 1: syntax error near unexpected token `('
      /c/Users/lily/bin/replstart.sh: line 1: `c:/sun/sdk/jdk1.6.0/jre/bin/java -Dderb
      y.system.home=c:/derby3/trunk/testtmp/db_master -Dderby.infolog.append=true -cp
      .\;c:/derby3/trunk/tools/java/junit.jar\;c:/derby3/trunk/jars/sane/derbyrun.jar\
      ;c:/derby3/trunk/jars/sane/derbyTesting.jar\;c:/derby3/trunk/tools/java/jakarta-
      oro-2.0.8.jar\;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip org.apache.d
      erby.drda.NetworkServerControl start -h 0.0.0.0 -p 1527 -noSecurityManager'

      In the context of the test, you do not see the syntax error. The test just hangs. It will be good if the replication tests also printed the error when networkServer failed to start and it should not hang.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lilywei Lily Wei
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: