replication tests hang with classpath entry with parentheses 
-------------------------------------------------------------

                 Key: DERBY-4824
                 URL: https://issues.apache.org/jira/browse/DERBY-4824
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.7.0.0
         Environment: Windows 7 Java(TM) SE Runtime Environment (build 
1.6.0_13-b03)
            Reporter: Lily Wei


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. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to