Hi Frank,

Thanks for the reply! I checked - the entity is VirtualMachine type, which is a 
subtype of ManagedEntity. I'll send out more info about the issue in a separate
email in case if anyone is interested.


On Wed, Jun 20, 2012 at 9:31 AM, fwierzbicki@gmail.com <fwierzbicki@gmail.com> wrote:
On Tue, Jun 19, 2012 at 6:13 PM, jlist9 <jlist9@gmail.com> wrote:
> Hi,
> I'm getting a strange error. There is a method in a Java class (in a jar
> file) that has this signature:
> public PerfMetricId[] queryAvailablePerfMetric(ManagedEntity entity,
> Calendar beginTime, Calendar endTime, Integer intervalId)
> However, when I call it with perfMgr.queryAvailablePerfMetric(entity, None,
> None, 0)
> I get this error at run time:
> NoSuchMethodError: java.lang.NoSuchMethodError:
> com.vmware.vim25.VimPortType.queryAvailablePerfMetric(Lcom/vmware/vim25/ManagedObjectReference;Lcom/vmware/vim25/ManagedObjectReference;Ljava/util/Calendar;Ljava/util/Calendar;I)[Lcom/vmware/vim25/PerfMetricId;

Most likely you the "entity" you are passing from Jython is of the
wrong type somehow (a ManagedObjectReference instead of a