• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.io.StreamCorruptedException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.io.StreamCorruptedException


  • Subject: Re: java.io.StreamCorruptedException
  • From: Ricardo Strausz <email@hidden>
  • Date: Mon, 25 Aug 2003 17:47:29 -0500

It seems that NSData is not jumping the Java-Bridge gracefully...
had someone had this problem?
any work arround?
Dino

On lunes, agos 18, 2003, at 19:48 America/Mexico_City, Ricardo Strausz wrote:

Had someone seen this error before?
2003-08-18 19:43:29.006 Facturas[1865] java/io/StreamCorruptedException
Stack Trace:
java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845 )
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164 6
)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845 )
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164 6
)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)



It was produce with the following code:

- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType
{
// Insert code here to read your document from the given data. You
can also choose to override -loadFileWrapperRepresentation:ofType: or
-readFromFile:ofType: instead.


// EOEditingContext* ec is supposed to exists
// EODisplayGroup* dgDoc is supposed to exists

NSKeyedUnarchiver* unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingWithData:data];
EOGenericRecord* eo = [unarchiver decodeObjectForKey:@"Factura"];
[unarchiver finishDecoding];
[unarchiver release];
[ec insertObject:eo];
[dgDoc insertObjectAtIndex:eo :0];
return YES;
}
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >java.io.StreamCorruptedException (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: Can Webobjects Do This..
  • Next by Date: Re: 4.5 question - _holdMe array trick
  • Previous by thread: java.io.StreamCorruptedException
  • Next by thread: Can't view my classes or files in project builder after crash
  • Index(es):
    • Date
    • Thread