Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Hi all I am getting the below error when i tried to read the content form the byte. I am gettting the byte array from the services method (backend).
java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253) at com.cccis.interfaces.iatpa.reprocess.POC.PayLoad.payLoadClient.convertBytesToObjectMsg(payLoadClient.java:41) at com.cccis.interfaces.iatpa.reprocess.POC.PayLoad.payLoadClient.main(payLoadClient.java:83) Exception in thread "main"
ObjectInputStream is used to convert the set of bytes into object. It cannot convert any arbitrary set of bytes into an object. It has its own format. Usually you would use ObjectInputStream on stream which is created by ObjectOutputStream. So here the stream you are using (bArr) not in a format expected by ObjectInputStream.
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth