Open GoogleCodeExporter opened 9 years ago
I have meet this question,is that a bug?I think...who can help ,thank you..
Original comment by zengqin...@gmail.com
on 30 Mar 2011 at 10:07
is any body can resolve?
Original comment by zengqin...@gmail.com
on 31 Mar 2011 at 12:41
I have meet this question too.
Original comment by todd...@gmail.com
on 25 Apr 2011 at 8:58
I have meet this question too.
----------------------
05-26 08:36:07.208: WARN/dalvikvm(1007): JNI WARNING: JNI method called with
exception raised
05-26 08:36:07.208: WARN/dalvikvm(1007): in
Landroid/webkit/WebViewCore;.nativeTouchUp (IIIII)V (NewGlobalRef)
05-26 08:36:07.208: WARN/dalvikvm(1007): Pending exception is:
05-26 08:36:07.218: INFO/dalvikvm(1007): Ljava/lang/ClassCastException;:
org.jivesoftware.smack.util.PacketParserUtils$2
05-26 08:36:07.218: INFO/dalvikvm(1007): at
org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryMa
nager.java:655)
05-26 08:36:07.228: INFO/dalvikvm(1007): at
org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryMa
nager.java:619)
05-26 08:36:07.228: INFO/dalvikvm(1007): at
org.jivesoftware.smackx.muc.MultiUserChat.getHostedRooms(MultiUserChat.java:282)
05-26 08:36:07.249: INFO/dalvikvm(1007): at
com.phonegap.plugin.xmpp.ChatRoomTabManager.getJoinedRooms(ChatRoomTabManager.ja
va:35)
05-26 08:36:07.249: INFO/dalvikvm(1007): at
com.phonegap.plugin.XmppService.getChatRoomList(XmppService.java:128)
05-26 08:36:07.249: INFO/dalvikvm(1007): at
android.webkit.WebViewCore.nativeTouchUp(Native Method)
05-26 08:36:07.258: INFO/dalvikvm(1007): at
android.webkit.WebViewCore.nativeTouchUp(Native Method)
05-26 08:36:07.278: INFO/dalvikvm(1007): at
android.webkit.WebViewCore.access$3300(WebViewCore.java:52)
05-26 08:36:07.278: INFO/dalvikvm(1007): at
android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1150)
05-26 08:36:07.288: INFO/dalvikvm(1007): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-26 08:36:07.318: INFO/dalvikvm(1007): at
android.os.Looper.loop(Looper.java:123)
05-26 08:36:07.318: INFO/dalvikvm(1007): at
android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:621)
05-26 08:36:07.328: INFO/dalvikvm(1007): at
java.lang.Thread.run(Thread.java:1096)
05-26 08:36:07.328: INFO/dalvikvm(1007): "WebViewCoreThread" prio=5 tid=7 NATIVE
----------------------------------------------------------------------------
code:
android client : asmack
server:openfire
public JSONArray getJoinedRooms(String userJID) {
try {
Collection<HostedRoom> rooms = MultiUserChat.getHostedRooms(con, "conference.zhongb-tdmcrglk");//static java.util.Collection<HostedRoom>
/*for(Iterator<HostedRoom> hostedRoomIterator=rooms.iterator();hostedRoomIterator.hasNext();){
Log.i(">>>", "hostRooms("+")="+hostedRoomIterator.next());
}*/
Iterator it = rooms.iterator();
if(rooms.size() > 0)
{
while(it.hasNext())
{
HostedRoom roomName = (HostedRoom) it.next();
MultiUserChat muc = new MultiUserChat(con,roomName.getName());
//After creating a new MultiUserChat and before requesting its owners you need to join the room. Use #join(String nickname) or any of the other #joins messages available. We probably need to enhance Smack to throw an IllegalStateException if you try to use a MultiUserChat before actually joining a room.
//Collection collection = muc.getOwners(); //error thrown here.
}
}
} catch (XMPPException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
JSONArray joinedRoomsList = new JSONArray();
//----------- .....
return joinedRoomsList ;
}
Original comment by liu0198...@gmail.com
on 26 May 2011 at 8:49
I had the same problem and the solution suggested at
http://community.igniterealtime.org/message/201866#201866 solves the matter.
It has to do with having to add all the ExtensionProviders to the
ProviderManager explicitly.
Original comment by chimpooc...@gmail.com
on 20 Jun 2011 at 9:35
Original issue reported on code.google.com by
jignesh....@gmail.com
on 22 Dec 2010 at 10:57