Unhandled System exception !
Failed to create JavaVM. JNI_CreateJavaVM returned error code JNI_ERR (this may indicate an unrecognized option string)
which comes from line:
<cfobject type="JAVA" name="jFR" class="java.io.FileReader"
action="">
any ideas?
BTW, using cffile in CFMX to read the file works great, it doesn't choke on the null char. Too bad we don't have MX yet on our corporate servers (sigh).
~~
Stephenie
>This is better though.
>
><cfobject type="JAVA" name="jFR" class="java.io.FileReader"
>action=""> ><cfset jFRobj = jFR.init('d:/sites/test/dates.cfm')>
><cfobject type="JAVA" name="jBR" class="java.io.BufferedReader"
>action=""> ><cfset jBRobj = jBR.init(jFRobj)>
><pre>
><cfscript>
>line = "";
>while ( isDefined("line") ){
> line = jBRobj.readLine();
> if ( isDefined("line") ) {
> writeoutput(line & "#chr(13)#");
> }
>}
>jBRobj.close();
></cfscript>
></pre>
>
>Seems as soon as we reach EOF, jBRobj.readLine() returns null (expected)
>and variable 'line' is no longer defined, quite handy in this case.
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

