Hi, you are right. I am using "call(* packageName->*(..))".

The following is the code that is causing the exception.  When I remove conn.close(), 
the exception is not thown.  

        
        MessageConnection conn = null;
        String url = "sms://" + getAttribute() + ":134";

        try {
            conn = (MessageConnection) Connector.open(url);
            TextMessage msg = (TextMessage) conn
                    .newMessage(MessageConnection.TEXT_MESSAGE);
            msg.setPayloadText(text.toString());
            conn.send(msg);
            
        } catch (Exception e) {
            //e.printStackTrace();
            throw new IllegalStateException("Not allowed to send SMS");
        } finally {
            if (conn != null) {
                try {
                    conn.close();
                } catch (Exception e) {
                    if (com.xxx.xxxxxx.Debug.getDebugLevel() != 
com.xxx.xxxxxx.Debug.DBG_NONE)
                        e.printStackTrace();
                 
                }
            }
        }

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848863#3848863

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848863


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to