Menu

Cannot dynamically call do_click()

Help
anirudh r
2011-06-29
2012-12-06
  • anirudh r

    anirudh r - 2011-06-29

    Hi,
    I get a NullPtr exception, and the error shown below, when I call the do_click method on the Call JButton.
    Is there some reason why this is happening? When I programmatically click the button, the SIP invite packet's

    <contact header> [/code]
    
    <phoneNumber@null>
    

    , as against,

    phoneNumber@hostname
    

    when actually clicking the call Button. Can anyody throw light on why something like this could be happening???

    java.net.BindException: Cannot assign requested address: Datagram send failed
        at java.net.PlainDatagramSocketImpl.send(Native Method)
    
     
  • anirudh r

    anirudh r - 2011-07-09

    SwingUtilities.invokeLater(new Runnable() {
                 public void run() {
                 actionButton.doClick();
                 }
             });

    This works, when it is called from Netscape.JSObject
    Cheers…

     

Log in to post a comment.