title: reverse engineer  java serialization
body: <p>First let me explain our project.</p>
  
  <p>We have a client server system. Both the client and server are implemented in java. We are reimplementing the client in C keeping the interfaces same and keeping the server still in java. </p>
  
  <p>The way client and server communicate is through java dynamic proxy with remoteid being a network connection. Now, client calls the methods which are invoked on the server. There is obviously the serialization and deserialization going. I want to implement the same format that server expects in C. Being a C hacker I, opened up the packet through wireshark and started mapping actual bytes in java code, which has not helped me much. There are few bytes that I can not map in the code(obviously I am not looking at the correct code). </p>
  
  <p>I havent fully understood whether java dynamic proxy serializes automatically with its libraries or do you need to implement some functions in the class, so that things can be written to the wire.</p>
  
  <p>Can anyone suggest me more human approach to such a problem? </p>
  
  <p>PS: I am not very good with java programming.</p>