From: Peter S. <pet...@gm...> - 2009-06-05 18:49:36
|
Hi, I'm getting an unexpected error when calling a method from the imported jar file by jreload. com.rbnb.sapi.Client is an abstract class, and com.rbnb.sapi.Sink extends the abstract class. I'm constructing a class Sink and using it in SinkClientManager.py. When the constructor for Sink is called, it does not cause any problem. But, when a method named OpenRBNBConnection from abstract class Client is called, it produces the following error. OpenRBNBConnection class is overloaded with three different numbers of arguments. I get the following error message File "SinkClientManager.py", line 55, in ? File "SinkClientManager.py", line 17, in __init__ File "SinkClientManager.py", line 33, in __init__ at com.rbnb.sapi.Client.OpenRBNBConnection(Client.java:310) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) com.rbnb.sapi.SAPIException: com.rbnb.sapi.SAPIException: Nesting java.net.ConnectException Two questions: 1. Any idea on how to approach solving this problem? 2. If this were to be a bug in Jython, will this be a reasonable approach? This part is a small component in big system. All the Sink related operations are done in this component. If I were to create this piece in JAVA program, will it avoid the above problem (after integrating the JAVA class with other Jython programs)? Thank you very much, Peter p.s. I'm sending this email to both the user list and the bug list because I can't determine if it's an error on my side or Jython's. Sorry about that. |