Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.2
-
None
-
Unknown
Description
camel-xmpp routes consuming private chats from participants with a domain throws org.jxmpp.stringprep.XmppStringprepException: Localpart must not contain ':'
from("xmpp://herp@localhost:5222/derp@localhost?password=herp").to("stream:out");
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.Exception in thread "main" org.apache.camel.RuntimeCamelException: org.jxmpp.stringprep.XmppStringprepException: XmppStringprepException caused by 'Chat:derp@localhost:herp': org.jxmpp.stringprep.XmppStringprepException: Localpart must not contain ':' at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:68) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:130) at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2898) at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRouteConsumers(AbstractCamelContext.java:3225) at org.apache.camel.impl.engine.AbstractCamelContext.doStartRouteConsumers(AbstractCamelContext.java:3159) at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3069) at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3095) at org.apache.camel.impl.engine.AbstractCamelContext.startRouteService(AbstractCamelContext.java:2942) at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:358) at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330) at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:323) at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:88) at org.apache.camel.impl.AbstractModelCamelContext.addRouteDefinitions(AbstractModelCamelContext.java:111) at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:486) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:426) at org.apache.camel.impl.engine.AbstractCamelContext.lambda$addRoutes$0(AbstractCamelContext.java:1119) at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2460) at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1119) at a.test.main(test.java:32)Caused by: org.jxmpp.stringprep.XmppStringprepException: XmppStringprepException caused by 'Chat:derp@localhost:herp': org.jxmpp.stringprep.XmppStringprepException: Localpart must not contain ':' at org.jxmpp.jid.impl.JidCreate.entityBareFrom(JidCreate.java:675) at org.apache.camel.component.xmpp.XmppConsumer.doStart(XmppConsumer.java:94) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) ... 17 moreCaused by: org.jxmpp.stringprep.XmppStringprepException: Localpart must not contain ':' at org.jxmpp.stringprep.simple.SimpleXmppStringprep.localprep(SimpleXmppStringprep.java:74) at org.jxmpp.stringprep.XmppStringPrepUtil.localprep(XmppStringPrepUtil.java:62) at org.jxmpp.jid.parts.Localpart.from(Localpart.java:165) at org.jxmpp.jid.impl.LocalAndDomainpartJid.<init>(LocalAndDomainpartJid.java:46) at org.jxmpp.jid.impl.JidCreate.entityBareFrom(JidCreate.java:673) ... 19 more
camel-xmpp routes consuming private chats from participant without a domain throws org.jxmpp.stringprep.XmppStringprepException: Argument can't be the empty string
from("xmpp://herp@localhost:5222/derp?password=herp").to("stream:out");
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.Exception in thread "main" org.apache.camel.RuntimeCamelException: org.jxmpp.stringprep.XmppStringprepException: XmppStringprepException caused by 'Chat:derp:herp': org.jxmpp.stringprep.XmppStringprepException: Argument can't be the empty string at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:68) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:130) at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2898) at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRouteConsumers(AbstractCamelContext.java:3225) at org.apache.camel.impl.engine.AbstractCamelContext.doStartRouteConsumers(AbstractCamelContext.java:3159) at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3069) at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3095) at org.apache.camel.impl.engine.AbstractCamelContext.startRouteService(AbstractCamelContext.java:2942) at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:358) at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330) at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:323) at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:88) at org.apache.camel.impl.AbstractModelCamelContext.addRouteDefinitions(AbstractModelCamelContext.java:111) at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:486) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:426) at org.apache.camel.impl.engine.AbstractCamelContext.lambda$addRoutes$0(AbstractCamelContext.java:1119) at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2460) at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1119) at a.test.main(test.java:32)Caused by: org.jxmpp.stringprep.XmppStringprepException: XmppStringprepException caused by 'Chat:derp:herp': org.jxmpp.stringprep.XmppStringprepException: Argument can't be the empty string at org.jxmpp.jid.impl.JidCreate.entityBareFrom(JidCreate.java:675) at org.apache.camel.component.xmpp.XmppConsumer.doStart(XmppConsumer.java:94) at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) ... 17 moreCaused by: org.jxmpp.stringprep.XmppStringprepException: Argument can't be the empty string at org.jxmpp.stringprep.XmppStringPrepUtil.throwIfEmptyString(XmppStringPrepUtil.java:131) at org.jxmpp.stringprep.XmppStringPrepUtil.localprep(XmppStringPrepUtil.java:57) at org.jxmpp.jid.parts.Localpart.from(Localpart.java:165) at org.jxmpp.jid.impl.LocalAndDomainpartJid.<init>(LocalAndDomainpartJid.java:46) at org.jxmpp.jid.impl.JidCreate.entityBareFrom(JidCreate.java:673) ... 19 more