I am trying to cast a CSpValue to a CSpString and the below code is giving me the
following error.
'Unexpected Exception (java.lang.ClassCastException: spider.session.CSpLong) caught.
Top of stack: |java.lang.ClassCastException: spider.session.CSpLong'
// Exception thrown here
CSpString min = (CSpString) (fdMinInputSizeBank.get( fieldName ) );
// I placed this debug code in the function to check that a value exists.
// This prints the value from the database table (eg '10') to the log file with no
exception
CSpValue min1 = ( fdMinInputSizeBank.get( fieldName ));
CSpLog.send( "pgBoResellerDetails", CSpLog.ERROR, min1 );
(Aside : fdMinInputSizeBank is a hash table that stores the minimum value
for a particular field)
Any ideas would be appreciated,
Thanks,
Pat.
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]