[JDEV] Internal Jabberd error : Packet delivery failed (Inval id packet)

Joe Hildebrand JHildebrand at jabber.com
Wed Dec 4 18:53:25 CST 2002


When a packet is sent from a client connection, JSM will add a from='jid'
address for you.  

When components talk to the router (at least with the .com server), they
*must* put a to and a from address on every packet.

-- 
Joe Hildebrand 



-----Original Message-----
From: Mike Prince [mailto:mike at mikeprince.com]
Sent: Wednesday, December 04, 2002 10:16 AM
To: jdev at jabber.org
Subject: RE: [JDEV] Internal Jabberd error : Packet delivery failed (Invalid
packet)


A quick guess is that you're missing the 'from' attribute.  The XMPP spec
says it's not needed for clients, but I've found jabberd to get grumpy when
an accept component does not include the attribute.

Hope that helps,

Mike
-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org] On Behalf Of
OUCHIA Mehdi FTRD/SVA/LAN
Sent: Wednesday, December 04, 2002 6:53 AM
To: jdev at jabber.org
Subject: [JDEV] Internal Jabberd error : Packet delivery failed (Invalid
packet)


Hello, 
from a client called "ouchia at tournedix", an 'accept' component called
"configurationmanager.tournedix" received this iq query : 
<iq type='get' id='j1' to='configurationmanager.tournedix'
from='ouchia at tournedix/ouchia_758'> 
    <query
xmlns='http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist
'> 
        <company>FTRD</company> 
    </query> 
</iq> 


then the 'accept' component try to respond to  this client with this XML
packet : 
<iq id='j1' to='ouchia at tournedix/ouchia_758' type='result'> 
    <query
xmlns='http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist
'> 
        <company name='FTRD'> 
            <terminals> 
                <terminal> 
                    <e164alias>0298000000</e164alias> 
                    <operatorfunction>false</operatorfunction> 
                    <parkingfunction>true</parkingfunction> 
                </terminal> 
            </terminals> 
        </company> 
    </query> 
</iq> 


Unfortunately, as you can see in the following traces, the packet is not
delivered to the client, however my XML flow is well formed. I don't
understand, an 'accept' would have been to send a jabber packet to any
client, wouldn't it ?
Thanks in advance for your help. 
Mehdi. 



Wed Dec  4 15:15:18 2002  deliver.c:257
deliver(to[configurationmanager.tournedi 
x],from[ouchia at tournedix/ouchia_758],type[4],packet[<iq type='get' id='j1'
to='c 
onfigurationmanager.tournedix' from='ouchia at tournedix/ouchia_758'><query
xmlns=' 
http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist'> 
<company>FTRD</company> 
</query></iq>]) 
Wed Dec  4 15:15:18 2002  deliver.c:474 DELIVER
1:configurationmanager.tournedix 
 <iq type='get' id='j1' to='configurationmanager.tournedix'
