bhq / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

Error writing to MUC: bad-request Invalid value for 'whois' #372

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I thought after fixing #323 using MUC for SMS would work, but it still does not 
for me:

17:50 <phone> Message from <NAME REMOVED> <NUMBER REMOVED>: Test
17:50 <phone> ACTION_SMS_RECEIVED - Error writing to MUC: bad-request Invalid 
value for 'whois'
17:50 <phone> Message from <NAME REMOVED> <NUMBER REMOVED>: Test
17:50 <phone> Incoming Message: Unable to send conference room configuration 
form. Ex: bad-request Invalid value for 'whois'
17:51 <phone> Reply contact is <NAME REMOVED> <NUMBER REMOVED>

I use bitlbee as jabber client, and prosody as server.

I get this in the log:

11-05 17:50:49.917 I/gtalksms( 1297): [receivers.SmsReceiver@onReceive:31] 
SmsReceiver: Issuing service intent for incoming SMS. sender=<NUMBER REMOVED> 
message=Test
11-05 17:50:49.917 I/gtalksms( 1297): [MainService@onStartCommand:433] 
onStartCommand(): Intent com.googlecode.gtalksms.action.SMS_RECEIVED
11-05 17:50:49.927 I/gtalksms( 1297): [MainService@onHandleIntentMessage:234] 
handling action 'com.googlecode.gtalksms.action.SMS_RECEIVED' while in state 
Connected
11-05 17:50:50.067 I/gtalksms( 1297): [MainService@onHandleIntentMessage:257] 
com.googlecode.gtalksms.action.SMS_RECEIVED: number=<NUMBER REMOVED> 
message=Test roomExists=falsenotifySame=true
11-05 17:50:50.067 I/gtalksms( 1297): [MainService@onHandleIntentMessage:266] 
Sending message form <NUMBER REMOVED> via chat
11-05 17:50:50.067 I/gtalksms( 1297): [XmppManager@send:658] Sending message 
"Message from <NAME REMOVED> +417641..."
11-05 17:50:50.077 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@getAllowedNotifiedAddresses:89] Sending 
message to me@the-compiler.org/BitlBee
11-05 17:50:50.077 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@filterHangoutAddresses:116] Looking for 
hangout addresses
11-05 17:50:50.077 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@send:43] Sending message to 1 recipients
11-05 17:50:50.087 I/gtalksms( 1297): [xmpp.XmppMuc@inviteRoom:156] No existing 
chat room with <NAME REMOVED> <NUMBER REMOVED>. Creating a new one...
11-05 17:50:50.087 I/gtalksms( 1297): [xmpp.XmppMuc@createRoom:265] Creating 
room 
Florian_Bruhin_41764128421_GTalkSMS_#809439294_phone_SMS_@conference.the-compile
r.org 809439294
11-05 17:50:50.298 W/gtalksms( 1297): [xmpp.XmppMuc@createRoom:305] Unable to 
configure room owners on Server conference.the-compiler.org. Falling back to 
room passwords
11-05 17:50:50.298 W/gtalksms( 1297): java.lang.IllegalArgumentException: 
Couldn't find a field for the specified variable.
11-05 17:50:50.298 W/gtalksms( 1297):   at 
org.jivesoftware.smackx.xdata.Form.setAnswer(Form.java:319)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.createRoom(XmppMuc.java:301)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.inviteRoom(XmppMuc.java:157)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.writeRoom(XmppMuc.java:129)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.writeRoom(XmppMuc.java:114)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.MainService.onHandleIntentMessage(MainService.java:275)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.MainService$ServiceHandler.handleMessage(MainService.jav
a:136)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
android.os.Handler.dispatchMessage(Handler.java:102)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
android.os.Looper.loop(Looper.java:136)
11-05 17:50:50.298 W/gtalksms( 1297):   at 
android.os.HandlerThread.run(HandlerThread.java:61)
11-05 17:50:50.298 D/gtalksms( 1297): [xmpp.XmppMuc@createRoom:320] <x 
xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' 
type='hidden'><value>http://jabber.org/protocol/muc#roomconfig</value></field><f
ield var='muc#roomconfig_roomname' type='text-single'><value><NAME REMOVED> 
<NUMBER REMOVED></value></field><field var='muc#roomconfig_roomdesc' 
type='text-single'><value><NAME REMOVED> <NUMBER REMOVED></value></field><field 
var='muc#roomconfig_publicroom' type='boolean'><value>0</value></field><field 
var='muc#roomconfig_roomsecret' type='text-private'><value><PASSWORD 
REMOVED></value></field></x>
11-05 17:50:50.398 W/gtalksms( 1297): [xmpp.XmppMuc@createRoom:324] Unable to 
send conference room configuration form.
11-05 17:50:50.398 W/gtalksms( 1297): bad-request Invalid value for 'whois'
11-05 17:50:50.398 W/gtalksms( 1297):   at 
org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:18
2)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:16
1)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
org.jivesoftware.smackx.muc.MultiUserChat.sendConfigurationForm(MultiUserChat.ja
va:590)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.createRoom(XmppMuc.java:321)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.inviteRoom(XmppMuc.java:157)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.writeRoom(XmppMuc.java:129)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.xmpp.XmppMuc.writeRoom(XmppMuc.java:114)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.MainService.onHandleIntentMessage(MainService.java:275)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
com.googlecode.gtalksms.MainService$ServiceHandler.handleMessage(MainService.jav
a:136)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
android.os.Handler.dispatchMessage(Handler.java:102)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
android.os.Looper.loop(Looper.java:136)
11-05 17:50:50.398 W/gtalksms( 1297):   at 
android.os.HandlerThread.run(HandlerThread.java:61)
11-05 17:50:50.398 W/gtalksms( 1297): [MainService@onHandleIntentMessage:283] 
Sending message from <NUMBER REMOVED> via MUC failed, message will be send as 
chat message
11-05 17:50:50.398 I/gtalksms( 1297): [XmppManager@send:658] Sending message 
"ACTION_SMS_RECEIVED - Error writing..."
11-05 17:50:50.398 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@getAllowedNotifiedAddresses:89] Sending 
message to me@the-compiler.org/BitlBee
11-05 17:50:50.398 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@filterHangoutAddresses:116] Looking for 
hangout addresses
11-05 17:50:50.398 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@send:43] Sending message to 1 recipients
11-05 17:50:50.398 I/gtalksms( 1297): [MainService@onHandleIntentMessage:306] 
handled action 'com.googlecode.gtalksms.action.SMS_RECEIVED' - state now: 
Connected
11-05 17:50:50.398 I/gtalksms( 1297): [MainService@onHandleIntentMessage:234] 
handling action 'com.googlecode.gtalksms.action.SEND' while in state Connected
11-05 17:50:50.398 I/gtalksms( 1297): [XmppManager@send:658] Sending message 
"Incoming Message: Unable to send co..."
11-05 17:50:50.408 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@getAllowedNotifiedAddresses:89] Sending 
message to me@the-compiler.org/BitlBee
11-05 17:50:50.408 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@filterHangoutAddresses:116] Looking for 
hangout addresses
11-05 17:50:50.408 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@send:43] Sending message to 1 recipients
11-05 17:50:50.408 I/gtalksms( 1297): [MainService@onHandleIntentMessage:306] 
handled action 'com.googlecode.gtalksms.action.SEND' - state now: Connected
11-05 17:51:00.117 I/gtalksms( 1297): [XmppManager@send:658] Sending message 
"Reply contact is <NAME REMOVED> +41..."
11-05 17:51:00.117 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@getAllowedNotifiedAddresses:89] Sending 
message to me@the-compiler.org/BitlBee
11-05 17:51:00.117 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@filterHangoutAddresses:116] Looking for 
hangout addresses
11-05 17:51:00.117 D/gtalksms( 1297): 
[xmpp.XmppMultipleRecipientManager@send:43] Sending message to 1 recipients

