0

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_Stub();
            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);
        }

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.