Tutorial 1

Sorry to be a pain but I have followed the insructions step by step but when trying to run tutorial 1 (im at the end where it writes the data Hellow World! out to a file.

I get this error message in my log.

Starting scraper.
Running scraping session: Hello World
Processing scripts before scraping session begins.
Scraping file: "Form submission"
Form submission: Preliminary URL: http://www.screen-scraper.com/tutorial/basic_form.php
Form submission: Using strict mode.
Form submission: Resolved URL: http://www.screen-scraper.com/tutorial/basic_form.php?text_string=Hello+...
Form submission: Sending request.
Form submission: Processing scripts before all pattern applications.
Form submission: Extracting data for pattern "Form data"
Form submission: The following data elements were found:
Form data--DataRecord 0:
FORM_SUMITTED_TEXT=Hello world!
Storing this value in a session variable.
Form submission: Processing scripts after a pattern application.
Form submission: Processing scripts after all pattern applications.
Processing script: "Write extracted data to file"
Writing data to a file.
An error occurred while processing the script: Write extracted data to file
The error message was: The application script threw an exception: java.lang.NullPointerException BSF info: null at line: 0 column: columnNo
Processing scripts after scraping session has ended.
Scraping session "Hello World" finished.

please help i just wanna go through the tutorials and get a better understanding.

Same Error

Same error again.

I have been through the tutorial again and still all as it should be,

Im going to delete all files and start again from scratch.

Will post results..

Thanks for your help !!!

Tutorial 1

Try this

out = new FileWriter( "form_submitted_text.txt", true );

Script Text

// Output a message to the log so we know that we'll be writing the text out to a file.
session.log( "Writing data to a file." );

// Create a FileWriter object that we'll use to write out the text.
out = new FileWriter( "form_submitted_text.txt" );

// Write out the text.
out.write( session.getVariable( "FORM_SUBMITTED_TEXT" ) );

// Close the file.
out.close();

I copied and pasted from the website.

Tutorial 1

Spenc,

Try posting the code from your write to file script (do a cut and paste) as it may just be a simple typo.

Alex