Original issue reported on code.google.com by m...@the-compiler.org on 5 Nov 2014 at 5:03

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 6769e2835bfc.

Original comment by yako...@gmail.com on 7 Mar 2015 at 12:06

GoogleCodeExporter commented 9 years ago
I have added the whois parameter for the MUC creation. 
It still works with openfire, can you test with the next beta version (you will 
be notified via this bug when available)

Original comment by Florent....@gmail.com on 7 Mar 2015 at 12:08

GoogleCodeExporter commented 9 years ago
Awesome, thanks! I'm already signed up as a beta tester, so I'll notice and 
test when there's an update :)

Original comment by m...@the-compiler.org on 7 Mar 2015 at 2:02

GoogleCodeExporter commented 9 years ago
Fixed in beta 5.0.1.82 available on market

Original comment by Florent....@gmail.com on 7 Mar 2015 at 3:40

GoogleCodeExporter commented 9 years ago
I'm signed up for the beta and have updated to 5.0.1 - but I still see this 
issue

Original comment by f.bru...@beh.ch on 12 Mar 2015 at 8:43

GoogleCodeExporter commented 9 years ago

Original comment by Florent....@gmail.com on 1 May 2015 at 5:42

GoogleCodeExporter commented 9 years ago
Any progress here? I don't have and don't want a g+ account, so I cannot sign 
up for the beta. Is the bug fixed, and if yes, when will it be merged with the 
stable release tree?

Original comment by HappyLep...@gmail.com on 8 Jun 2015 at 10:21

GoogleCodeExporter commented 9 years ago
FWIW, I'm using the beta and it's still broken for me :-/

Original comment by m...@the-compiler.org on 15 Jun 2015 at 1:25