[Beepcore-java-users] SASLOTPProfile lot of problem
Status: Beta
Brought to you by:
huston
From: Antal A. <at...@no...> - 2002-07-11 08:18:31
|
Helo, In README_SASL.htm I had saw inexistent methods in API (eg.addChannelControlListener), this document is too old (deprecated)!? 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:1435) at org.beepcore.beep.core.Channel$1.run(Channel.java:473) at edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java: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:1435) at org.beepcore.beep.core.Channel$1.run(Channel.java:473) at edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java: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) 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(OTPAuthenticator.java:759) at org.beepcore.beep.core.Channel$1.run(Channel.java:473) at edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java: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:1397) at org.beepcore.beep.core.Channel$1.run(Channel.java:473) at edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655) at java.lang.Thread.run(Thread.java:498) 3. - the client is shows the result and the server is still running, it's all ok. This is a bug? (My BEEP version is from the Yesterday's CVS) atech |