AnsweredAssumed Answered

Exception when creating a MUC room

Question asked by SonarBeserk on Nov 19, 2015
Latest reply on Nov 20, 2015 by Flow

When trying to create a muc room, I encounter an exception

 

Smack Version: 4.2 Alpha 2

 

Nov 02, 2015 3:59:34 PM org.jivesoftware.smack.tcp.XMPPTCPConnection shutdown INFO: closingstream java.lang.IllegalArgumentException: This data form already contains a form field with the variable name 'null' Nov 02, 2015 3:59:34 PM org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener WARNING: Connection XMPPTCPConnection[test@localhost/Client] (0) closed with error java.lang.IllegalArgumentException: This data form already contains a form field with the variable name 'null' at org.jivesoftware.smackx.xdata.packet.DataForm.addField(DataForm.java:223) at org.jivesoftware.smackx.xdata.provider.DataFormProvider.parse(DataFormProvider. java:62) at org.jivesoftware.smackx.xdata.provider.DataFormProvider.parse(DataFormProvider. java:41) at org.jivesoftware.smack.provider.Provider.parse(Provider.java:31) at org.jivesoftware.smack.util.PacketParserUtils.parseExtensionElement(PacketParse rUtils.java:918) at org.jivesoftware.smack.util.PacketParserUtils.addExtensionElement(PacketParserU tils.java:1052) at org.jivesoftware.smack.util.PacketParserUtils.addExtensionElement(PacketParserU tils.java:1047) at org.jivesoftware.smackx.muc.provider.MUCOwnerProvider.parse(MUCOwnerProvider.ja va:48) at org.jivesoftware.smackx.muc.provider.MUCOwnerProvider.parse(MUCOwnerProvider.ja va:30) at org.jivesoftware.smack.provider.Provider.parse(Provider.java:31) at org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:63 2) at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.jav a:151) at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMP PConnection.java:982) at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500(XMPPTCPConnection.java: 144) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:961) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon nection.java:916) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:931) at java.lang.Thread.run(Thread.java:745)

 

The code being run is simply:

        

MultiUserChat muc = multiChatManager.getMultiUserChat(JidCreate.entityBareFrom("testmuc@conference. localhost));         

muc.create(Resourcepart.from("test));         

Form form = muc.getConfigurationForm();

Outcomes