Invalid code point bug

Issue #138 invalid
Anonymous created an issue

Every time I try to run my program I get this error message, independent from wich Java version I use:

Exception in thread "main" rocks.xmpp.precis.InvalidCodePointException: Invalid code point at position 0: 0x200e
    at rocks.xmpp.precis.PrecisProfile.prepare(PrecisProfile.java:664)
    at rocks.xmpp.precis.UsernameProfile.prepare(UsernameProfile.java:53)
    at rocks.xmpp.precis.PrecisProfile.enforce(PrecisProfile.java:700)
    at rocks.xmpp.precis.UsernameProfile.enforce(UsernameProfile.java:58)
    at rocks.xmpp.addr.Jid.<init>(Jid.java:155)
    at rocks.xmpp.addr.Jid.withLocal(Jid.java:419)
    at rocks.xmpp.extensions.muc.ChatService.createRoom(ChatService.java:92)
    at Main.main(Main.java:23)

Is this a libary problem or am I just stupid and can't use this library?

Comments (3)

  1. Christian Schudt repo owner

    The exception should be pretty clear, isn't it?

    You are trying to create chat room with an invalid codepoint at character position 0, which is 0x200E (LEFT-TO-RIGHT MARK). This code point is disallowed by the JID specification.

  2. Log in to comment