Jython inherit from Java class

Kent Johnson kent at kentsjohnson.com
Sat Feb 11 08:30:43 EST 2006


Mark Fink wrote:
> Alan, Kent, many thanks this really helped!
> But there is still a problem I guess with inheritance. I use the java
> testsuit supplied with the original to test the server. If I use the
> Java FitServer the testsuite can be completed. I commented everything
> out from my class and it does not work??

Since you are getting the same error from the Java server and the Jython 
subclass maybe you should figure out the Java problem first? It seems to 
be a problem making a socket connection of some kind.

Kent

> ###### And the Java FitServer:
> D:\AUT_TEST>java -cp D:\\AUT_TEST\\fitnesse\\fitnesse.jar fit.FitServer
> localhost 1234 23
> Exception in thread "main" java.net.ConnectException: Connection
> refused: connect
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(Unknown Source)
>         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>         at java.net.PlainSocketImpl.connect(Unknown Source)
>         at java.net.SocksSocketImpl.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at java.net.Socket.<init>(Unknown Source)
>         at java.net.Socket.<init>(Unknown Source)
>         at fit.FitServer.establishConnection(Unknown Source)
>         at fit.FitServer.establishConnection(Unknown Source)
>         at fit.FitServer.run(Unknown Source)
>         at fit.FitServer.main(Unknown Source)



More information about the Python-list mailing list