dcsimg
Java serialization from Standard input
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Guillem_Valls
Posted On:   Wednesday, March 28, 2001 08:15 AM

Hello I have 2 java processes. The first one starts the other using "Runtime.exec". The first one, serializes a java Object to the Process object Standard output stream (Process p; p.getOutputStream()). The second one, reads its Standard Input Stream and deserializes what it reads. First step is made correctly. When the second step tries to deserialize the data it gets, occurs an error: where first process wrote a '0A' (LF), second process gets a '0D0A' (CR-LF). I'm executing in a win32 system. Does anyone know how to avoid this trouble? Thanks    More>>

Hello

I have 2 java processes. The first one starts the other
using "Runtime.exec".
The first one, serializes a java Object to the Process object
Standard output stream (Process p; p.getOutputStream()).
The second one, reads its Standard Input Stream
and deserializes what it reads.
First step is made correctly.
When the second step tries to deserialize
the data it gets, occurs an error:
where first process wrote a '0A' (LF),
second process gets a '0D0A' (CR-LF).

I'm executing in a win32 system.

Does anyone know how to avoid this trouble?

Thanks

   <<Less
About | Sitemap | Contact