Training, Open Source computer languages

This is page http://www.wellho.net/forum/Programm ... -Ruby/Exception-while-running-jython-script.html

Our email: info@wellho.net • Phone: 01144 1225 708225

 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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 192.168.8.121

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


Its gives me error
Encountered an error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.135.251/logapp20/action/admin/devices/tcp_mod_msg_fwd.do?reportType=systemStatus


I have added only following code after recording

import sys
location = sys.argv[1]

#I have used replace function to accept ipaddress.
#e.g.
self.http.setUrl( '''http://192.168.8.121/logapp20/loginPage'''.replace('192.168.8.121', 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' )
f.write(source1)
f.close()

If I run the same script on 192.168.8.121 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 www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho