Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
This week, we're updating our course layouts and descriptions. Presentation and materials always gently change over time, but just occasionally there's a need to make a step change to clear out some of the old and roll in the new. That's now happening - but over a long and complex site it's not instant and you'll see sections of the site changing up to and including 19th September.

See also [here] for status update
Exception while running jython script

Posted by patni (patni), 18 May 2005
I have one jython script which is recorded through
Testmaker on unix box

But now I am tring to run the same script on unix box

Its gives me error
Encountered an error: Server returned HTTP response code: 500 for URL:

I have added only following code after recording

import sys
location = sys.argv[1]

#I have used replace function to accept ipaddress.
self.http.setUrl( ''''''.replace('', location))

#A Small chunk of code that will get the Source of the HTML page Displayed and Write it to a file
source1 = self.response.getContent()
f = open( 'temp.txt', 'w' )

If I run the same script on unix box
where are recorded it runs sucessfully.

Posted by admin (Graham Ellis), 18 May 2005
I think you've got one machine set up correctly as a server and the other one isn't.   Suggestion - check the settings on the non-working system to make sure they correspond to the working system.  It's probably as small a thing as a file permission setting that's not letting you Java read a file on one machine.

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: • WEB: • SKYPE: wellho