[sip-comm-dev] A couple of chat room issues


#1

Hey all, (and Valentin in particular :wink: ),

I've just tried to log into an XMPP chat room using SC but stumbled on a
weird issue. Every key stroke in the "Chatroom Name" field was causing a
NullPointerException [1].

Other than that the "Search" didn't seem to work either, although this
one didn't seem to cause any exceptions.

Any ideas was to what might be causing this?

Cheers,
Emil

[1] -

路路路

聽聽聽聽聽[java] java.lang.NullPointerException
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms.SearchChatRoomPanel.updateChatRoomList(SearchChatRoomPanel.java:259)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms.SearchChatRoomPanel.insertUpdate(SearchChatRoomPanel.java:275)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:754)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:711)
聽聽聽聽聽[java] at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
聽聽聽聽聽[java] at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1099)
聽聽聽聽聽[java] at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:844)
聽聽聽聽聽[java] at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1573)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyBinding(JComponent.java:2766)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyBindings(JComponent.java:2801)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyEvent(JComponent.java:2729)
聽聽聽聽聽[java] at java.awt.Component.processEvent(Component.java:5379)
聽聽聽聽聽[java] at java.awt.Container.processEvent(Container.java:2010)
聽聽聽聽聽[java] at java.awt.Component.dispatchEventImpl(Component.java:4068)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:940)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
聽聽聽聽聽[java] at java.awt.Component.dispatchEventImpl(Component.java:3941)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
聽聽聽聽聽[java] at java.awt.Window.dispatchEventImpl(Window.java:1801)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hmm, just stumbled on another one. Trying to create a new chat room
(rather than joining one) seems to also be resulting in an exception:

