开发者

J2me application showing error in some mobile

i have a j2me application with web service stub.

it worked in some mobiles.

but in some mobiles "Application Error" comes up.

i tried creating package making versions MIDP 2.0 and CLDC 1.0(made stub for CLDC 1.0 also)

still it is showing "Application Error"

if I create the package without stub the application works properly.

The stub was generated using "Sun Java Wireless Toolkit 2.5.2 for CLDC"

can anyone help?

new Thread(new Runnable(){
            public void run()
            {

        try {
        MobiService_Stub ms = new MobiService_开发者_StackOverflowStub();
            resultBox.setString(ms.sendString( textbox.getString()));
        }catch (JAXRPCException cnfe){
            resultBox.setString("No connection found");
        } catch (RemoteException e) {
            // TODO Auto-generated catch block
            resultBox.setString(e.getMessage());
        }
            }
        }).start();
        resultBox.addCommand(cmd_Cancel);
        }


I have come up with "Application Error" messages when I try to run a Midlet that uses a JSR not available in that device. You should verify that the JSR or APIs you import are supported by your testing devices.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