My application uses SmartClient- Struts2 Configuration.
I am uploading a file using a datasource/DynamicForm with an attribute defined as binary.
When I upload the file on the screen the data is submited to Action Class successfully.
After Submission the user is expected to be on the same page. So when user again selects a new file and submits the data as modification I get an XML Error as
=== 2009-04-13 17:43:08,130 [ng)'] ERROR XML - XML parser fatal error: file '(in
memory stream)' line 1: org.xml.sax.SAXParseException: XML document structures
must start and end within the same entity.
=== 2009-04-13 17:43:08,130 [ng)'] DEBUG XML - Exception thrown during XML parsi
ng
com.isomorphic.xml.XMLParsingException: [
"XML parser fatal error: file '(in memory stream)' line 1: org.xml.sax.SAXParse
Exception: XML document structures must start and end within the same entity."]
at com.isomorphic.xml.XML.parseXML(XML.java:157)
at com.isomorphic.xml.XML.toDSRecords(XML.java:241)
at com.isomorphic.xml.XML.toDSRecords(XML.java:237)
at com.isomorphic.xml.XML.toDSRecords(XML.java:229)
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:923)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:225)
at com.db.tf.dss.web.action.TFDSSBaseAction.init(TFDSSBaseAction.java:12
3)
This Error Comes only during the second Call and not during the first.
I am uploading a file using a datasource/DynamicForm with an attribute defined as binary.
When I upload the file on the screen the data is submited to Action Class successfully.
After Submission the user is expected to be on the same page. So when user again selects a new file and submits the data as modification I get an XML Error as
=== 2009-04-13 17:43:08,130 [ng)'] ERROR XML - XML parser fatal error: file '(in
memory stream)' line 1: org.xml.sax.SAXParseException: XML document structures
must start and end within the same entity.
=== 2009-04-13 17:43:08,130 [ng)'] DEBUG XML - Exception thrown during XML parsi
ng
com.isomorphic.xml.XMLParsingException: [
"XML parser fatal error: file '(in memory stream)' line 1: org.xml.sax.SAXParse
Exception: XML document structures must start and end within the same entity."]
at com.isomorphic.xml.XML.parseXML(XML.java:157)
at com.isomorphic.xml.XML.toDSRecords(XML.java:241)
at com.isomorphic.xml.XML.toDSRecords(XML.java:237)
at com.isomorphic.xml.XML.toDSRecords(XML.java:229)
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:923)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:225)
at com.db.tf.dss.web.action.TFDSSBaseAction.init(TFDSSBaseAction.java:12
3)
This Error Comes only during the second Call and not during the first.
Comment