Package dopal :: Module errors :: Class NoSuchMethodError
[show private | hide private]
[frames | no frames]

Class NoSuchMethodError

Exception --+            
            |            
   DopalError --+        
                |        
      RemoteError --+    
                    |    
RemoteInvocationError --+
                        |
                       NoSuchMethodError


This error is thrown when Azureus reports that the requested method does not exist, or is not allowed.

A NoSuchMethodError is a representation of the response Azureus returns when trying to invoke a method, but is unable to map the requested method to a method it can actually invoke.

Causes

There are various reasons why this error may occur, but here are the most likely.

Wrong method requested

The wrong method signature was used - this is possible for a variety of reasons (though it isn't likely). Check that the method you want to use is the same one being reported in the NoSuchMethodError instance.

Method not available in this version of Azureus

This method may not be available in the version of Azureus you are using - although DOPAL normally supports all methods made available in the latest beta release, this error will occur if the version of Azureus does not support that method.

XML/HTTP request processor may not support this method

The request processor used by Azureus may not be able to resolve that method. Versions 2.3.0.6 and older only allow a small subset of methods defined in the plugin API to be called. Version 2.4.0.0 (as well as some later beta versions of 2.3.0.7) have been changed to allow any method to be called. To enable this, go to the XML/HTTP plugin configuration page, and tick the "Advanced Settings -> Use generic classes" setting.

Non read-only method requested, but XML/HTTP in view mode

The XML/HTTP plugin in Azureus is set up to be in "view" mode, so only certain methods are allowed. Note - if you are unable to call a method which you think should be allowed in read only mode, contact the developers of the XML/HTTP plugin.
Method Summary
  __init__(self, method_sig)
Creates a new NoSuchMethodError instance.
    Inherited from DopalError
  __repr__(self)
  __str__(self)
  to_error_string(self, use_error)
    Inherited from Exception
  __getitem__(...)

Instance Variable Summary
  obj: This will be a string which describes the method signature which was requested - for example:

Method Details

__init__(self, method_sig)
(Constructor)

Creates a new NoSuchMethodError instance.
Overrides:
dopal.errors.DopalError.__init__

Instance Variable Details

obj

This will be a string which describes the method signature which was requested - for example:
  getDownloads
  setPosition[int]
  setTorrentAttribute[TorrentAttribute,String]

Generated by Epydoc 2.1 on Wed May 03 14:22:33 2006 http://epydoc.sf.net