BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-10-2007, 04:09 PM   #1 (permalink)
Thumbs Must Hurt
 
cyberpine's Avatar
 
Join Date: May 2006
Model: 8700g
Carrier: T-mobile
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default simple j2me webservice client - NoClassDefFoundError

Please Login to Remove!

I have this very simple webservice and client i developed for the phone in j2me jsr 172 using the latest version of the sun wireless toolkit. I used the wireless toolkit to create stub, compiled and tested it just fine on the emulate.

on my bb 8700g, the application installs fine and runs fine until I call the web service, i get the error:

Uncaugh exception: javalang.NoClassDeffoundError


Any idea? Should i be able to run webserices this way on the 8700g? What can I do to troubleshoot?

Thanks in Advance for any help or information!
Offline  
Old 05-11-2007, 05:13 AM   #2 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: dont know
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default post the code

just paste ur code,

are you using some package?
Offline  
Old 05-11-2007, 06:57 AM   #3 (permalink)
Thumbs Must Hurt
 
cyberpine's Avatar
 
Join Date: May 2006
Model: 8700g
Carrier: T-mobile
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used the sun wireless toolkit (latest version) and its
Soap stub generator for class that handles the web service. This code works in the toolkits' emulator, but produces the error on the BB when I select this menu item.

public void commandAction(Command c, Displayable s) {
if (c == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
if (c == buyCommand) {
ServiceSoap_Stub service =new ServiceSoap_Stub();
service._setProperty(ServiceSoap_Stub.SESSION_MAIN TAIN_PROPERTY, new Boolean(true));
x = service.mymethod("buying");
fillbox(x);
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

MOEN COMMERCIAL SOLENOID COIL KIT
$115.36
MOEN COMMERCIAL SOLENOID COIL KIT pictureAsco Red-Hat II Solenoid Valve EF8344G76 3/4" 120V 4 Way New Old Stock
$1785.0
Asco Red-Hat II Solenoid Valve EF8344G76 3/4NEW IBM LEXMARK WHEELWRITER TYPEWRITER PART PRINT HAMMER SOLENOID PAD CAP
$12.95
NEW IBM LEXMARK WHEELWRITER TYPEWRITER PART PRINT HAMMER SOLENOID PAD CAP pictureDC12V 2S-025-08 NC 1/4" 2 Way High-Temperature Resistant Solenoid Water Valve
$26.7
DC12V 2S-025-08 NC 1/4DC12V 2W025-08B NC 1/4" 2 Position 2 Way Stainless Steel Water Solenoid Valve
$25.84
DC12V 2W025-08B NC 1/4






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.