SASLOTPProfile lot of problem

Antal Attila <[email protected]> 10 Jul 2002 21:02:55 +0300
Newsgroups gmane.network.beep.beepcore.java.general
Message-ID <1026324175.7764.39.camel@atech>
Helo,

In README_SASL.htm I seen inexistent methods in API
(eg.addChannelControlListener), this document is too old?

In the README_SASL.htm I seen 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 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?

atech
signature.asc (application/pgp-signature, 240 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAj0sds8ACgkQo/AEHQiifuVkEQCeP/rjITnU6vUqWSvJwZn/byTd
fFEAn19LFUjBMLn1MlaXWEcKfx6BgTUS
=vX7B
-----END PGP SIGNATURE-----