Hello:
We are a developing a J2EE based web application. The combination of Struts and STxx
is used to handle the UI interaction with the server. The Castor is used to convert
the data objects into XML and STxx transforms it into HTML using XSL. There is no
mapping file. I guess this would not be too unfamiliar architecture for the folks at
castor.org.
The development env consists of Eclipse 3.x and Tomcat 5.0.19 with Sysdeo plugin
3.0.0. Things have been good though we have been seeing some strange results with the
XML marshaling. The Marshaller creates XML of an object successfully for the first
time. However, later on changes to the state of the same object is not showing up in
the XML.
I stepped through the program in debug sessions and noticed that the state of the
object to be marshaled changes during the marshaling process. Following is the code
snippet used -
try
{
Marshaller marshaller = new Marshaller(writer);
marshaller.setSuppressXSIType(true);
marshaller.setValidation(false);
marshaller.setDebug(true);
marshaller.marshal(object);
writer.flush();
marshaller = null;
}
The marshaller.marshall(object) changes the state of the object. The altered state of
the object was correct at one time but not any more. This leads us to believe that
the object is cached by some thing. The cache does not refresh no matter what we do.
1. Rebuilt the whole application.
2. Restarted Tomcat
3. Restarted Eclipse
4. Restarted the machine.
I wonder if anyone ran into this kind of problem. Any pointers would greatly help us.
We have been spending about 4 days fruitlessly on this problem. I can provide more
code snippets if necessary.
Thanks
Velusamy K. Velu
(614) 728-0017
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user