With Jan. 12’‘s daily build, my roster is empty. This also occured with Jan. 11’'s build. I can try the other build to see whether it occurs there also.
The Jabber server I’'m using is charente.de, a Jabberd 1.4cvs-ipv6 server.
roster.getUnfiledEntryCount() == 0
roster.getGroupCount() == 0
When using the debugging window, ‘‘All Packets’’ shows ohly one RosterPacket with type result. On the ‘‘Raw Received Packets’’ tab, i can see my complete roster.
Also, I sometimes get this exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I’'m using rather simple code:
try {
XMPPConnection con = new XMPPConnection(HOST);
con.login(USER, PASS); Roster roster = con.getRoster();
if (roster == null) {
System.out.println("Empty roster");
} else {
Iterator it;
System.out.println("Unfiled: " +roster.getUnfiledEntryCount());
it = roster.getUnfiledEntries();
while (it.hasNext()) {
System.out.println("\t" +it.next());
}
System.out.println("Groups: " +roster.getGroupCount());
it = roster.getGroups();
while (it.hasNext()) {
System.out.println("\t" +it.next());
}
}
con.close();
} catch (XMPPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Note: notice how the first letters of both code-sections are removed. :-p