[erlang-questions] java and erlang communication error

Pablo Álvarez Yáñez <>
Thu Oct 26 20:12:56 CEST 2006

I need to call java functions from an erlang program.
I have seen the examples into the ic lib directory (lib/ic-4.2.11). but if I
execute an erlang node calling the java node (or vice versa) I get the
following error:

----> In the java server:

Initialization exception :
java.io.IOException: expected 2 bytes, got EOF after 0 bytes
        at com.ericsson.otp.erlang.AbstractConnection.readSock(
        at com.ericsson.otp.erlang.AbstractConnection.read2BytePackage(
        at com.ericsson.otp.erlang.AbstractConnection.recvChallengeReply(
        at com.ericsson.otp.erlang.AbstractConnection.doAccept(
        at com.ericsson.otp.erlang.AbstractConnection.<init>(
        at com.ericsson.otp.erlang.OtpConnection.<init>(OtpConnection.java
        at com.ericsson.otp.erlang.OtpSelf.accept(OtpSelf.java:177)
        at server.main(server.java:39)

-----> In the erlang client
()1> client:call().
** exited: {{},
                         infinity]}} **

=ERROR REPORT==== 26-Oct-2006::20:02:42 ===
Error in process <0.41.0> on node '' with exit value:


However, I can get communication between the java client and server (and it
is supposed that they act as erlang nodes). I think it is some problem with
the type conversion. I am using the Erlang last release (R11B-1).
Does anybody know something about it, or how to solve the problem?

Pablo Álvarez Yáñez

Más de mi en http://azulneon.blogsome.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061026/fa47e828/attachment.html>

More information about the erlang-questions mailing list