Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Unable to use smack-bosh out of the box

$
0
0

I had a few issues getting going with smack-bosh 3.4.1:

 

(1) First when I added all the appropriate jars to my classpath and when running my BOSH client, I get the error:

IllegalStateException: Could not load org.igniterealtime.jbosh.HTTPSender implementation

 

Turns out the XLightWebSender.java was in the test src, so when I copied that and XLightWebResponse.java into the src main directory I was able to get past this issue.

 

(2) When I created the BOSHConnection, I was unable to connect to OF because the host and port were 'null' and 0 respectively. Turns out host and port aren't being set when you pass these values in the BOSHConfiguration constructor. I had to manually call the following in order to finally get it to connect:

config.setUsedHostAddress(new HostAddress(_host, _port));

 

Basically, I had to hack around a little bit in order to get the smack-bosh jar to work. Is this the way it's suppose to work or am I doing something wrong?


Viewing all articles
Browse latest Browse all 10742

Trending Articles