invalid data on distribution channel, offending packet

Tony Rogvall tony@REDACTED
Sat Dec 4 10:19:56 CET 2004


2004-12-03 kl. 12.49 skrev Hector Rivas Gandara:

>
> Hi,
>
> I'm working with EI library, using it in C++, but I have some problems:
>
> I'm using ei_rpc function family, and I'm trying to call this funcion  
> in the erlang node:
>
> -module(replyserv).
> -export[imprime/1]).
> imprime(X) ->
>   io:format("print: ~w~n",[X]),
>   {echo, X}.
>
> I send the rpc (using ei_rpc_to or ei_rpc), but it does not call the  
> function (No print), and fails in ei_rpc_from (if using ei_rpc_to),  
> printint the following message in the erlang console:
>
> Got invalid data on distribution channel, offending packet is:  
> <<112,131,104,4,97,6,103,100,0,24,112,101,112,105,116,111,64,116,114,97 
> ,110,116,111,114,46,108,102,99,105,97,46,112,114,105,0,0,0,3,0,0,0,0,0, 
> 100,0,0,100,0,3,114,101,120,131,104,2,103,100,0,24,112,101,112,105,116, 
> 111,64,116,114,97,110,116,111,114,46,108,102,99,105,97,46,112,114,105,0 
> ,0,0,3,0,0,0,0,0,104,5,100,0,4,99,97,108,108,100,0,9,114,101,112,108,12 
> 1,115,101,114,118,100,0,7,105,109,112,114,105,109,101,131,108,0,0,0,1,1 
> 00,0,4,72,111,108,97,106,100,0,4,117,115,101,114>>
>

The message is not properly aligned 131 is the "version magic"  and  
should be the first byte,
this mens that there is a problem with the message sending, I think I  
answered to a similar problem
recently. Check you C code (are you using threads?)

Good luck

/Tony




More information about the erlang-questions mailing list