• 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 NSOutlineView subclass throws NSArchiverArchiveInconsistency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java NSOutlineView subclass throws NSArchiverArchiveInconsistency?


  • Subject: Re: Java NSOutlineView subclass throws NSArchiverArchiveInconsistency?
  • From: Bryan Blackburn <email@hidden>
  • Date: Mon, 13 Jan 2003 22:23:50 -0700
  • Mail-followup-to: email@hidden

Not sure if this will help with the true problem, but I can explain what
those errors mean. NSArchiver and NSUnarchiver (at least in Objective-C,
not sure if Java is identical) use type encodings to specify or determine
what is being archived or unarchived. These are simple strings (like "@" and
"C"), and a full list can be found in the Objective-C docs (long URL:
http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/4objc_runtime_overview/Type_Encodings.html).
So it sounds like the archiving process is off, or confused, or something
like that.

Bryan


On Jan 13, 2003 22:21, Rams stated:
> Hi all,
>
> I've joined the list with hopes that someone here will be able to help
> me solve this problem. I'm building an app with Cocoa/Java and in the
> process of porting the DragNDropOutlineView example with the developer
> tools, I have created a subclass of NSOutlineView. Problem is, when I
> try to run the thing I get
>
> 2003-01-13 22:04:10.856 MyAppName[2479] AppKitJava: uncaught exception
> NSArchiverArchiveInconsistency (*** file inconsistency: read '@',
> expecting 'C')
> 2003-01-13 22:04:10.859 MyAppName[2479] AppKitJava: exception = ***
> file inconsistency: read '@', expecting 'C'
> 2003-01-13 22:04:10.867 MyAppName[2479] AppKitJava: terminating.
>
> MyAppName has exited with status 1.
>
> :-/ Anyone have a clue as to what that means?? Keep in mind, I'm a
> java guy who knows just enough about Obj-C to be dangerous :-) I have
> managed to port the ImageAndTextCell class and it seems to work quite
> nicely, but throws strange exceptions too.
>
> 2003-01-09 00:01:55.149 MyAppName[2444] ObjCJava: can't forward method
> setImage:
> 2003-01-09 00:01:56.684 MyAppName[2444] ObjCJava: no java object for
> 0x1e5fae0<ImageAndTextCell>
> 2003-01-09 00:01:56.684 MyAppName[2444] ObjCJava: can't forward method
> description
>
> But it works, so I really don't care! ;-) I've gotten dink from the
> java-dev list so I figured I would give this list a shot... Any
> assistance will be greatly appreciated.
> --
>
> "Intel Inside" - It's not a marketing gimmick, it's a warning label.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Java NSOutlineView subclass throws NSArchiverArchiveInconsistency? (From: Rams <email@hidden>)

  • Prev by Date: Re: WebCore and PDF
  • Next by Date: Re: Apple and Cocoa (why don't they eat their own dog food?)
  • Previous by thread: Java NSOutlineView subclass throws NSArchiverArchiveInconsistency?
  • Next by thread: Unicode canonical decomposed form and text encoding
  • Index(es):
    • Date
    • Thread