聽聽聽聽聽[java] java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
聽聽聽聽聽[java] at java.util.Vector.elementAt(Vector.java:432)
聽聽聽聽聽[java] at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:276)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.SelectAccountPanel.tableInit(SelectAccountPanel.java:169)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.SelectAccountPanel.<init>(SelectAccountPanel.java:118)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.CreateChatRoomWizardPage1.<init>(CreateChatRoomWizardPage1.java:49)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.createforms.CreateChatRoomWizard.<init>(CreateChatRoomWizard.java:46)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.ChatRoomListDialog.actionPerformed(ChatRoomListDialog.java:156)
聽聽聽聽聽[java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
聽聽聽聽聽[java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
聽聽聽聽聽[java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
聽聽聽聽聽[java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
聽聽聽聽聽[java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
聽聽聽聽聽[java] at java.awt.Component.processMouseEvent(Component.java:5602)
聽聽聽聽聽[java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
聽聽聽聽聽[java] at java.awt.Component.processEvent(Component.java:5367)
聽聽聽聽聽[java] at java.awt.Container.processEvent(Container.java:2010)
聽聽聽聽聽[java] at java.awt.Component.dispatchEventImpl(Component.java:4068)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
聽聽聽聽聽[java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
聽聽聽聽聽[java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2054)
聽聽聽聽聽[java] at java.awt.Window.dispatchEventImpl(Window.java:1801)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Emil Ivov 薪邪锌懈褋邪:

路路路

Hey all, (and Valentin in particular :wink: ),

I've just tried to log into an XMPP chat room using SC but stumbled on a
weird issue. Every key stroke in the "Chatroom Name" field was causing a
NullPointerException [1].

Other than that the "Search" didn't seem to work either, although this
one didn't seem to cause any exceptions.

Any ideas was to what might be causing this?

Cheers,
Emil

[1] -

聽聽聽聽聽[java] java.lang.NullPointerException
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms.SearchChatRoomPanel.updateChatRoomList(SearchChatRoomPanel.java:259)
聽聽聽聽聽[java] at net.java.sip.communicator.impl.gui.main.chatroomslist.joinforms.SearchChatRoomPanel.insertUpdate(SearchChatRoomPanel.java:275)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:754)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:711)
聽聽聽聽聽[java] at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
聽聽聽聽聽[java] at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
聽聽聽聽聽[java] at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1099)
聽聽聽聽聽[java] at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:844)
聽聽聽聽聽[java] at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1573)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyBinding(JComponent.java:2766)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyBindings(JComponent.java:2801)
聽聽聽聽聽[java] at javax.swing.JComponent.processKeyEvent(JComponent.java:2729)
聽聽聽聽聽[java] at java.awt.Component.processEvent(Component.java:5379)
聽聽聽聽聽[java] at java.awt.Container.processEvent(Container.java:2010)
聽聽聽聽聽[java] at java.awt.Component.dispatchEventImpl(Component.java:4068)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:940)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
聽聽聽聽聽[java] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
聽聽聽聽聽[java] at java.awt.Component.dispatchEventImpl(Component.java:3941)
聽聽聽聽聽[java] at java.awt.Container.dispatchEventImpl(Container.java:2068)
聽聽聽聽聽[java] at java.awt.Window.dispatchEventImpl(Window.java:1801)
聽聽聽聽聽[java] at java.awt.Component.dispatchEvent(Component.java:3903)
聽聽聽聽聽[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
聽聽聽聽聽[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hey Emil,

I've just tried to log into an XMPP chat room using SC but stumbled on a
weird issue. Every key stroke in the "Chatroom Name" field was causing a
NullPointerException [1].

Other than that the "Search" didn't seem to work either, although this
one didn't seem to cause any exceptions.

Any ideas was to what might be causing this?

The NPE is fixed. If you were testing on a Google account, I think the list of server rooms
couldn't have been obtained (that's why it crashed) because of the "special" behavior of
Google for MUC.
I remember a message from Peter Saint-Andre on this list saying that Google doesn't use
the XEP-0045 for MUC:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=7519

If it's only didn't work with Google, I currently don't know how we could fix this.

Regards,
Valentin

路路路

Le 26 f茅vr. 2010 脿 15:55, Emil Ivov a 茅crit :
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi again,

Hmm, just stumbled on another one. Trying to create a new chat room
(rather than joining one) seems to also be resulting in an exception:

:slight_smile:
The fact is that I never have delt with the button "Create chatroom"
because I always have been creating CR in extending a one-to-one chat,
and never have thought about this button.

Anyway, I'll give a look at it :wink:

Regards,
Valentin

路路路

Le 26 f茅vr. 2010 脿 15:57, Emil Ivov a 茅crit :
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi Emil, all,

As we discussed off-list together, a new "Join chatroom" dialog
has been introduced, instead of using a wizard.

The new dialog is inspired by Apple iChat's onen which is very
simple to use, and not as long as the wizard we traditionally have been using.

The new dialog contains a combo box which allows to choose the account
you want to use for joining a room. Each time this combo box value is changed,
the rooms of the server are loaded. This may takes a few seconds, especially when
listing those on jabber.org.
Maybe we could avoid to automatically load all the rooms,
but doing it when the user requests suggestions?

It also contains an editable combo box used for typing a room name.
When pressing enter, suggestions appear into the combo box regarding to the
content of the combo box editor.

Regards,
Valentin

路路路

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Valentin MARTINET 薪邪锌懈褋邪:

Hey Emil,

I've just tried to log into an XMPP chat room using SC but stumbled on a
weird issue. Every key stroke in the "Chatroom Name" field was causing a
NullPointerException [1].

Other than that the "Search" didn't seem to work either, although this
one didn't seem to cause any exceptions.

Any ideas was to what might be causing this?

The NPE is fixed.

Cool! :slight_smile:

If you were testing on a Google account, I think the list of server rooms
couldn't have been obtained (that's why it crashed) because of the "special" behavior of
Google for MUC.
I remember a message from Peter Saint-Andre on this list saying that Google doesn't use
the XEP-0045 for MUC:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=7519

Oh yes sure, I was in no way suggesting you should compensate for
Google's lack of proper MUC support. I was simply bothered by the buggy
behaviour when filling in the room name (i.e. the NPE and the fact that
the field was failing to repaint properly after a char was typed).

If it's only didn't work with Google, I currently don't know how we could fix this.

Well, you did actually :wink:

Cheers,
Emil

路路路

Le 26 f茅vr. 2010 脿 15:55, Emil Ivov a 茅crit :

Regards,
Valentin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hello chat room devs,

Here's the list of issues related to chat rooms that I stumbled upon. I logged them into our issue tracker. Not necessarily sorted in order of importance here.

- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=791 Jabber chat room members appearing twice
- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=792 Chat room subject change message on join
- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=793 Chat room member icons are plain "unreadable"
- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=794 Jabber chat room member not using contact alias
- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=795 Chat room configuration form button is sooo useless
- https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=796 NPE in chat room member list

Regards,
Lubomir

路路路

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Valentin MARTINET 薪邪锌懈褋邪:

Hi again,

Hmm, just stumbled on another one. Trying to create a new chat room
(rather than joining one) seems to also be resulting in an exception:

:slight_smile:
The fact is that I never have delt with the button "Create chatroom"
because I always have been creating CR in extending a one-to-one chat,
and never have thought about this button.

I didn't mean to imply that this was somehow your fault. Sorry if that's
how it sounded. However, since you have recently become our MUC master I
was hoping you would have a look when you get a chance :slight_smile:

Cheers,
Emil

路路路

Le 26 f茅vr. 2010 脿 15:57, Emil Ivov a 茅crit :

Anyway, I'll give a look at it :wink:

Regards,
Valentin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net