powered by Jive Software

Smack.jar on mac OSX

Hello!

I’‘ve installed the latest wildfire software on a linux machine. Then I’'ve created a few users. Now I try to connect from my mac osx over a java program combined with the smack.jar library. But unfortunately that produces a whole lot of exceptions on the client side. Although I was already able to receive a message on my linux machine a few times. The code looks like this:

try {

XMPPConnection con = new XMPPConnection(“konstanz”);

con.login(“mtanner”, “mtanner”);

con.createChat(“konstanz@konstanz”).sendMessage(“Howdy!”);

System.out.print(“message was sent!”);

} catch (XMPPException e) {

e.printStackTrace();

}

and the exeptions look like this:

java.lang.NullPointerException

at org.jivesoftware.smack.SmackConfiguration.(XMPPConnection.java:87)

at connection.EstablishConnection.main(EstablishConnection.java:24)

The error log tells this:

2005.12.22 13:14:11 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:158) Connection closed before session established

Socket[addr=/192.168.1.2,port=56359,localport=5222]

2005.12.22 13:51:30 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:158) Connection closed before session established

Socket[addr=/192.168.1.2,port=56993,localport=5222]

2005.12.22 14:15:29 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:158) Connection closed before session established

Socket[addr=/192.168.1.2,port=57250,localport=5222]

and the debug log:

2005.12.22 13:49:06 Connect Socket[addr=/192.168.1.2,port=56982,localport=5222]

2005.12.22 13:49:06 Logging off konstanz/7897f00d on org.jivesoftware.wildfire.net.SocketConnection@1e536d6 socket: Socket[addr=/192.168.1.2,port=56982,localport=5222] session: org.jivesoftware.wildfire.ClientSession@baf589 status: 1 address: konstanz/7897f00d id: 7897f00d presence:

2005.12.22 13:50:14 Connect Socket[addr=/192.168.1.2,port=56989,localport=5222]
2005.12.22 13:50:15 Logging off konstanz/559895d3 on org.jivesoftware.wildfire.net.SocketConnection@4e21db socket: Socket[addr=/192.168.1.2,port=56989,localport=5222] session: org.jivesoftware.wildfire.ClientSession@1e9d9b1 status: 1 address: konstanz/559895d3 id: 559895d3 presence:

2005.12.22 13:51:30 Connect Socket[addr=/192.168.1.2,port=56993,localport=5222]

2005.12.22 14:15:29 Connect Socket[addr=/192.168.1.2,port=57250,localport=5222]

Has anybody seen that before?

Help would be very appreciated!

Message was edited by:

mtanner

Message was edited by:

mtanner