Hi ranchers,
I am getting an error while executing a swing application.on the click of a button,I am capturing the inputs passed by an user and passing them to my another programme,but i am getting the following error
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException.
code for actionperformed method is as follows.
public void actionPerformed(ActionEvent e)
{
if ("submit".equals(e.getActionCommand()))
{
variables = new HashMap(); // declared the swing class.
variables.put("ServiceURL",url.getText());
variables.put("Value",ssn.getText());
variables.put("CallingAppRole",prtcpnt_id.getText());
variables.put("Life Event Code",life_evnt_cd.getText());
variables.put("Envoirnment",envoirnment.getSelectedItem());
WSTestHarness testHarness = new WSTestHarness();
testHarness.setgui_swing(variables);
testHarness.executeTestSession();
}
}
Thanks in advance.
Regards,
Abhijeet Shrivastava
I am getting an error while executing a swing application.on the click of a button,I am capturing the inputs passed by an user and passing them to my another programme,but i am getting the following error
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException.
code for actionperformed method is as follows.
public void actionPerformed(ActionEvent e)
{
if ("submit".equals(e.getActionCommand()))
{
variables = new HashMap(); // declared the swing class.
variables.put("ServiceURL",url.getText());
variables.put("Value",ssn.getText());
variables.put("CallingAppRole",prtcpnt_id.getText());
variables.put("Life Event Code",life_evnt_cd.getText());
variables.put("Envoirnment",envoirnment.getSelectedItem());
WSTestHarness testHarness = new WSTestHarness();
testHarness.setgui_swing(variables);
testHarness.executeTestSession();
}
}
Thanks in advance.
Regards,
Abhijeet Shrivastava