Hello,
using smartgwt2.5, Chrome.
I have a listgrid with some code to do an export:
I get the following stack trace, in my browser!
Any way i can make this not happen? Surely it's a bug?
EDIT. Did debugging to see the XML string that is being sent into the parseXML method in your XML class: (i can't see anything weird characters in my field, so not sure why i get the error)
using smartgwt2.5, Chrome.
I have a listgrid with some code to do an export:
Code:
DSRequest dsRequestProperties = new DSRequest(); dsRequestProperties.setExportAs(ExportFormat.CSV); dsRequestProperties.setExportDisplay(ExportDisplay.DOWNLOAD); dsRequestProperties.setAttribute("exportFilename", getExportFileName(reportType)); dsRequestProperties.setExportFields(reportFields); dsRequestProperties.setExportDelimiter(";"); reportGrid.exportClientData(dsRequestProperties);
Code:
com.isomorphic.xml.XMLParsingException: [ "XML parser fatal error: file '(in memory stream)' line 1: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1a) was found in the element content of the document." ] at com.isomorphic.xml.XML.parseXML(XML.java:205) at com.isomorphic.xml.XML.parseXML(XML.java:124) at com.isomorphic.xml.XML.toDSRecords(XML.java:289) at com.isomorphic.xml.XML.toDSRecords(XML.java:285) at com.isomorphic.xml.XML.toDSRecords(XML.java:277) at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:1704) at com.isomorphic.rpc.RPCManager.(RPCManager.java:286) at com.isomorphic.rpc.RPCManager.(RPCManager.java:271) at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:116) at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
EDIT. Did debugging to see the XML string that is being sent into the parseXML method in your XML class: (i can't see anything weird characters in my field, so not sure why i get the error)
Code:
<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">7</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><appID>isc_builtin</appID><className>builtin</className><methodName>downloadClientExport</methodName><arguments xsi:type="xsd:List"><elem xsi:type="xsd:List"><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Karpet HQ</Plats><In>2012-02-02 00:00</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:00:00</rawValue></Object><Ut>2012-02-02 00:07</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:07:31</rawValue></Object><Object _isc_name="Antal timmar">0.13</Object><Belopp>1299.87</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 00:10</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:10:12</rawValue></Object><Ut>2012-02-02 00:14</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:14:53</rawValue></Object><Object _isc_name="Antal timmar">0.08</Object><Belopp>799.92</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 00:19</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:19:36</rawValue></Object><Ut>2012-02-02 00:20</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:20:10</rawValue></Object><Object _isc_name="Antal timmar">0.01</Object><Belopp>99.99</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Learning Tree</Plats><In>2012-02-02 00:20</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-01T23:20:24</rawValue></Object><Ut>2012-02-02 01:02</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T00:02:31</rawValue></Object><Object _isc_name="Antal timmar">0.7</Object><Belopp>6999.3</Belopp><Notering>banan</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 01:02</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T00:02:54</rawValue></Object><Ut>2012-02-02 09:23</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:23:36</rawValue></Object><Object _isc_name="Antal timmar">8.35</Object><Belopp>83491.65</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 09:23</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:23:53</rawValue></Object><Ut>2012-02-02 09:24</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:24:08</rawValue></Object><Object _isc_name="Antal timmar">0</Object><Belopp>0</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 09:24</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:24:30</rawValue></Object><Ut>2012-02-02 09:34</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:34:42</rawValue></Object><Object _isc_name="Antal timmar">0.17</Object><Belopp>1699.83</Belopp><Notering>sffss</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 09:44</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:44:59</rawValue></Object><Ut>2012-02-02 09:53</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:53:05</rawValue></Object><Object _isc_name="Antal timmar">0.14</Object><Belopp>1399.86</Belopp><Notering>hello</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 09:58</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T08:58:01</rawValue></Object><Ut>2012-02-02 10:13</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:13:06</rawValue></Object><Object _isc_name="Antal timmar">0.25</Object><Belopp>2499.75</Belopp><Notering>afad</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 10:21</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:21:37</rawValue></Object><Ut>2012-02-02 10:21</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:21:54</rawValue></Object><Object _isc_name="Antal timmar">0</Object><Belopp>0</Belopp><Notering>asd</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 10:23</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:23:16</rawValue></Object><Ut>2012-02-02 10:24</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:24:30</rawValue></Object><Object _isc_name="Antal timmar">0.02</Object><Belopp>199.98</Belopp><Notering>as</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 10:41</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:41:02</rawValue></Object><Ut>2012-02-02 10:42</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:42:15</rawValue></Object><Object _isc_name="Antal timmar">0.02</Object><Belopp>199.98</Belopp><Notering>sfd</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 10:44</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:44:25</rawValue></Object><Ut>2012-02-02 10:44</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:44:54</rawValue></Object><Object _isc_name="Antal timmar">0.01</Object><Belopp>99.99</Belopp><Notering>aa</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 10:56</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:56:12</rawValue></Object><Ut>2012-02-02 10:57</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T09:57:18</rawValue></Object><Object _isc_name="Antal timmar">0.02</Object><Belopp>199.98</Belopp><Notering>aaa</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 11:02</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:02:17</rawValue></Object><Ut>2012-02-02 11:03</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:03:24</rawValue></Object><Object _isc_name="Antal timmar">0.02</Object><Belopp>199.98</Belopp><Notering>a</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 11:03</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:03:45</rawValue></Object><Ut>2012-02-02 11:06</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:06:06</rawValue></Object><Object _isc_name="Antal timmar">0.04</Object><Belopp>399.96</Belopp><Notering>aaa</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 11:09</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:09:31</rawValue></Object><Ut>2012-02-02 11:10</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T10:10:26</rawValue></Object><Object _isc_name="Antal timmar">0.02</Object><Belopp>199.98</Belopp><Notering>aaa</Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Källtorpsvägen1</Plats><In>2012-02-02 15:45</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T14:45:43</rawValue></Object><Ut>2012-02-02 15:48</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T14:48:36</rawValue></Object><Object _isc_name="Antal timmar">0.05</Object><Belopp>499.95</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 15:48</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T14:48:43</rawValue></Object><Ut>2012-02-02 15:48</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T14:48:52</rawValue></Object><Object _isc_name="Antal timmar">0</Object><Belopp>0</Belopp><Notering> </Notering></elem><elem xsi:type="xsd:Object"><Namn>Mathias af Jochnick</Namn><Plats>Kungsholmstorg 11</Plats><In>2012-02-02 16:57</In><Object _isc_name="In$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T15:57:18</rawValue></Object><Ut>2012-02-02 23:59</Ut><Object _isc_name="Ut$style" xsi:type="xsd:Object"><rawValue xsi:type="xsd:datetime">2012-02-02T22:59:59</rawValue></Object><Object _isc_name="Antal timmar">7.04</Object><Belopp>70392.96</Belopp><Notering> </Notering></elem></elem><elem>csv</elem><elem>nubaexport_users_2012_02_04-2012_02_04.csv</elem><elem>download</elem><elem xsi:type="xsd:Object"><exportAs>csv</exportAs><exportDelimiter>;</exportDelimiter><exportFields xsi:type="xsd:List"><elem>Namn</elem><elem>Plats</elem><elem>In</elem><elem>Ut</elem><elem>Antal timmar</elem><elem>Belopp</elem><elem>Notering</elem></exportFields></elem></arguments><is_ISC_RPC_DMI xsi:type="xsd:boolean">true</is_ISC_RPC_DMI></elem></operations><jscallback>parent.isc.Comm.hiddenFrameReply(7,results)</jscallback></transaction>
Comment