r4 - 15 Jan 2004 - 15:05:27 - PedroAlgarvio?You are here: SuperWaba >  Codev Web  >  SuperWabaDocs > DB2Connections

Using DB2 Connections

If you're a DB2 expert, feel free to enlighten the users here ...

Fatal Alerts When Powering Off a PDA

Here is sample code taken from the SuperWaba DB2e Class documentation.

 public void onStart() {
    try
    {
        Class.forName("superwaba.ext.xplat.sql.db2e.Driver");
    }
    catch(ClassNotFoundException cnfe)
    {
        // Code to handle if driver not found or unable to load...
        exit(0);
    }

    Connection connection = null;

    try
    {
        connection = DriverManager.getConnection("wdbc:db2e:server");
    }
    catch(SQLException sqlError)
    {
        // Code to handle connection error...
        exit(0);
    }
 }

After powering off the PDA I got a fatal alert - MemoryMgr?.c, Line:3649, Nil Ptr Environment: Sony Clie NX70V, PalmOS? 5, SW 4.0, 4.01 and 4.02

This was because I had PBSPkcs11.prc installed on my PDA. After I removed it from the PDA, everything worked fine - no fatal alert.

-- VikOlliver - 19 Oct 2003, updated by -- MiroslavLago? - 20 Oct 2003

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
SuperWaba home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding SuperWaba? Send feedback