powered by Jive Software

Not able to add contact in spark?

Hi,

I am using Openfire 3.6.3 on RHEL 4.5 x32 bit with Active directory integration. We use spark as client messaeging software. One of our client is able to login into the spark. Whenever he add any contact, it automatically logs out. When we check on openfire server and access his roster. we got below error. We are using mysql-4.1.20. Kindly help me in resolving issue.

Exception:

java.lang.IllegalArgumentException: Illegal JID: Hossam Shadi@openfireweb.fgb.ae
     at org.xmpp.packet.JID.init(JID.java:396)
     at org.xmpp.packet.JID.(JID.java:231)
     at org.jivesoftware.openfire.roster.RosterItemProvider.getItems(RosterItemProvider.java:278)
     at org.jivesoftware.openfire.roster.Roster.(Roster.java:110)
     at org.jivesoftware.openfire.roster.RosterManager.getRoster(RosterManager.java:86)
     at org.jivesoftware.openfire.admin.user_002droster_jsp._jspService(user_002droster_jsp.java:111)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:66)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:42)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
     at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:70)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:146)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
     at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
     at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
     at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
     at org.mortbay.jetty.Server.handle(Server.java:324)
     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
     at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
     at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
     at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
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:351)
     ... 36 more

Hi,

you likely need to use “\20” instead of " " in the JID. As you can see the log you did post contains “Contains prohibited code points.” Anyhow I wonder why Spark fails to escape " " properly. My Spark beta/trunk version does not have this problem.

http://xmpp.org/extensions/xep-0106.html describes the mapping of escape characters.

LG

Thanks for you reply. Still i am not able to understand. User id o469 by which we are login into client(spark). But error is

java.lang.IllegalArgumentException: Illegal JID: Hossam Shadi@openfireweb.fgb.ae at org.xmpp.packet.JID.init(JID.java:396) at org.xmpp.packet.JID.(JID.java:231)

In error I got **Illegal JID: Hossam Shadi@openfireweb.fgb.ae. **

Waiting for your reply. Thanks in advance.

Regards,

Kuldeep

Hi Kuldeep,

“Hossam Shadi” contains a blank / whitespace character. This character is not allowed in a JID. Also upper case characters are not allowed but most clients convert them locally to lower case. I wonder whether all your JIDs contain spaces or if this is the only one. Can change the JID to "hossam.shadi@openfireweb.fgb.ae"?

LG

Thanks for you reply.

  1. We are using user id o469 to login which is in Active directory (domain id). But After login with user id o469,

  2. We are getting below error. Given id (**Hossam Shadi@openfireweb.fgb.ae) is not used for any purpose. but still we are getting error for **Hossam Shadi@openfireweb.fgb.ae.

  3. Error is

java.lang.IllegalArgumentException: Illegal JID: Hossam Shadi@openfireweb.fgb.ae at org.xmpp.packet.JID.init(JID.java:396) at org.xmpp.packet.JID.(JID.java:231)

In error I got **Illegal JID: Hossam Shadi@openfireweb.fgb.ae. **

Waiting for your reply. Thanks in advance.

Regards,

Kuldeep

  1. We are using user id o469 to login which is in Active directory (domain id). But After login with user id o469,

  2. We are getting below error. Given id (**Hossam Shadi@openfireweb.fgb.ae) is not used for any purpose. but still we are getting error for **Hossam Shadi@openfireweb.fgb.ae.

  3. Error is

java.lang.IllegalArgumentException: Illegal JID: Hossam Shadi@openfireweb.fgb.ae at org.xmpp.packet.JID.init(JID.java:396) at org.xmpp.packet.JID.(JID.java:231)

In error I got **Illegal JID: Hossam Shadi@openfireweb.fgb.ae. **

Waiting for your reply. Thanks in advance.

Regards,

Kuldeep

Hi Kuldeep,

do you see this JID when you edit the roster of this user using tte Openfire web gui? Could be this URL http://server:9090/user-roster.jsp?username=o469

LG