j2me波兰语
我使用 j2me Polish(Netbeans IDE)创建了自己的聊天应用程序,我使用框架表单设计了一个聊天屏幕,并添加了一个具有直接输入属性的文本字段,并且在发送“&”时符号,连接立即关闭...... 有什么想法请.. 顺便说一句我正在使用 openfire 3.6.4
i created my own chat application using j2me polish (netbeans IDE) i designed a chat screen using framed form and added a textfield with direct input property, and when sending '&' symbol, the connection closes immediately....
any ideas please..
btw i am using openfire 3.6.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在来自服务器的 XML 流中查找错误消息。如果服务器正在关闭连接,它应该向您提供一条错误消息,说明原因。最可能的原因是您没有转义消息文本中的 XML 保留字符(“&”是保留字符),并且服务器检测到格式不正确的 XML 并关闭连接。
Look for an error message in the XML stream from the server. If the server is closing the connection it should give you an error message for why. The most likely reason is that you're not escaping XML reserved characters ('&' is a reserved character) in the message text and the server detects the improperly formatted XML and closes the connection.