|
Pretty sure the filename has to be a full path. ie. C:/ Seems to work fine for me. try <cfset fileio = CreateObject("java", "java.io.FileReader").init(JavaCast("string",ExpandPath(filename))) /> Gareth. Andrew Scott wrote: The value of filename is not the problem, if I remove the init and dump the class out its not what I should expect, well at least I think its not what I should expect anyway.Error message is as follows: Object Instantiation Exception. An exception occurred when instantiating a java object. The cause of this exception was that: . Regards Andrew Scott Analyst Programmer CMS Transport Systems Level 2/33 Bank Street South Melbourne, Victoria, 3205 Phone: 03 9699 7988 - Fax: 03 9699 7976 Quote: IBM: Infernal Blue Machines ---------------------------------------------------------------------------- -------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of David Harris Sent: Monday, 28 November 2005 11:27 AM To: CFAussie Mailing List Subject: [cfaussie] RE: Java and CF Could you let us know the value of "filename", and what the error is (if any)? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Andrew Scott Sent: Monday, 28 November 2005 1:02 p.m. To: CFAussie Mailing List Subject: [cfaussie] Java and CF Has anyone come across why this line of code would not work in CFmx6.1? <cfset fr = CreateObject('java','java.io.FileReader').init( filename ) /> Regards Andrew Scott Analyst Programmer CMS Transport Systems Level 2/33 Bank Street South Melbourne, Victoria, 3205 Phone: 03 9699 7988 - Fax: 03 9699 7976 Quote: Dilbert's Words of Wisdom: Accept that some days you're the pigeon, and some days you're the statue. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ This email contains confidential information. If you are not the intended recipient of this email, please notify Straker Interactive and delete the email. You are not entitled to use it in any way. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --
---Kind
Regards,
Gareth Edwards the alpha school system
PTY LTD
Unit 1, 31 Thompson Street Bowen Hills QLD 4006 T Intl +61 7 3216 0999 F Intl +61 7 3216 0500 www.tassweb.com.au ABN 87 010 874 816 TASS news
- NEW Pays Portal in Teacher Kiosk - Electronic
Pay Envelopes
- HR
requests online
- Leave
Analysis Charts & Reports
- TASS
6.10.000 is available
for download
-
significant enhancements to Payroll
- NEW
Superannuation Subsystem
Virus
Disclaimer: Please
note that this email may contain computer-generated file(s) as an
attachment. Whereas we take every effort to protect our files from
computer virus, we recommend that you check the file(s) with your own
virus detection software prior to opening it. If you would prefer to
receive a hardcopy of the file please email or phone. Alpha Business
Systems does not accept liability for the consequences of any computer
viruses that may be transmitted with this email.
Confidentiality: This email
and any attached files are intended solely for the addressee(s) and may
contain confidential and privileged information. If you received this
email in error, please advise us by return email or phone and disregard
the contents and immediately delete it and destroy any copies.
You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ |
- [cfaussie] RE: Java and CF David Harris
- [cfaussie] RE: Java and CF Andrew Scott
- [cfaussie] RE: Java and CF Gareth Edwards
- [cfaussie] Re: Java and CF Robertson-Ravo, Neil (RX)
- [cfaussie] RE: Java and CF Robertson-Ravo, Neil (RX)
- [cfaussie] RE: Java and CF Gareth Edwards
- [cfaussie] RE: Java and CF Rod Higgins
- [cfaussie] RE: Java and CF dyakhnov
- [cfaussie] RE: Java and CF Maxim Porges
