tigase-server 5.x not working on leopard

3 replies [Last post]
Anonymous

I'm run the tigase-server on my leopard 10.5, java version is soylatte16-1.0.3, but it's not working.
It's the log when client connect to the server,

2010-05-17 17:38:33 ConnectionOpenThread.run() INFO: Socket closed instantly after it had been opened?java.net.SocketException: Invalid argument
at sun.nio.ch.Net.setIntOption0(Native Method)
at sun.nio.ch.Net.setIntOption(Net.java:154)
at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46)
at sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249)
at sun.nio.ch.SocketOptsImpl$IP$TCP.typeOfService(SocketOptsImpl.java:268)
at sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158)
at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:330)
at tigase.net.ConnectionOpenThread.run(ConnectionOpenThread.java:202)
at java.lang.Thread.run(Thread.java:619)

Anonymous (not verified)

Ok, after commit the code at ConnectionOpenThread line 203, sc.socket().setTrafficClass(trafficeClass);
It's worked.

kobit's picture
Offline
Joined: 2006-09-03
Points: 267814

Hi Anonymous ;-). I have been developing for Java6 on Mac for over 2 last years but I have never heard of Soylatte before. I have just read about it with interest. Thank you for pointing this out.
Of course I have never heard of Soylatte, hence I have never tested Tigase with it either. Tigase runs well on Sun's (Oracle's) Java and Apple default Java (which is licensed Sun's I guess).

The setTrafficClass(...) method call is essential for high traffic installations so I have to research the problem under OpenJDK to see why it is not working and how to make it work.
Thank you for letting me know about the problem.

kellogs (not verified)

+1 in the same situation.. so it looks like a soylatte shortcoming

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.