JInterface - Peer authentication error

Stefan Willehadson <>
Mon Aug 21 16:37:03 CEST 2000


I've tried to connect an Erlang node to a Java node using JInterface
(Erlang R6B and JDK 1.2.2). There seems to be a problem with the
authentication when I try to connect the Erlang node to the Java node.
The OtpConnection trace and the stack trace can be found below.

****** The trace from the creation and publishing of the Java node (foo)
-> PUBLISH (r4)  port=3219
<- OK

****** Upon a connection attempt from the erlang node (bar)
<- ACCEPT FROM CAYENNE/10.1.42.6:3227
<- HANDSHAKE ntype=109 dist=5 remote=
-> HANDSHAKE sendStatus status=ok local=
-> HANDSHAKE sendChallenge flags=4 dist=5 challenge=-1435914638 local=

****** The stacktrace 
com.ericsson.otp.erlang.OtpAuthException: Peer authentication error.
        at com.ericsson.otp.erlang.OtpConnection.recvChallengeReply(OtpConnection.java:1297)
        at com.ericsson.otp.erlang.OtpConnection.doAccept(OtpConnection.java:1000)
        at com.ericsson.otp.erlang.OtpConnection.<init>(OtpConnection.java:162)
        at com.ericsson.otp.erlang.OtpServer.accept(OtpServer.java:189)
        at Test.activate(Test.java:18)
        at Test.main(Test.java:26)

I use the same cookie on both nodes.....

Can anyone help?

/stefan 
-------------------------------------------------------------------
Stefan Willehadson               mobile: +46 707961474
CellPoint Systems       www.cellpt.com        office: +46 86332726



More information about the erlang-questions mailing list