powered by Jive Software

I am getting a AWT-EventQueue-0 error java.lang.NullPointerException

I don’'t understand why, please hints anyone.

The stack

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

at TextDemo.sendMessage(TextDemo.java:102)

at TextDemo.access$0(TextDemo.java:100)

at TextDemo$2.actionPerformed(TextDemo.java:84)

My methods looks like

private void sendMessage() {

try {

 Chat newChat = connection.createChat("admin@flashjabber.kicks-ass.net/Exodus");

newChat.sendMessage(“hello world”);

} catch (XMPPException e) {

// TODO Auto-generated catch block

//text.append(e.getMessage());

}

}

which is called from

textField.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent e) {

String text = new String();

text = textField.getText();

System.out.println(“actionPerformed()” + e.getActionCommand() + “\r”);

System.out.println(“line 73” + text);

sendMessage();

//textField.selectAll ();

// Make sure the new text is visible, even if there

// was a selection in the text area.

textArea.setCaretPosition (textArea.getDocument ().getLength ());

}

});

}

I don’'t think its a smack problem however in eclipse inside the debugger I see all

these Threads running. One of them is Thread says

EventDispatchThread.run not available.

What does that mean??

Dear All,

Funny thing after installing yet another java plug-in for IE and shuting down Azureus because IE Applet plugin was not installing (it said something about java needs all java apps to shut down ) all my little apps started working again. I tried to get the error back but no good. I have no idea what was causing the error nor do I know if it will return. Captain’'s log 434

Dan