Re: Error verifying class
Stefan Haustein <[email protected]> Sat, 17 Apr 2004 19:14:46 +0200
| Newsgroups | gmane.comp.java.enhydra.kxml |
|---|---|
| Organization | University of Dortmund |
| Message-ID | <[email protected]> |
Hi, some versions of kXML were compiled with the 1.4 Java class format by mistake. Just try the source distribution instead. Best regards, Stefan Haustein Bill Ceglia wrote: > I am using Borland JBuilder Mobile Edition 9 to develop a J2ME MIDlet and I have installed the kXML zip file, I think succesfully. I am able to import the classes and access the methods but if I try to instantiate a new KXmlParser 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" > > Below is the source: > > String sXml = > "<employee><firstname>John</firstname><lastname>Doe</lastname><sex type='male'/><email valid='true' primary='true'>[email protected]</email></employee>"; > byte[] baXml = sXml.getBytes(); > // create an input stream from the byte array > ByteArrayInputStream stream = new ByteArrayInputStream(baXml); > int nCnt = -1; > nCnt = stream.read(baXml); > KXmlParser pxml = new KXmlParser(); ----------------------------------------------------------------------- This is line of code that fails ---------------------------------------------------- > pxml.setInput(stream, "Default"); > > Any help would be greatly appreciated? > > Thank You > > _______________________________________________ > Kxml mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/kxml