Bug 3640 - RFT Unit Tests - System.err - Badly formatted numbers in properties file
: RFT Unit Tests - System.err - Badly formatted numbers in properties file
Status: RESOLVED FIXED
: RFT
RFT
: 4.0.1
: All All
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-08-11 14:32 by
Modified: 2005-08-22 10:03 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-08-11 14:32:51
After a new install of GT4.0.1 I ran the RFT tests as described in the RFT
Admin
Guide.   System.err  (
./tests/test-reports-html/org/globus/transfer/reliable/service/test/0_PackageTests-err.txt
 ) has the following message:
Error:Badly formatted numbers in properties file

I would guess the error comes from an un-caught exception while parsing a
number
from a config file.
------- Comment #1 From 2005-08-12 10:11:17 -------
The problem is in org/globus/transfer/reliable/service/test/TestConfig.java
here:
---paste----
            // Populate the config file 
            // TODO: if any of the props are null go back to default
            HOST = props.getProperty("HOST");
            PORT = props.getProperty("PORT");
            PROTOCOL = props.getProperty("PROTOCOL");
            URL_ROOT = PROTOCOL + "://" + HOST + ":" + PORT +
"/wsrf/services/";
            FACTORY_URL = URL_ROOT + "ReliableFileTransferFactoryService";
            SERVICE_URL = URL_ROOT + "ReliableFileTransferService";
            sourceHost = props.getProperty("sourceHost");
            destinationHost = props.getProperty("destinationHost");
            sourcePort = toInt(props.getProperty("sourcePort"));
            destPort = toInt(props.getProperty("destinationPort"));
            authType = props.getProperty("authType");
            authzVal = props.getProperty("authzVal");
            subject = props.getProperty("subject");
            sourceSubject = props.getProperty("sourceSubject");
            destinationSubject = props.getProperty("destinationSubject");
            binary = new Boolean(props.getProperty("binary"));
            tcpBufferSize = new Integer(props.getProperty("tcpBufferSize"));
            noTpt = new Boolean(props.getProperty("noTpt"));
            parallelStreams = new
Integer(props.getProperty("parallelStreams"));
            dcau = new Boolean(props.getProperty("dcau"));
            concurrency = new Integer(props.getProperty("concurrency"));
            allOrNone = new Boolean(props.getProperty("allOrNone"));
            backwardsCompatible = new Boolean(props.getProperty("compatible"));
            maxAttempts = new Integer(props.getProperty("maxAttempts"));
            sourcePath = props.getProperty("sourcePath");
            destPath = props.getProperty("destPath");

        } catch (Exception e) {
            if (e instanceof NumberFormatException) {
                System.err.println("Error:Badly formatted " +
                "numbers in properties file");

---end paste----

Basically this means that any property after the one that is generating the
exception is not processed.
------- Comment #2 From 2005-08-22 10:03:52 -------
Fix comitted to branch.