Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Location
    India
    Posts
    114

    Unanswered: Exception handling

    What can we do when exception occurs during event dispatching ?
    Actually on the press of cancel button of JOptionPane.showInputdialog
    following exception is coming. How can I handle this exception.

    This is the exception

    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at
    com.britishairways.imm.oceanwave.client.MemberInvo lvementFrameController.actionPerformed(MemberInvol vementFrameController.java:261)
    at
    javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1445)
    at
    javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(AbstractButton.java:1499)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:373)
    at
    javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:245)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:211)
    at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:225)
    at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:225)
    at java.awt.Component.processMouseEvent(Component.jav a:3710)
    at java.awt.Component.processEvent(Component.java:353 9)
    at java.awt.Container.processEvent(Container.java:115 9)
    at java.awt.Component.dispatchEventImpl(Component.jav a:2588)
    at java.awt.Container.dispatchEventImpl(Container.jav a:1208)
    at java.awt.Component.dispatchEvent(Component.java:24 92)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:2446)
    at
    java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:2211)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:2120)
    at java.awt.Container.dispatchEventImpl(Container.jav a:1195)
    at java.awt.Component.dispatchEvent(Component.java:24 92)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 334)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:126)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:93)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:88)
    at
    java.awt.EventDispatchThread.run(EventDispatchThre ad.java:80)

  2. #2
    Join Date
    Jul 2004
    Posts
    2
    The exception indicates that in file MemberInvolvementFrameController.java of your project at line 261 you try to handle an object that is not instantiated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •