I forgot to mention one important thing: My own code worked correctly if I set the environment variable ARTCPPORT=2000 before running the programm, otherwise I just got the error 90 message - this applies both for Windows and Solaris... Very strange..
On 7/19/06, George Barsan <[EMAIL PROTECTED]> wrote:
Jarl, Thanks for pointing me in the right direction. I initially used the following code based on the ApiDoc: serverUser = new ARServerUser(username, password, "", connectionUrl); Util.ARSetServerPort(serverUser, new NameID(connectionUrl), portTCP, portRPC); serverUser.login(); String menuName = "__"; // that's the part which didn't work Proxy proxy = new Proxy(); proxy.ARDeleteMenu(serverUser, new NameID(menuName), 0); // and that's the proper one based on the java driver example MenuFactory menuFactory = MenuFactory.getFactory(); Menu menu = (Menu) menuFactory.newInstance(); menu.setName(new NameID(menuName)); menu.setContext(serverUser); menu.remove(); Many thanks, George On 7/18/06, Jarl Grøneng <[EMAIL PROTECTED]> wrote: > Do you get the same error when using the Driver program? > > -- > Jarl > > On 7/18/06, George Barsan <[EMAIL PROTECTED]> wrote: > > Hello list, > > > > I lost a few hours troubleshooting a problem caused by the method > > ARDeleteMenu which doesn't seem to work. Although the context is > > correctly initialized and works fine for the Util.ARExport run which > > is the first step, the ARDeleteMenu (step 2 in the programm) always > > fails with the following error (independently if the menu exists or > > not): > > > > MessageType: 2 > > MessageNum: 90 > > MessageText: Cannot open catalog; Message number = 90 > > AppendedText: <arsserver> (0) : RPC: Program not registered > > at com.remedy.arsys.api.Proxy.ARDeleteMenu(Native Method) > > at com.upc.xmlgateway.ArsConnector.deleteMenus(ArsConnector.java:512) > > at com.upc.ar.Worker.handleMenue(Worker.java:70) > > at com.upc.ar.Worker.process(Worker.java:48) > > at com.upc.ar.ArHelper.process(ArHelper.java:37) > > at com.upc.ar.ArHelper.main(ArHelper.java:32) > > > > Has anyone else experienced the same problem? I tested it with the > > 5.1.2 and 7.0 API & same versions of servers in all possible > > combinations (running the Java programm on Windows and the servers on > > Solaris). > > > > Many thanks, > > > > George > > > > _______________________________________________________________________________ > > UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org > > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org >
_______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

