Search the web
Sign In
New User? Sign Up
JSX-ideas · Ideas on Java Serialization for XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Issue with styled text document containing components   Message List  
Reply | Forward Message #2188 of 2204 |
Re: Issue with styled text document containing components

Hi Ed,

OK, I've just had a look at the attachments, and I don't see any
obvious problems.

Because JOS behaves the same as JSX, it sounds like a bug in the code
in the UI classes that customize their serialization (either for
writing or reading). I suggest checking Sun's bug parade - they often
have workarounds, too.

It's very odd that XMLEncoder also fails - one commonality is your own
code, although normally this wouldn't cause serialization issues. But
do you subclass any UI components? It could be that such a subclass
must handle serialization in some way. A careful scan of the javadocs
should reveal this (esp the "serial form", hyperlinked just before the
constructors, methods etc are listed). But I think this is unlikely,
unless you are changing some UI fundamentals.

The XMLEncoder problem is also worth checking out in the bug parade.

Apart from that, I can only offer the old path of narrowing down the
problem, by methodically removing things one at a time, until the
problem goes away. If nothing else, it might reveal a workaround.

Let me know how you go.


cheers,
Brendan



Sat Mar 29, 2008 5:04 pm

egroups_yow
Offline Offline
Send Email Send Email

Forward
Message #2188 of 2204 |
Expand Messages Author Sort by Date

Hi Ed, A simple first test is to try it with JOS (ie. replace JSX.ObjectWriter with java.io.ObjectOutputStream and equivalent for reading) JSX emulates JOS, so...
Brendan Macmillan
egroups_yow
Offline Send Email
Mar 29, 2008
5:02 pm

Hi Ed, OK, I've just had a look at the attachments, and I don't see any obvious problems. Because JOS behaves the same as JSX, it sounds like a bug in the code...
Brendan Macmillan
egroups_yow
Offline Send Email
Mar 29, 2008
5:04 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help