Mr. Kramp,
I am in urgent need of a Java BEEP implementation to support an IRIS development initiative. To that end, I downloaded beeplite 0.9.6.
I have one problem but I don’t know if its proper to ask you about it directly. I would really appreciate if you can direct me to better resources or help me on this problem.
I have been able to run the examples for the EchoProfile, but the moment I change the URI to http://iana.org/beep/iris1/dreg1, I get an unsupported profile exception. If I make the URI http://iana.org/beep/iris, I am fine. It’s always the trailing digit that seems to be causing the problem.
Thank you very much.
Suteertha
I am pasting the server trace followed by the client trace as below:
DEBUG Registry (main) New StartChannelListener for http://iana.org/beep/iris1/dreg1.
DEBUG SSLite (main) Anonymous server with default cipher suite.
DEBUG Registry (main) New StartChannelListener for http://iana.org/beep/TLS.
DEBUG Session (Thread-0) Greeting sent.
DEBUG Channel (Thread-0) Flushing messages: com.ibm.beeplite.MessageStatus@ab95e6/null
DEBUG Frame (Thread-0) Header: RPY 0 0 . 0 101
MSGLOG TCP (Thread-0) Sent: RPY 0 0 . 0 101
Content-Type: application/beep+xml
<greeting><profile uri='http://iana.org/beep/TLS' /></greeting>END
DEBUG TCP (tcp1) Processing next frame (R).
DEBUG Frame (tcp1) Processing BEEP frame: RPY 0 0 . 0 59
VERBOSE TCP (tcp1) Message payload: [B@506411
MSGLOG TCP (tcp1) Read core frame: RPY 0 0 . 0 59
Content-Type: application/beep+xml
<greeting></greeting>
DEBUG Channel (tcp1) Received RPY/ERR (0).
DEBUG TCP (tcp1) Updated SEQ: channel = 0, seqno = 59, used = 0, size = 4096
DEBUG TCP (tcp1) Sent: SEQ 0 59 4096
DEBUG TCP (tcp1) Processing next frame (S).
DEBUG TCP (tcp1) Read SEQ header: SEQ 0 101 4096
DEBUG Channel (tcp1) Flushing messages: null/null
DEBUG TCP (tcp1) Processing next frame (M).
DEBUG Frame (tcp1) Processing BEEP frame: MSG 0 1 . 59 137
VERBOSE TCP (tcp1) Message payload: [B@9ed927
MSGLOG TCP (tcp1) Read core frame: MSG 0 1 . 59 137
Content-Type: application/beep+xml
<start number='1' ><profile uri='http://iana.org/beep/TLS' ><![CDATA
<ready />]></profile></start>
DEBUG Channel (tcp1) Received MSG (1).
DEBUG TCP (tcp1) Updated SEQ: channel = 0, seqno = 196, used = 0, size = 4096
DEBUG TCP (tcp1) Sent: SEQ 0 196 4096
DEBUG Session (tcp1) Start message received.
DEBUG Session (tcp1) Starting new channel with profile http://iana.org/beep/TLS (null).
DEBUG Channel (tcp1) Flushing messages: com.ibm.beeplite.MessageStatus@c2a132/null
DEBUG Frame (tcp1) Header: RPY 0 1 . 101 111
MSGLOG TCP (tcp1) Sent: RPY 0 1 . 101 111
Content-Type: application/beep+xml
<profile uri='http://iana.org/beep/TLS'><![CDATA
<proceed />]></profile>END
DEBUG SSLite (tcp1) Connection confirmation request.
DEBUG SSLite (tcp1) Tuning reset.
DEBUG Registry (tcp1) Removing StartChannelListener for http://iana.org/beep/TLS.
DEBUG Session (tcp1) Tuning reset.
DEBUG TCP (tcp1) Reset as listener.
DEBUG Session (tcp1) Greeting sent.
DEBUG Channel (tcp1) Flushing messages: com.ibm.beeplite.MessageStatus@1fdc96c/null
DEBUG Frame (tcp1) Header: RPY 0 0 . 0 109
MSGLOG TCP (tcp1) Sent: RPY 0 0 . 0 109
Content-Type: application/beep+xml
<greeting><profile uri='http://iana.org/beep/iris1/dreg1' /></greeting>END
DEBUG TCP (tcp2) Processing next frame (R).
DEBUG Frame (tcp2) Processing BEEP frame: RPY 0 0 . 0 59
VERBOSE TCP (tcp2) Message payload: [B@b2fd8f
MSGLOG TCP (tcp2) Read core frame: RPY 0 0 . 0 59
Content-Type: application/beep+xml
<greeting></greeting>
DEBUG Channel (tcp2) Received RPY/ERR (0).
DEBUG TCP (tcp2) Updated SEQ: channel = 0, seqno = 59, used = 0, size = 4096
DEBUG TCP (tcp2) Sent: SEQ 0 59 4096
DEBUG TCP (tcp1) Session reader exiting (2).
DEBUG TCP (tcp2) Processing next frame (S).
DEBUG TCP (tcp2) Read SEQ header: SEQ 0 109 4096
DEBUG Channel (tcp2) Flushing messages: null/null
PANIC Session (tcp2) Terminating session (TCP session reader failed; Connection reset).
DEBUG TCP (tcp2) Closing socket.
DEBUG TCP (tcp2) Session reader exiting (9).
==========================================================================================
DEBUG Session (main) Greeting sent.
DEBUG Channel (main) Flushing messages: com.ibm.beeplite.MessageStatus@82c01f/null
DEBUG Frame (main) Header: RPY 0 0 . 0 59
MSGLOG TCP (main) Sent: RPY 0 0 . 0 59
Content-Type: application/beep+xml
<greeting></greeting>END
DEBUG TCP (tcp1) Processing next frame (R).
DEBUG Frame (tcp1) Processing BEEP frame: RPY 0 0 . 0 101
VERBOSE TCP (tcp1) Message payload: [B@1fdc96c
MSGLOG TCP (tcp1) Read core frame: RPY 0 0 . 0 101
Content-Type: application/beep+xml
<greeting><profile uri='http://iana.org/beep/TLS' /></greeting>
DEBUG Channel (tcp1) Received RPY/ERR (0).
DEBUG TCP (tcp1) Updated SEQ: channel = 0, seqno = 101, used = 0, size = 4096
DEBUG TCP (tcp1) Sent: SEQ 0 101 4096
DEBUG Session (tcp1) Greeting profile: http://iana.org/beep/TLS
DEBUG TCP (tcp1) Processing next frame (S).
DEBUG Session (main) Starting new channel.
DEBUG TCP (tcp1) Read SEQ header: SEQ 0 59 4096
DEBUG Session (main) Start channel profile: http://iana.org/beep/TLS
DEBUG Channel (tcp1) Flushing messages: null/null
DEBUG Channel (main) Flushing messages: com.ibm.beeplite.MessageStatus@158b649/null
DEBUG Frame (main) Header: MSG 0 1 . 59 137
MSGLOG TCP (main) Sent: MSG 0 1 . 59 137
Content-Type: application/beep+xml
<start number='1' ><profile uri='http://iana.org/beep/TLS' ><![CDATA
<ready />]></profile></start>END
DEBUG TCP (tcp1) Processing next frame (S).
DEBUG TCP (tcp1) Read SEQ header: SEQ 0 196 4096
DEBUG Channel (tcp1) Flushing messages: null/null
DEBUG TCP (tcp1) Processing next frame (R).
DEBUG Frame (tcp1) Processing BEEP frame: RPY 0 1 . 101 111
VERBOSE TCP (tcp1) Message payload: [B@173831b
MSGLOG TCP (tcp1) Read core frame: RPY 0 1 . 101 111
Content-Type: application/beep+xml
<profile uri='http://iana.org/beep/TLS'><![CDATA
<proceed />]></profile>
DEBUG Channel (tcp1) Received RPY/ERR (1).
DEBUG TCP (tcp1) Updated SEQ: channel = 0, seqno = 212, used = 0, size = 4096
DEBUG TCP (tcp1) Session reader exiting (5).
DEBUG SSLite (main) No peer authentication notification.
No peer authentication, allowing anonymous TLS.
DEBUG SSLite (main) Connection confirmation request.
DEBUG Session (main) Tuning reset.
DEBUG TCP (main) Reset as initiator.
DEBUG Session (main) Greeting sent.
DEBUG Channel (main) Flushing messages: com.ibm.beeplite.MessageStatus@bf2d5e/null
DEBUG Frame (main) Header: RPY 0 0 . 0 59
MSGLOG TCP (main) Sent: RPY 0 0 . 0 59
Content-Type: application/beep+xml
<greeting></greeting>END
DEBUG TCP (tcp2) Processing next frame (R).
DEBUG Frame (tcp2) Processing BEEP frame: RPY 0 0 . 0 109
VERBOSE TCP (tcp2) Message payload: [B@13bad12
MSGLOG TCP (tcp2) Read core frame: RPY 0 0 . 0 109
Content-Type: application/beep+xml
<greeting><profile uri='http://iana.org/beep/iris1/dreg1' /></greeting>
DEBUG Channel (tcp2) Received RPY/ERR (0).
DEBUG TCP (tcp2) Updated SEQ: channel = 0, seqno = 109, used = 0, size = 4096
DEBUG TCP (tcp2) Sent: SEQ 0 109 4096
DEBUG Session (tcp2) Greeting profile: http://iana.org/beep/iris
Starting new channel using IRISProfile
DEBUG Session (main) Starting new channel.
Exception in thread "main" com.ibm.beeplite.BEEPException: all profiles unsupported by peer
at com.ibm.beeplite.Session.a(SourceFile:772)
DEBUG TCP (tcp2) Processing next frame (S).
DEBUG TCP (tcp2) Read SEQ header: SEQ 0 59 4096
DEBUG Channel (tcp2) Flushing messages: null/null
at com.ibm.beeplite.Session.startChannel(SourceFile:195)
at com.telcordia.tutorial.beeplite.IRISOnBeepOnTCPClient.startChannel(IRISOnBeepOnTCPClient.java:101)
at com.telcordia.tutorial.beeplite.IRISOnBeepOnTCPClient.setUpComm(IRISOnBeepOnTCPClient.java:70)
at com.telcordia.tutorial.beeplite.IRISOnBeepOnTCPClientMain.main(IRISOnBeepOnTCPClientMain.java:25)