I created a new PacketExtension, ie ‘‘Alias’’, and the corresponding extension provider (should I subscribe this provider somewhere?!). In testing packets are send and received, extension inclusive.
However, I can not cast the DefaultPacketExtension received from packet.getExtension(elementName, nameSpace) to my original extension ‘‘Alias’’. The xml of the extension seems to be ok, however, there is one thing a bit strange: the last and second to last xml elements changed places.
Anyone any idea how to solve my casting problem?! Tenx!