from='ouchia at tourned 
ix/ouchia_758'><query
xmlns='http://rd.francetelecom.com/eTelephony/of/configura 
tion/terminalslist'> 
<company>FTRD</company> 
</query></iq> 
Wed Dec  4 15:15:18 2002  deliver.c:678 delivering to instance
'configurationman 
ager.tournedix' 
Wed Dec  4 15:15:18 2002  mio.c:1054 mio_write called on x: 81F0090 buffer:
(nul 
l) 
Wed Dec  4 15:15:18 2002  mtq 8146AE8 leaving to pth 
Wed Dec  4 15:15:18 2002  mio.c:279 write_dump writing data: <iq type='get'
id=' 
j1' to='configurationmanager.tournedix'
from='ouchia at tournedix/ouchia_758'><quer 
y
xmlns='http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist
'> 
<company>FTRD</company> 
</query></iq> 
Wed Dec  4 15:15:18 2002  mio.c:607 mio while loop top 
Wed Dec  4 15:15:18 2002  mio.c:620 mio while loop, working 
Wed Dec  4 15:15:18 2002  mio.c:607 mio while loop top 
Wed Dec  4 15:15:18 2002  mio.c:620 mio while loop, working 
Wed Dec  4 15:15:18 2002  mio.c:760 MIO read from socket 15: <iq id='j1'
to='ouc 
hia at tournedix/ouchia_758' type='result'><query
xmlns='http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist
'>
<company name='FTRD'><terminals><te 
rminal><e164alias>0298000000</e164alias><operatorfunction>false</operatorfun
ctio 
n><parkingfunction>true</parkingfunction></terminal></terminals></company></
quer 
y></iq> 
Wed Dec  4 15:15:18 2002  base_accept.c:120 process XML: m:80E3838 state:3,
arg: 
810E5D0, x:81F0090 
Wed Dec  4 15:15:18 2002  log.c:116 <log type='warn' from='-internal'>Packet
Del 
ivery Failed, invalid packet, dropping &lt;iq id=&apos;j1&apos;
to=&apos;ouchia@ 
tournedix/ouchia_758&apos; type=&apos;result&apos;&gt;&lt;query
xmlns=&apos;http 
://rd.francetelecom.com/eTelephony/of/configuration/terminalslist&apos;&gt;&
lt;c 
ompany
name=&apos;FTRD&apos;&gt;&lt;terminals&gt;&lt;terminal&gt;&lt;e164alias&g 
t;0298000000&lt;/e164alias&gt;&lt;operatorfunction&gt;false&lt;/operatorfunc
tion 
&gt;&lt;parkingfunction&gt;true&lt;/parkingfunction&gt;&lt;/terminal&gt;&lt;
/ter 
minals&gt;&lt;/company&gt;&lt;/query&gt;&lt;/iq&gt;</log> 
Wed Dec  4 15:15:18 2002  deliver.c:474 DELIVER 3:-internal <log type='warn'
fro 
m='-internal'>Packet Delivery Failed, invalid packet, dropping &lt;iq
id=&apos;j 
1&apos; to=&apos;ouchia at tournedix/ouchia_758&apos;
type=&apos;result&apos;&gt;&l 
t;query
xmlns=&apos;http://rd.francetelecom.com/eTelephony/of/configuration/term 
inalslist&apos;&gt;&lt;company
name=&apos;FTRD&apos;&gt;&lt;terminals&gt;&lt;ter 
minal&gt;&lt;e164alias&gt;0298000000&lt;/e164alias&gt;&lt;operatorfunction&g
t;fa 
lse&lt;/operatorfunction&gt;&lt;parkingfunction&gt;true&lt;/parkingfunction&
gt;& 
lt;/terminal&gt;&lt;/terminals&gt;&lt;/company&gt;&lt;/query&gt;&lt;/iq&gt;<
/log 
> 
Wed Dec  4 15:15:18 2002  deliver.c:678 delivering to instance 'elogger' 
20021204T14:15:18: [warn] (-internal): Packet Delivery Failed, invalid
packet, d 
ropping <iq id='j1' to='ouchia at tournedix/ouchia_758' type='result'><query
xmlns= 
'http://rd.francetelecom.com/eTelephony/of/configuration/terminalslist'><com
pany 
 
name='FTRD'><terminals><terminal><e164alias>0298000000</e164alias><operatorf
unc 
tion>false</operatorfunction><parkingfunction>true</parkingfunction></termin
al>< 
/terminals></company></query></iq> 




----------------------------------------------------------------------------
------ 
Mehdi OUCHIA                 mehdi.ouchia at rd.francetelecom.com 
france telecom R&D/SVA/KIS        
Téléphone : (33) 2 96 05 21 68            Télécopie  : (33) 2 96 05 02 42 
2 rue Pierre Marzin      
22307 LANNION cedex     
----------------------------------------------------------------------------
---------------------------------- 
                 



More information about the JDev mailing list