execute OBIEE wlst command by java -


i'm having prolem getting role java when using wlst. code following:

import weblogic.management.scripting.wlst; import weblogic.management.scripting.utils.wlstinterpreter; public class javatestwlst {     public javatestwlst() {      }         public static void main(string[] args) {         try {             wlst.ensureinterpreter();             wlstinterpreter interpreter = wlst.getwlstinterpreter();                                     interpreter.exec("connect('admin','admin','t3://server:7001')");                                     interpreter.exec("listapproles('obi')");                //or interpreter.exec("listapproles(appstripe='obi')");             //still eror nameerror: listapprole          }         catch(exception e){             system.out.println("exception_111:"+e.tostring());                   }        }    } 

i've connected sussessfully having error. error: exception:traceback (innermost last): file "", line 1, in ? nameerror: listapproles

please me thanks.

the function module calling going takes hashmap object (key,value pair). arugument must passed key. listapproles(appstripe="appname") code line change accordingly shown below:

interpreter.exec("listapproles( appstripe='obi')");  

Comments

Popular posts from this blog

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -