[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newly created objects created have invalid state



Win/NT 4.0, JDK 1.3, ozone CVS 26 Sept

Some curious behavior is happening with the newest version of ozne that I 
haven't noticed before.

The application has a questionnaire with a GUI interface. When the 
application is run, the questionnaire appears with the responses from the 
last program execution. However the questionnaire results are not being 
stored by the application. The items on the questionnaire are created with 
each execution of the program but they have a state from the user entries of 
the previous execution. There should be no record of the user entries in the 
ozone database. They aren't reachable from any root entry and there has been 
no database read of any object from which one could navigate to them.

The object gets created by:

qsItemTmp = (QuestionnaireSessionItem) 
database().createObject(QuestionnaireSessionItemImpl.class.getName(), 
0,null,"AU.com.harrison.innerview.questionnaire.QuestionnaireItem|AU.com.harrison.innerview.questionnaire.QuestionnaireSessionGroup", 
new Object[] {qItem, this});

Immediately after the execution of this statement the qsItemTmp object has a 
value in its response attribute which is the same as the one that was set by 
user entry during the previous program execution.

During the creation of this object the attribute value is has not yet been 
set when the onCreate() method is called. There are no calls to the method 
that sets the attribute, and the value is not in the createObject() 
parameters.

I don't know if it is significant but a newly created database has a 
nameTable.wizard file which is missing after the program has executed. The 
log file has the following entries:

[info] (816) WizardStore: startup...
[info] (816) WizardStore:     no valid idTable file found...
[info] (816) WizardStore:     recovering...
[info] (816) WizardStore:     cluster: 77
[info] (816) WizardStore:         142 containers
[info] (816) WizardStore:     cluster: 3010
[info] (816) WizardStore:         103 containers
[info] (816) WizardStore:     cluster: 5
[info] (816) WizardStore:         369 containers
[info] (816) WizardStore:     614 IDs, 14 name(s))

How can a newly created object have the state of an instance from a previous 
session without any explicit read and update?

thanks,

don


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.