On Fri, 9 Jan 98 08:41:59 GMT, Mike Cowlishaw wrote:
Thanks for your answers.
>PERSISTENT storage .. you should be able to write out the Rexx object,
>and this will save the indexed strings, too. (Fairly sure I tested
>this.)
I have troubles with this one, good to hear its my fault. But which one?
Here is a little Persistent.nrx causing troubles. If I replace the indexed string with normal Rexx (or a
Hashtable) the class LongTermStorage is written to disk without Exception.
-- Persistent.nrx
pers = LongTermStorage()
os = ObjectOutputStream(FileOutputStream('storage.dat'))
os.writeObject(pers) -- WRITE OBJECTS WITH ONE CALL
os.close()
class LongTermStorage implements Serializable
properties private
counter = Rexx '4711' -- is ok
IndexedR = Rexx '' -- gives java.io.NotSerializableException: netrexx.lang.RexxNode
method LongTermStorage()
IndexedR['netrexx']='super' -- save this to disk
say counter
say IndexedR['netrexx']
********************* end Persistent.nrx
runnig this I obtain:
[D:\NetRexxbsp\NRWWW\temp]java Persistent
4711
super
java.io.NotSerializableException: netrexx.lang.RexxNode
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at java.util.Hashtable.writeObject(Compiled Code)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
at java.io.ObjectOutputStream.outputObject(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at Persistent.main(Compiled Code)
Ciao Kai
P.S. Unlike Mike I am VERY pleased with NetRexx and its progress. If only everything would be so
intuitive and stable. Apologies accepted ;=)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>