Bug 3662

Summary: rft command - fails with NegativeArraySizeException
Product: RFT Reporter: Tom Seelbach <seelbach@us.ibm.com>
Component: RFTAssignee: Ravi Madduri <madduri@mcs.anl.gov>
Status: RESOLVED FIXED    
Severity: normal CC: ogsa-bugs@globus.org
Priority: P3    
Version: 4.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   

Description From 2005-08-17 07:50:44
Contents of transferTest.xfr are:
gsiftp://localhost:2811/tmp/rftTestTOM.tmp
gsiftp://localhost:2811/tmp/rftTestTOM_Done.tmp

I ran this command: rft -p 8443 -f transferTest.xfr 
and got this error:

Exception in thread "main" Error during startup processing. Caused by
java.lang.NegativeArraySizeException: 
        at
org.globus.transfer.reliable.client.ReliableFileTransferClient.getTransfer(ReliableFileTransferClient.java:89)
        at
org.globus.transfer.reliable.client.ReliableFileTransferClient.main(ReliableFileTransferClient.java:171)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at org.globus.bootstrap.BootstrapBase.launch(BootstrapBase.java:95)
        at org.globus.bootstrap.Bootstrap.main(Bootstrap.java:37)


At a minimum the code in ReliableFileTransferClient needs some protection like 
if (transferCount < 0) { System.err.println("invalid transfer file format") }
------- Comment #1 From 2005-08-22 10:05:00 -------
Fix comitted to branch.