File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes java.io.StreamCorruptedException: invalid stream header: FEEDFEED. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "java.io.StreamCorruptedException: invalid stream header: FEEDFEED." Watch "java.io.StreamCorruptedException: invalid stream header: FEEDFEED." New topic
Author

java.io.StreamCorruptedException: invalid stream header: FEEDFEED.

Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
Hi,
I have the public certificate (.cer).
Generated keystore using keytool utility.

Trying to encrypt the message using above .ks.

Got exception as
java.io.StreamCorruptedException: invalid stream header: FEEDFEED.
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:781)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:278)
at org.adrod.pointtel.controller.PointController.getPointtelage(PointController.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.StreamCorruptedException: invalid stream header: FEEDFEED.