Error Calling Method Of A Pbni Object
links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > XML > "Error calling method of a PBNI object" Error calling method of a PBNI object 4 posts in XML . Last posting was on 2004-03-10 03:51:18.0Z olivier Posted on 2004-02-13 16:17:39.0Z Sender: 6838.402cfb21.1804289383@sybase.comFrom: olivierNewsgroups: sybase.public.powerbuilder.xmlSubject: Error calling method of a PBNI objectX-Mailer: WebNews to Mail Gateway v1.1sMessage-ID: <402cfb3a.683b.846930886@sybase.com>X-Original-NNTP-Posting-Host: 10.22.241.42X-Original-Trace: 13 Feb 2004 08:28:42 -0800, 10.22.241.42Lines: 41X-Original-NNTP-Posting-Host: forums-2-dub.sybase.comX-Original-Trace: 13 Feb 2004 07:59:29 -0800, forums-2-dub.sybase.comNNTP-Posting-Host: forums-master.sybase.comX-Original-NNTP-Posting-Host: forums-master.sybase.comDate: 13 Feb 2004 08:17:39 -0800X-Trace: forums-1-dub 1076689059 10.22.108.75 (13 Feb 2004 08:17:39 -0800)X-Original-Trace: 13 Feb 2004 08:17:39 -0800, forums-master.sybase.comX-Authenticated-User: ngsysopPath: forums-1-dub!not-for-mailXref: forums-1-dub sybase.public.powerbuilder.xml:408 Article PK: 813454 Hi, Run my deployed application I get this error (PBXRuntimeError) : "PBNI exeption: Error calling method of a PBNI object" this is the code: //declaration used to get data from xml code PBDOM_BUILDER pbdom_builder_new PBDOM_DOCUMENT pbdom_doc PBDOM_OBJECT pbdom_obj_array_root[] PBDOM_OBJECT pbdom_obj_array_data[] int i TRY //parsing if parsing != succed return error long ret ret= XMLParseString(xml_code) if ret<>0 then return ret //string XMLTravco -> PBDOM_DOCUMENT pbdom_doc pbdom_builder_new = Create PBDOM_Builder pbdom_doc = pbdom_builder_new.BuildFromString(xml_code) //getrootElement pbdom_doc.GetRootElement().GetContent(ref pbdom_obj_array_root) //getdatasElement for i=4 to upperbound(pbdom_obj_array_root) step 2 pbdom_obj_array_root[i].GetContent(ref pbdom_obj_array_data) //create country add_country(pbdom_obj_array_data) next CATCH (PBDOM_Exception except) MessageBox ('error', "PBDOM exception: " + except.Text) CATCH ( PBXRuntimeError re ) MessageBox( 'error', "PBNI exception: " + re.getMessage() ) END TRY I get no error with this code when I run it from the PB9 IDE. thanks olivier. Bruce Armstrong [TeamSybase] Posted on 2004-02-13 17:50:36.0Z Message-ID: <402D0A29.AF61414@teamsybase.com>From: "Bruce Armstrong [TeamSybase]"
links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > General Discussion > "Error calling method of a PBNI object" Error calling method of a PBNI object 9 posts in General Discussion . Last posting was http://nntp-archive.sybase.com/nntp-archive/action/article/%3C402D0A29.AF61414@teamsybase.com%3E on 2012-11-27 16:57:36.0Z krish Posted on 2012-05-04 12:02:08.0Z Sender: 459c.4fa3b81d.1804289383@sybase.comFrom: KrishNewsgroups: sybase.public.powerbuilder.generalSubject: Error calling method of a PBNI objectX-Mailer: WebNews to Mail Gateway v1.1tMessage-ID: <4fa3c540.47ae.1681692777@sybase.com>NNTP-Posting-Host: 172.20.134.41X-Original-NNTP-Posting-Host: 172.20.134.41Date: 4 May 2012 05:02:08 -0700X-Trace: forums-1-dub 1336132928 172.20.134.41 (4 May 2012 05:02:08 -0700)X-Original-Trace: 4 May 2012 05:02:08 -0700, 172.20.134.41Lines: 16Path: forums-1-dub!not-for-mailXref: forums-1-dub sybase.public.powerbuilder.general:245854 http://nntp-archive.sybase.com/nntp-archive/action/article/696582 Article PK: 692762 Hi, My app is using soapconnection using PBeasysoap125.pbx.My development environment is PB 12.5 Build 3072.Issue i am facing issue on Win7 32/64 bits machines only.the issue is first time call to soap connection is working fine when i try it for the second time i am getting exception thrown from PBXRuntimeerror as "Error calling method of a PBNI object".I have to exit from the entire app to get it done one more time.After the call my code destroy all the objects created. Can anyone help ME OUT FROM THIS CRISIS situation. Is it known issue with PB or any memeory leak ? regards, Krishna Paul Horan[Sybase] Posted on 2012-05-04 13:46:42.0Z From: "Paul Horan[Sybase]"
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
HAT RUBY SAP SEARCH SILVERLIGHT SYMBIAN VIDEO VIRTUALIZATION WEB 2.0 WEBLOGIC WEBSPHERE WIRELESS XML Home Subscribe Advertise Authors Topics Videos Events Webcasts Internet of Things | Cloud | Big Data | DevOps | Containers | Microservices | WebRTC | Java | Linux | Open Stack | Mobile | Security | SDDC PowerBuilder Authors: Chris Pollach, Yeshim Deniz, Jayaram Krishnaswamy, Kevin Benedict, Avi Rosenthal Related Topics: PowerBuilder PowerBuilder: Article PowerBuilder Native Interface Handling PBNI exceptions in PowerBuilder By Roy Kiesler Article Rating: Select ratingGive it 1/5Give it 2/5Give it 3/5Give it 4/5Give it 5/5 February 1, 2004 12:00 AM EST Reads: 8,175 Related Print Email Feedback Add This Blog This The PowerBuilder Native Interface (PBNI) is a standard C++ programming interface that allows developers to extend the PowerScript language with C++ classes and to call PowerScript functions from C++ applications. Modeled after the Java Native Interface (JNI), PBNI provides a native vehicle that extends the functionality of PowerBuilder to that of the C++ programming language. In Part 3 we triggered PowerBuilder events, called PowerScript system functions from within a PBS, and discussed accessing and manipulation arrays. In Part 4, we'll discuss handling runtime errors, debugging PBNI classes, and loading the PowerBuilder VM in a third-party application. To properly handle runtime errors in PBNI objects, it's recommended that you use exception handling mechanisms in both C++ and PowerScript. PBNI methods that are callable from PowerBuilder return a PBXRESULT (long) value. The list of possible return values is defined in pbni.h and shown in Listing 1. If an exception is caught in the PBNI method, the error handling code should return the appropriate error code to the calling PowerBuilder code as shown in Listing 2. When a PBNI object method returns any value other than PBX_OK, a PBXRuntimeError exception is thrown in the PowerBuilder application and should be intercepted by the calling PowerScript code: // PowerScript // C