This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > October 2005 > XForms - External instance XML data size limit? 64K?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XForms - External instance XML data size limit? 64K?
Aurelian

2005-10-12, 6:33 pm

Hi,

While trying to understand why repeat seems to cause a "memory leak" I
stumbled on the following situation illustrated in this WAR:

I'm using

<xf:submission id="__get_schedule"
action="http://localhost:8080/XFSchMgr/XMLData"
method="post" ref="instance('__schedule_selector')"
replace="instance" instance="__schedule" />

to retrieve external instance data. Data is a mock schedule randomly
generated by the attached servlet and I tried to retrieve several days
of it.

I can retrieve 5 days worth of "schedule data" (roughly 64000 bytes) but
I get an xforms-submit-error for 6 days (roughly 78000 bytes).

Is there a limitation on the size of the external instance data?



To reproduce: deploy the war (I tested on Tomcat v5.5 with J2SE 1.5),
point the browser to http://localhost:8080/XFIssues/xmlSizeLimit.xhtml
and click the button. Then edit the HTML file to retrieve 5 days instead
on 6 and try again. The servlet would write the XML size to System.out.


Version stuff:
Firefox version: 1.5 beta 1 (Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4)

XForms plugin version: 0.2 (xforms-win-ff15beta1.xpi downloaded from
XForms site on Sep. 26, 2005).

Best Regards,
Aurelian Penciu

Allan Beaufour

2005-10-14, 6:46 pm

Wednesday 12 October 2005 22:59 skrev Aurelian:
> Is there a limitation on the size of the external instance data?


Not as far as I know. I've just tried to load an instance that's 88K big and
repeat over the 7500 elements. It's not fast, but it works.

--
Allan Beaufour
Linux Software Engineer

Novell, Inc.
Software for the Open Enterprise
www.novell.com/open
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews