powered by Jive Software

Illegal JID format

Some exceptions from warn.log:

2005.02.01 19:45:42 Stream error detected

java.lang.IllegalArgumentException: Illegal JID format: Contains non-LDH characters.

at org.xmpp.packet.JID.init(JID.java:202)

at org.xmpp.packet.JID.(JID.java:103)

at org.xmpp.packet.Packet.(Packet.java:53)

at org.xmpp.packet.IQ.(IQ.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.getIQ(SocketReadThread.java:222 )

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:204)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:109)

2005.02.01 21:57:01 Stream error detected

java.lang.IllegalArgumentException: Illegal JID format: String too long.

at org.xmpp.packet.JID.init(JID.java:202)

at org.xmpp.packet.JID.(JID.java:103)

at org.xmpp.packet.Packet.(Packet.java:53)

at org.xmpp.packet.IQ.(IQ.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.getIQ(SocketReadThread.java:222 )

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:204)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:109)

What does it mean? All JIDs registered in my server have a correct format.

Check if your JID contains some character that is not letter, digit, or hyphen characters.

This is the definition of an LDH character:

<ldh-str>     ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str> <let-dig-hyp> ::= <let-dig> | "-" <let-dig>     ::= <letter> | <digit> <letter>      ::= any one of the 52 alphabetic characters A through Z in                   upper case and a through z in lower case <digit>       ::= any one of the ten digits 0 through 9

Regards,

– Gato

Obviously, my users specify a wrong JID at login procedure. It is not an error in Jive Messenger. Whether it is possible to write down this JID in a log file?

Can be write down also the IP-address? To find out, what user has problems.

Hello,

I got an error with the “jive_messenger_2005-03-15.zip” night build using ldap auth. The user is authenticated but the structure of the roster is not fetched from the server because of this error.

As a temporary solution we’ve made some modifications into the configuration file as it follows:

This error appeared after 2.1.2 release. As an suggestion try to replace spaces from JID’s with “-” when using LDAP auth.

The actual JID is “on semi management@chat…”; there are 3 spaces;

Here is the error:

2005.03.18 10:24:52 org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.java :118) Internal server error

java.lang.IllegalArgumentException: Illegal JID: on semi management@chat.domain.com

at org.xmpp.packet.JID.init(JID.java:250)

at org.xmpp.packet.JID.(JID.java:125)

at org.jivesoftware.messenger.XMPPServer.createJID(XMPPServer.java:160)

at org.jivesoftware.messenger.roster.Roster.getSharedUsers(Roster.java:473)

at org.jivesoftware.messenger.roster.Roster.(Roster.java:105)

at org.jivesoftware.messenger.roster.RosterManager.getRoster(RosterManager.java:69 )

at org.jivesoftware.messenger.user.User.getRoster(User.java:262)

at org.jivesoftware.messenger.handler.IQRosterHandler.manageRoster(IQRosterHandler .java:173)

at org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.jav a:103)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:203)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

Caused by: org.jivesoftware.stringprep.StringprepException: Contains prohibited code points.

at org.jivesoftware.stringprep.Stringprep.nodeprep(Stringprep.java:120)

at org.xmpp.packet.JID.init(JID.java:201)

… 14 more

Yep. The XMPP spec does not allow white spaces in the JIDs so as you said you will have to replace the white spaces with another character.

Regards,

– Gato