From: Huston <hu...@us...> - 2002-07-11 22:40:36
|
Antal, > In README_SASL.htm I had saw inexistent methods in API > (eg.addChannelControlListener), this document is too old (deprecated)!? The readme needs to be updated, I'll add it to the todo list. > In the README_SASL.htm I had saw this type (static) use of SASLOTPProfile: > > sess = SASLOTPProfile.AuthenticateSASLOTPWithInit( sess, XXX, user, pwd, > hashMethod, newHash, seed, seq); > > In the API all the AuthenticateSASLOTP.. methods is static but when I > trying to use them like static I get the SASLOTPProfile is not initialized > error. The following code was worked to the older version of BEEP: > > SASLOTPProfile otp = new SASLOTPProfile(); > otp.init(SASLOTPProfile.URI, new ProfileConfiguration()) ; > sess = otp.AuthenticateSASLOTPWithInit( sess, XXX, user, pwd, > hashMethod, newHash, seed, seq); > > And now this code is working but _sometime_ (randomly) I get the > following errors: > > 1.- On the client side I get the result but on the server side I get the > following error: > > org.beepcore.beep.core.BEEPException: Illegal session state transition > at java.lang.Throwable.<init>(Throwable.java:96) > at java.lang.Exception.<init>(Exception.java:44) > at > org.beepcore.beep.core.BEEPException.<init>(BEEPException.java:40) > at > org.beepcore.beep.core.Session$ABORTED_SessionOperations.changeState(Session .java:1986) > at org.beepcore.beep.core.Session.changeState(Session.java:631) > at > org.beepcore.beep.core.Session.receiveCloseChannelZero(Session.java:1156) > at > org.beepcore.beep.core.Session.receiveCloseChannel(Session.java:1049) > at org.beepcore.beep.core.Session.access$500(Session.java:66) > at > org.beepcore.beep.core.Session$ChannelZeroListener.receiveMSG(Session.java:1 435) > at org.beepcore.beep.core.Channel$1.run(Channel.java:473) > at > edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:655) > at java.lang.Thread.run(Thread.java:498) > java.lang.NullPointerException > at > org.beepcore.beep.core.Session.fireSessionClosed(Session.java:1015) > at > org.beepcore.beep.core.Session.receiveCloseChannelZero(Session.java:1161) > at > org.beepcore.beep.core.Session.receiveCloseChannel(Session.java:1049) > at org.beepcore.beep.core.Session.access$500(Session.java:66) > at > org.beepcore.beep.core.Session$ChannelZeroListener.receiveMSG(Session.java:1 435) > at org.beepcore.beep.core.Channel$1.run(Channel.java:473) > at > edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:655) > at java.lang.Thread.run(Thread.java:498) > > > or only this: > > > org.beepcore.beep.core.BEEPException: Illegal session state transition > at java.lang.Throwable.<init>(Throwable.java:96) > at java.lang.Exception.<init>(Exception.java:44) > at > org.beepcore.beep.core.BEEPException.<init>(BEEPException.java:40) > at > org.beepcore.beep.core.Session$CLOSED_SessionOperations.changeState(Session. java:1973) > at org.beepcore.beep.core.Session.changeState(Session.java:631) > at org.beepcore.beep.core.Session.terminate(Session.java:616) > at > org.beepcore.beep.transport.tcp.TCPSession.terminate(TCPSession.java:196) > at > org.beepcore.beep.transport.tcp.TCPSession.processNextFrame(TCPSession.java: 466) > at > org.beepcore.beep.transport.tcp.TCPSession.access$000(TCPSession.java:55) > at > org.beepcore.beep.transport.tcp.TCPSession$1.run(TCPSession.java:230) > The "Illegal session state transition" exception was added just so I can get all of the code paths doing the same state transitions. If you remove the throw it should work as before. Would you mind submitting a bug for this? I will fix it once I finish with the bug I'm currently working on. Unless, of course, you wanted to fix it and submit a patch ;-) > 2. - My BEEP client is halt, I don't get the results and on the server > side I get this: > > > java.lang.NullPointerException > at > org.beepcore.beep.profile.sasl.otp.OTPAuthenticator.receiveMSG(OTPAuthentica tor.java:759) > at org.beepcore.beep.core.Channel$1.run(Channel.java:473) > at > edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:655) > at java.lang.Thread.run(Thread.java:498) > java.lang.NullPointerException > at org.beepcore.beep.core.Session.sendProfile(Session.java:968) > at > org.beepcore.beep.core.Session.processStartChannel(Session.java:1245) > at org.beepcore.beep.core.Session.access$400(Session.java:66) > at > org.beepcore.beep.core.Session$ChannelZeroListener.receiveMSG(Session.java:1 397) > at org.beepcore.beep.core.Channel$1.run(Channel.java:473) > at > edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:655) > at java.lang.Thread.run(Thread.java:498) I haven't seen this before, would you mind submitting a bug for this also? Thanks, --Huston |