Thread: [Beepcore-java-users] SASLOTPProfile lot of problem
Status: Beta
Brought to you by:
huston
From: Antal A. <at...@no...> - 2002-07-10 18:09:39
|
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 =3D 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 =3D new SASLOTPProfile(); otp.init(SASLOTPProfile.URI, new ProfileConfiguration()) ; sess =3D 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(Sessio= n.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.j= ava: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.j= ava: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(OTPAuthentic= ator.java:759) at org.beepcore.beep.core.Channel$1.run(Channel.java:473) at edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.j= ava: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.j= ava: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 |
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 |
From: Iain S. <iai...@me...> - 2002-07-11 16:33:47
|
On 7/11/02 1:11 AM, "Antal Attila" <at...@no...> wrote: > In README_SASL.htm I had saw inexistent methods in API > (eg.addChannelControlListener), this document is too old (deprecated)!? Yes. Someone on the list had been discussing updating the docs. For better or worse things have been pretty quiet in the Java BEEP community lately. > SASLOTPProfile otp = new SASLOTPProfile(); > otp.init(SASLOTPProfile.URI, new ProfileConfiguration()) ; > sess = otp.AuthenticateSASLOTPWithInit( sess, XXX, user, pwd, > hashMethod, newHash, seed, seq); I haven't played with the security parts of the beepcore library. I'm really hoping the library maintainer chimes in... Unfortunately I think if you want to get a fast fix you may have to make it yourself by finding and fixing the bug. I know other people are using the beepcore library though so I'd first check your client application to make sure its not the source of problems. :) -iain |
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 |