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
Developer
Posts: 183
Registered: ‎12-17-2008
My Device: 8320

XStream Preverify error

Hi All, I want to use XStream-1.2.2.jar in my project. If i do preverification, it will thrown some exception I done preverification properly. I done same action in my ksoap2.jar . It works perfectly. But in XStream it shows error. Help Please.... Error is like below, Error preverifying class com.thoughworks.xstream.annotations .AnnotationReflectionConverter VERIFIER ERROR com/thoughworks/xstream/coverters/reflection/AbstractReflectionConverter. doMarshal V: Cannot Find class java/util/set
kums

******************************

Press kudos which the post help you
Please mark posts as solved if you got a solution
Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: XStream Preverify error

It says it right at the end there: "Cannot Find class java/util/set"

 

Since BlackBerry uses J2ME a J2SE class like java.util.Set is not available. ksoap2 might have just been lucky and not used any classes not available in J2ME or is a ME version. You will have to edit the source code of XStream to make it work on BlackBerry or search for a J2ME version.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.