Hi, I try to use JSX to serialize a Java class to xml and then to read it again. Deserialization does not have the intended result. What am I doing wrong. ...
142
Christopher TenHarmsel
ctenha56@...
May 3, 2001 6:17 am
Hi all, I'm writing an application for my programming languages course, and basically what it does is help the user keep track of data cd collections (backups,...
143
Brendan Macmillan
bren@...
May 3, 2001 9:11 am
Hi, Thanks a lot for reporting this problem - but what exactly is the problem? ... What result are you getting? It's great that you included your code (which ...
144
bren@...
May 3, 2001 9:24 am
Hi Christopher, It's an odd situation, as much of version 0.8 of JSX was developed specifically for DefaultMutableTreeNode... Could you please send your source...
145
craig
rideatrail@...
May 3, 2001 10:25 am
... I Think it would be great provided it was configurable. Also, maybe a messages to out or err that says it's sending a message to you. Speaking of...
146
Gonzales, Mark
margonz@...
May 3, 2001 2:26 pm
Hello, Is there within JSX or Hammer to do a "deserialization" with a criteria? For example, "where name='Joe39;". Or do you know of any other software that can ...
147
bren@...
May 3, 2001 2:29 pm
Hey Craig, ... Yes... but how would the configuration be done? I really want a no-brainer solution - I was thinking of having two versions available for...
148
bren@...
May 3, 2001 2:39 pm
... criteria? For ... that can ... It sounds like you are more interested in querying an existing XML file, rather than one created by JSX or Hammer....
149
Christopher TenHarmsel
ctenha56@...
May 3, 2001 8:57 pm
Ok, I've finally subscribed ^_^ I've packaged up my sources into a JAR file (hopfully) and attached it to this message. As of the version you've got with this...
150
Mark Collette
mcollett@...
May 3, 2001 11:04 pm
How about this idea. Create an interface LoggerIF that can receive error messages. Then create two classes that implement it: StdErrLogger, EmailLogger which...
151
bren@...
May 4, 2001 12:01 am
... it ... it'll ... Did you try making all your classes implement "Serializable", as I suggested? As I said, I am pretty sure that that will fix it. Cheers, ...
152
bren@...
May 4, 2001 12:08 am
... Your jar came through, but you didn't include the source code! Only the .class files. But before you send anything else *please* try implementing the ...
153
craig
rideatrail@...
May 4, 2001 12:08 am
... I would prefer a static api, but then again less code for a shipping application (seperate versions) may be better. ... Yeah, fat fingers and tiny text...
154
bren@...
May 4, 2001 12:35 am
Hi Mark, Thanks for the idea! It looks much more flexible to me, but also more complex. Maybe I don't fully get it? I've also added some more details of what...
155
bren@...
May 4, 2001 12:45 am
... The code factor is probably insignificant (less than 1 k); and so the static API could be included in both. The only real difference between the versions...
156
bren@...
May 4, 2001 12:55 am
OK! This is what I was looking for, with the idea of using hotmail as a STMP server - a really rocking project, I think! ...
157
Christopher TenHarmsel
ctenha56@...
May 4, 2001 3:28 am
Sorry about not sending the source, that was really dumb of me. ^_^ On a better note, as soon as I implemented serializable on my CDNode objects, it works like...
158
Mark Collette
mark@...
May 4, 2001 4:57 am
... I meant it would be easier for the end developer (me), not you ;) ... No, someone may want it to be totally off, with only their plugin getting notified....
159
Mark Collette
mark@...
May 4, 2001 4:58 am
Remember what happens every time some people find out that an application is sending their personal data over the net by default, without asking? They freak...
160
Brendan Macmillan
bren@...
May 4, 2001 10:59 am
... OK, you are talking about maximum configurability. People would like that. ... Well, the trick is that you don't actually get the exceptions... just...
161
Brendan Macmillan
bren@...
May 4, 2001 11:02 am
... Easy enough to do! ;-) ... Excellent! That's great to hear - I was really freaked out by your email at first, then realized that this was probably the...
162
bren@...
May 4, 2001 12:20 pm
Hi Mark, ... application ... asking? ... knows? Yes, that's what I'm thinking... my office mate (Greg) had a really cool idea - either have a GUI pop-up the...
163
Mark Collette
mark@...
May 4, 2001 4:44 pm
... Here's an idea I just had to do it on a thread by thread basis, every thread has to turn on() itself. If it never calls on, then your System.err 's...
164
Mark Collette
mark@...
May 4, 2001 4:46 pm
That sounds like a good way to do it. If it's so small, you may want to just pack all of the code into the jar, so they don't have to download it again. Mark...
165
rideatrail@...
May 4, 2001 6:10 pm
Problem When you serialize empty strings (o = new String();) and then deserialize and then serialize them again they become references to a common empty...
166
Brandon K. Wiley
cyb@...
May 4, 2001 8:05 pm
... Eek! That would be terrible! Then I wouldn't be able to serialize arbitrary objects, only the ones that implement serializable AND don't have any...
167
Mark Collette
mcollett@...
May 4, 2001 8:19 pm
Tough :) That was a joke, but on the serious side, it's probably good to require the class to implement an interface, since it then shows that the class abides...
168
levicm@...
May 4, 2001 11:04 pm
Hi, I am using the JSX and I have a problem in deserialization: getting value of class java.lang.String label-alias="23" , tag STRING ALIAS: label-alias="23" ,...
169
Brendan Macmillan
bren@...
May 5, 2001 4:38 am
Thanks Mark and Brandon, ... You are absolutely right, and also it provides security, by preventing your class from being serialized. However, it does seem...
170
Brendan Macmillan
bren@...
May 5, 2001 4:42 am
Hi Craig, All new String() objects refer to the same object? That sounds bad! Thanks for reporting it... I'm just wondering whether it might not (partly) be...