powered by Jive Software

Problems getting .login to work

Hi, I’'m using smack in conjunction with Coldfusion. I can connect using .xmppconnection method

but as soon as I call the .login method I get an error, here is the code, followed by the error. any clues to what the error means (and how to fix if u know) would be great

these are the calls from CF

//this works ok on its own

XMPPConnection = createObject(“java”, “org.jivesoftware.smack.XMPPConnection”).init(“jabber.org”);

// the following line causes the error below

login = XMPPConnection.login("maghazaji@jabber.org", “maghazaji”);

this is the error I’'m getting

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:464)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:423)

at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at coldfusion.runtime.StructBean.invoke(StructBean.java:391)

at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1662)

at cfframe2ecfm711594205.runPage(C:\Inetpub\wwwroot\IM\frame.cfm:8)

at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)

at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)

at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)

at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)

at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)

at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)

at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)

at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil ter.java:28)

at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)

at coldfusion.CfmServlet.service(CfmServlet.java:107)

at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)

at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)

at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)

at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)

at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)

at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318 )

at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)

at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

probably you should correct this line:

-> login = XMPPConnection.login("maghazaji@jabber.org", “maghazaji”);

like this:

-> login = XMPPConnection.login(“maghazaji”, “maghazaji”);