Error verifying method

"Anne Racel" <[email protected]> Tue, 6 May 2003 09:54:49 -0400
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
I am trying to build a Palm application that will call a web service, store
the data returned, and call up the stored data to present a list to the
user. The web service call is working and the data is being returned and
stored. But as soon as I try to parse the XML data, I receive the following
error:


Error verifying method org/kxml2/io/KXmlParser <init>()V
Approximate bytecode offset 65: Inconsistent or missing stackmap at target
ALERT: Error verifying class org/kxml2/io/KXmlParser


I'm not sure if it's the parser I'm using or something I've done in my code.
I have already tried recompiling the kxml package (a suggestion from another
message), but that hasn't changed the outcome. Here's the method causing the
problem:


try {        // set up xml parser
   XmlPullParser parser = new KXmlParser();
   parser.setInput(new InputStreamReader(new ByteArrayInputStream(pList)));
   parser.require(XmlPullParser.START_TAG, "", "RequestList");
   parser.nextTag();        // pull all the visit request info
   while(parser.nextTag() != XmlPullParser.END_TAG) {
      if(parser.getName().equals("Visitor")) {
         visitorName = getVisitorName(parser);
      }
      else if(parser.getName().equals("RequestID")) {
         requestId = parser.nextText();
      }
      else if(parser.getName().equals("Destination")){
         destination = parser.nextText();
         vString.addElement(requestId + "\t" + visitorName + "\t" +
destination);
      }
   }
   retValue = new String[vString.size()];
   for(int i = 0; i < vString.size(); i++) {
      retValue<i> = (String)vString.elementAt(i);
   }
}
catch(XmlPullParserException xpull) {
   xpull.printStackTrace();
}
catch(IOException io) {
   io.printStackTrace();
}


The error happens as soon as the XmlPullParser object is instantiated.

Suggestions?