Thread: [Beepcore-java-users] TLS and ECHO
Status: Beta
Brought to you by:
huston
From: noe <nej...@in...> - 2004-10-25 22:11:45
|
Hi Again, I still have the below problem ,anybody has the solution ? --------------------------------------------------------------------------------------------------------------------- P.S=Thank you very much David. I really helped me! Hello friends, When I run Beep example (Beepd,Bing) i can only use Echo Profile but not the TLS one, it doesn't allow me to do that.Indeed, each time i try to use TLS, i get a message indicating that it is not supported by the host,but you know that it parses the xml doc and registers the profiles. Lastly, i didn't change anything in the example files, except the "bing.java" is ,now, asking for a TLS profile instead of an Echo. Has anybody got the same problem or a solution? Cheers |
From: noe <nej...@in...> - 2004-10-26 10:13:48
|
Hello David, No I didn't try it yet and actually i just downloded it so it will take me sometime to figure it out. Thanks |
From: noe <nej...@in...> - 2004-10-26 10:22:25
|
Actually, I get the below error. May be I forget to put some jar files to somewhere, any ideas? > java.util.NoSuchElementException > at java.util.LinkedList.remove(LinkedList.java:579) > at java.util.LinkedList.removeFirst(LinkedList.java:131) > at > org.beepcore.beep.core.ChannelImpl.sendFrames(ChannelImpl.java:864) > at > org.beepcore.beep.core.ChannelImpl.sendQueuedMessages(ChannelImpl.java:773) > at > org.beepcore.beep.core.ChannelImpl.sendToPeer(ChannelImpl.java:754) > at > org.beepcore.beep.core.ChannelImpl.sendMessage(ChannelImpl.java:745) > at > org.beepcore.beep.core.MessageMSGImpl.sendRPY(MessageMSGImpl.java:176) > at > org.beepcore.beep.profile.tls.jsse.TLSProfileJSSE.receiveMSG(TLSProfileJSSE.java:575) > at org.beepcore.beep.core.ChannelImpl.run(ChannelImpl.java:363) > at > edu.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655) > at java.lang.Thread.run(Thread.java:534) |
From: noe <nej...@in...> - 2004-10-26 12:18:54
|
Is this a valid piece of code? Can I have a session secured with TLSProfile and then have a channel again with TLSProfile as in below? Or it is not meaningfull to do both? If I only choose to secure the session but not a channel everything is ok but when i try to do both(for session and channel) it gives me errors, plus if i choose to establish a channel with TLS like without a session TLS i again get errors! I am confused about this problem . I am using java version "1.4.2_06" and I have put the path for all the necessary jar files. Looks like not problem on installation and classpathing. Thanks for reading! sample code is taken from BeepCore Java example: try { session = TLSProfile.getDefaultInstance().startTLS((TCPSession) session); } catch (BEEPException e) { System.err.println("bing: Error unable to start TLS.\n\t" + e.getMessage()); if (privacy == PRIVACY_REQUIRED) return; } } // Start a channel for the echo profile Channel channel; try { //channel = session.startChannel(EchoProfile.ECHO_URI); channel = session.startChannel(TLSProfile.URI); //I added this line and it never works } catch (BEEPError e) { if (e.getCode() == 550) { System.err.println("bing: Error host does not support " + "echo profile"); // or TLS profile } |
From: David B. <da...@ve...> - 2004-10-26 02:34:09
|
noe wrote: > Hi Again, > I still have the below problem ,anybody has the solution ? > > > --------------------------------------------------------------------------------------------------------------------- > > P.S=Thank you very much David. I really helped me! > > Hello friends, > > When I run Beep example (Beepd,Bing) i can only use Echo Profile but > not the TLS one, it doesn't allow me to do that.Indeed, each time i try > to use TLS, i get a message indicating that it is not supported by the > host,but you know that it parses the xml doc and registers the profiles. > > Lastly, i didn't change anything in the example files, except the > "bing.java" is ,now, asking for a TLS profile instead of an Echo. > Has anybody got the same problem or a solution? This works out of the box for me. Are you certain that you didn't change anything? Can you use ethereal to see what beepd is advertising? -- David Blacka <da...@ve...> Sr. Engineer Verisign Applied Research |