×

Discussion Board

Results 1 to 5 of 5

Thread: about kxml2.0

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    9

    about kxml2.0

    Hi, Everyone:

    I use kxml2-min.jar in my project, but I happen a question.
    env:
    J2SDK 1.4
    j2mewtk2.0
    kXML2-min.jar
    Nokia Studio 2.0
    Nokia 7210
    Jbuilder 9.0
    happen:
    D:\JBuilder9\j2mewtk2.0\bin\emulator.exe -classpath "F:\java\myProject\J2MEFramework\classes;E:\work\hsmip\hsmipMIDlet\lib\kxml2-min.jar;" -XdeviceefaultColorPhone -Xdescriptor:"F:\java\myProject\J2MEFramework\jad-temp\Newsreader.jad"
    Running with storage root DefaultColorPhone
    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
    Execution completed successfully
    353488 bytecodes executed
    19 thread switches
    435 classes in the system (including system classes)
    2496 dynamic objects allocated (110844 bytes)
    13 garbage collections (87596 bytes collected)


    what's wrong with it?
    please give me a hand. thank you!


    regards

    David.Chow
    ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhouxp2005@163.com
    ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-12-16

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Are you preverifying the kxml classes?

    shmoove

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    9

    How to verify kxml2-min.jar?

    Use the preverify tool to verify the kxml2-min.jar, or not?

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Use it on the jar, or extract the classes from the jar into your classpath and they will be preverified with the rest of your application.
    And for general knowledge: the "Inconsistent or missing stackmap at target" error is always because something isn't preverified.

    shmoove

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    9

    Thank you !:-)

    I have resolved this question.
    Thank shmoove for hints very much.

    First I use j2mewtk2.0's preverify tool to verify kxml2.jar, then include this jar .
    Now this question is OK.

Posting Permissions

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