Hello,<br>I need to call java functions from an erlang program.<br>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:
<br><br>----> In the java server:<br><br>Initialization exception :<br>java.io.IOException: expected 2 bytes, got EOF after 0 bytes<br>        at com.ericsson.otp.erlang.AbstractConnection.readSock(AbstractConnection.java
:861)<br>        at com.ericsson.otp.erlang.AbstractConnection.read2BytePackage(AbstractConnection.java:1037)<br>        at com.ericsson.otp.erlang.AbstractConnection.recvChallengeReply(AbstractConnection.java:1186)<br>        at 
com.ericsson.otp.erlang.AbstractConnection.doAccept(AbstractConnection.java:875)<br>        at com.ericsson.otp.erlang.AbstractConnection.<init>(AbstractConnection.java:153)<br>        at com.ericsson.otp.erlang.OtpConnection
.<init>(OtpConnection.java:63)<br>        at com.ericsson.otp.erlang.OtpSelf.accept(OtpSelf.java:177)<br>        at server.main(server.java:39)<br clear="all"><br>-----> In the erlang client<br>(client@localhost)1> client:call().
<br>Init...ok<br>** exited: {{nodedown,babbis@localhost},<br>            {gen_server,call,<br>                        [{rmod_random_impl,babbis@localhost},<br>                         rmod_random_produce,<br>                         infinity]}} **
<br><br>=ERROR REPORT==== 26-Oct-2006::20:02:42 ===<br>Error in process <0.41.0> on node 'client@localhost' with exit value: {badarg,[{erlang,list_to_existing_atom,["babbis@portatil-infernal"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]}
<br><br>********************************<br><br>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). 
<br>Does anybody know something about it, or how to solve the problem?<br><br>Thanks<br>-- <br>Pablo Álvarez Yáńez<br><br>Más de mi en <a href="http://azulneon.blogsome.com">http://azulneon.blogsome.com</a>