my dog learned polymorphism*
The moose likes I/O and Streams and the fly likes invalid stream header: C2ACC3AD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark " invalid stream header: C2ACC3AD" Watch " invalid stream header: C2ACC3AD" New topic
Author invalid stream header: C2ACC3AD

prasad phatak

Joined: Sep 18, 2011
Posts: 5
Hi All,
please help me with this,the code prompt error on the console invalid stream header: C2ACC3AD
at Source)
at<init>(Unknown Source)
at com.etp.dim.ui.CreateMapScreen$1.mouseClicked(
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at Source)

When I tried to debugg the code,I found out its basically trying to get some data from a .mpf file. Can someone please me a precise reason why is this happening and an appropriate solution too.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19653

Did you create this file with an ObjectOutputStream? If the answer is no then you should not use ObjectInputStream to read it. It requires some header data which is written by ObjectOutputStream but apparently is missing in your file.

How To Ask Questions How To Answer Questions
subject: invalid stream header: C2ACC3AD
Similar Threads
display CGM images iingn web browser with out using any viewer in java
null pointer exception when clicking on JCheckbox
unexpected exception:please help
soap and utf-8 encoding issue