Page 1 of 1

non-static method isActive() cannot be referenced from a static context

Posted: Sat Aug 18, 2018 8:41 am
by shameem
Hi, good evening everyone
Actually i am facing a problem with this code

public void checkCdCvm(){
if(isCdcvmType() ==true){
if(CVM.isActive()){
// GP API CDCVM Validation
} else {
// CVM Flow 2
}
} else {
// TODO CVM flow 2 step B
}
}

that is : non-static method isActive() cannot be referenced from a static context

Thanks in Advance
Shameem Ahamad

Re: non-static method isActive() cannot be referenced from a static context

Posted: Thu Aug 30, 2018 6:22 am
by happy123654
I think that you should build an instance object for CVM.

Re: non-static method isActive() cannot be referenced from a static context

Posted: Thu Aug 30, 2018 6:22 am
by happy123654
I think that you should build an instance object for CVM.