Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 9
Registered: ‎01-24-2012
My Device: 9700
My Carrier: MTN

"page fault accessing tag table" when opening InputStream on OS 6 (BIS)

Hi

 

I get the error on the device saying "page fault accessing tag table" when I try open an InputStream for an XML doc.

 

I have tried on three device's : 9105 3G (OS 5),  9700(OS6), 9750 (OS 6).

The app runs like a dream on OS 5 but on the OS 6 devices I get the error.

When I run the app on OS 6 thru WIFI or WAP it works but when I run thru CoverageInfo.COVERAGE_BIS_B

It only runs on OS 5. Another thing worth mentioning is that if I Parse a smaller XML Doc it works but the one I need to work which is slightly bigger gives me the error.

 

What could cause this, am I doing something wrong?

 

This is the code used to check the Type, it works correctly on OS 5.

Does it look correct?

 

if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
             // Connected to a WiFi access point
             //do Stuff
     } else {
             int coverageStatus = CoverageInfo.getCoverageStatus();
             ServiceRecord record = getWAP2ServiceRecord();
             if (record != null && (coverageStatus & 1) == 1) {
                     if ((coverageStatus & CoverageInfo.COVERAGE_BIS_B) == overageInfo.COVERAGE_BIS_B){
                           //do Stuff, we have BIS
                         
                     }else{
                          //Have network coverage and a WAP 2.0 service book record
                           //do Stuff ,Dont have BIS
} } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { //do Stuff } else if ((coverageStatus & 1) == 1) {
                 //do Stuff
             }

 

here's the code where the error occurs, (DOM) should I use SAX.

 

 

        DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
        docBuilder.isValidating();

//********************Fail*************************
       Document doc = docBuilder.parse(conn.openInputStream());

//********************Fail*************************
        doc.getDocumentElement().normalize();
        NodeList list = doc.getElementsByTagName("Vehicle");

 

    

 

Could anyone point me in the right direction, it would be appreciated.

 

Thanks in advance