×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    17

    global root overflow(please help)

    hi
    i am getting an error of 'global root overflow' many a times whenever my midlet acesses data from a remote server using 'http' connection. This error occurs on the phone only and not on an emulator. The data read is from an xml file which lies on an IIS along with the server which creates it. What could be the problem please help!!!

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    33
    Short answer: It's a Nokia bug

    Long answer: You need to give more information about what devices you are using, and the nature of the problem. However, I have seen this problem before where the serer response is empty. You need to make sure that your http GET actually returns data.

    As you have spotted, the emulators bear no resemblence to reality.

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    17
    i am using nokia 6100.

    The problem is when i access a xml page on the server on regular
    basic ,there are at times when i get this 'global root overflow error'
    sushant.

    the function which i using is down here with error trapping

    void beginParsescore()
    {
    //wait_screen=true;
    game_screen=false;
    if(call_flag==false)
    {

    //String resfile_name ="http://192.168.0.80/match.xml";
    XmlParser parser = null;
    HttpConnection hc = null;
    InputStream in = null;

    updating=true;


    System.out.println("begingparsescore 1");

    try {

    hc = (HttpConnection)Connector.open(midlet.matchfile_name);
    in = hc.openInputStream();
    Reader reader = new InputStreamReader(in);
    if(reader!= null)
    {
    parser = new XmlParser( reader);
    ParseEvent event = null;

    System.out.println("begingparsescore 3");

    while ( (event = parser.read()).getType() != Xml.END_DOCUMENT)
    {
    if (event.getType() == Xml.START_TAG)
    {


    String name = event.getName();
    if (name != null)
    {
    if("TeamName1".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Team_1="0";}
    else
    {Team_1=text;}
    name = null;
    text=null;
    }


    if("ScoreTeam1".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Score_Bat="0";}
    else
    {Score_Bat=text;}


    System.out.println(text);
    name = null;
    text=null;
    }
    if("WicketsTeam1".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Wickets_Bat="0";}
    else
    {Wickets_Bat=text; }


    name = null;
    text=null;
    }
    if("CurrentOverTeam1".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Over_Bat="0";}
    else
    {Over_Bat=text; ;}


    name = null;
    text=null;
    }
    if("TeamName2".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Team_2="0";}
    else
    {Team_2=text; }


    name = null;
    text=null;
    }
    if("ScoreTeam2".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Score_Ball="0";}
    else
    {Score_Ball=text; }


    name = null;
    text=null;
    }
    if("WicketsTeam2".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Wicket_Ball="0";}
    else
    {Wicket_Ball=text;}


    name = null;
    text=null;
    }
    if("CurrentOverTeam2".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Over_Ball="0";}
    else
    {Over_Ball=text; }


    name = null;
    text=null;
    }
    if("Striker".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Striker_Bat="0";}
    else
    { Striker_Bat=text; }


    name = null;
    text=null;
    }
    if("StrikerRun".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Striker_Run="0";}
    else
    {Striker_Run=text;}


    name = null;
    text=null;
    }
    if("StrikerBall".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Striker_Played="0";}
    else
    { Striker_Played=text; }


    name = null;
    text=null;
    }
    if("NonStriker".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {NonStriker_Bat="0";}
    else
    {NonStriker_Bat=text;}


    name = null;
    text=null;
    }
    if("NonStrikerRun".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {NonStriker_Run="0";}
    else
    {NonStriker_Run=text;}


    name = null;
    text=null;
    }
    if("NonStrikerBall".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {NonStriker_Played="0";}
    else
    {NonStriker_Played=text;}


    name = null;
    text=null;
    }
    if("ReqdRunRate".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Req_RunRate="0";}
    else
    {Req_RunRate=text; }


    name = null;
    text=null;
    }
    if("RunRate".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Cur_RunRate="0";}
    else
    {Cur_RunRate=text;}


    name = null;
    text=null;
    }
    if("Bowlername".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Bowler_Name="0";}
    else
    {Bowler_Name=text; }


    name = null;
    text=null;
    }
    if("TotalRuns".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Over_Run="0";}
    else
    {Over_Run=text; }


    name = null;
    text=null;
    }
    if("Commentary".equals(name))
    {
    ParseEvent next = parser.read();
    String text = next.getText();
    if(text==null)
    {Comments="0";}
    else
    {Comments=text;}


    name = null;
    text=null;
    }


    }

    event = null;
    }


    }///end of reader null

    } //end of while
    }//end of try

    catch (Exception ioe)
    {
    // report error
    System.err.println("XML Parsing Error: " + ioe);
    ioe.printStackTrace();
    midlet.alert = new Alert("Error Connecting","GPRS error",null,AlertType.WARNING);
    midlet.alert.setTimeout(Alert.FOREVER);
    midlet.display.setCurrent(midlet.alert);


    }
    finally
    {
    // try to close, and ignore any exceptions
    try
    {
    parser = null;
    }
    catch (Exception ignored) { }
    }
    }
    System.out.println("call dadad");
    call_flag=true;
    updating=false;
    wait_screen=0;
    game_screen=true;
    }

  4. #4
    Registered User
    Join Date
    Nov 2003
    Posts
    44
    I have the same problem on a Nokia 6230, firmware 03.15. I never had this problem with firmware 03.14.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×