Results 1 to 2 of 2
- 09-29-2011, 12:13 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 7
- Rep Power
- 0
Nonserializable Exception in java
I'm getting NonserializableException when I'm converting an object to bytestream. At the following point my code is failing.
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos=null;
oos = new ObjectOutputStream(bos);
//oos.flush();
oos.writeObject(o1);
//Here at the time of calling writeObject() it's giving me the error
Please suggest any solution . Thanks in advance.
- 09-29-2011, 12:35 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
unreported exception java.lang.Exception
By Marisabel in forum New To JavaReplies: 6Last Post: 05-01-2011, 03:21 AM -
unreported exception java.lang.Exception; must be caught or declared to be thrown
By arc_remiel in forum New To JavaReplies: 5Last Post: 02-14-2011, 11:39 PM -
Java Exception on Lotus Notes java agent
By BO2LA in forum Advanced JavaReplies: 0Last Post: 12-22-2010, 10:10 AM -
Exception in thread "main" java.lang Exception In InitializerError
By kenzo2009 in forum New To JavaReplies: 4Last Post: 10-25-2010, 07:42 PM -
Trouble with factory method - unhandled exception type Exception
By desmond5 in forum New To JavaReplies: 1Last Post: 03-08-2008, 06:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks