-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
It seems encon doesn't survive while decoding->encoding+serializing PIDs in format of #PID<0.639.0>
Exception:
io.appulse.encon.terms.exception.IllegalErlangTermTypeException: Class io.appulse.encon.ter
ms.type.ErlangAtom doesn't fit to term type ATOM
Steps to reproduce:
- In Elixir: File.write!("pid.term", :erlang.term_to_binary(self))
- On Java side:
Read the first byte of "pid.term" file (it's 131) - Read the rest into ByteBuf
- Decode bytebuf into proper java class with ErlangTerm/newInstance
- Encode/serialize it to another ByteBuf. Get the error above.
I suspect that the atom for node name of such PID constructs with incorrect value field:
#object[io.appulse.encon.terms.type.ErlangAtom 0x1c433450 "ErlangAtom(value=nu
ll, bytes=[110, 111, 110, 111, 100, 101, 64, 110, 111, 104, 111, 115, 116], ch
arset=ISO-8859-1)"]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working