Hi I'm building an XForm for adding metadata to documents described by URIs.
The issue is that the Orbeon AJAX code displays the "Loading…" indicator forever when you select a "document group" from the dropdown. This is caused by the <xforms:action ev:event="xforms-select"/> which causes the insertion of part of a metadata template instance into the main instance. The insertion works fine it seems (the UI is updated), so I suspect Orbeon is ending up in an infinite loop somehow. i.e. the UI update causes events to fire that repeat the processing indefinitely. I've also got a sneaking suspicion that it could be related to the fact that it's inside an <xforms:repeat/>. I have no real evidence to back my suspicions really. I would really appreciate any advise anyone can offer. The relevant snippet from the <xhtml:body> of my XForms document is shown below. P.S. My problem sounds similar to this other one reported in April 2006, which appears to have been a bug with Orbeon which was fixed May 2006. <xhtml:table border="1" class="gridtable">
<xforms:label class="books-label">document group</xforms:label>
<xforms:insert
/>
</xforms:select1>
<xhtml:tr>
<xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label>
- Stian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Stian,
If you enable XForms logging, and there is an infinite loop, you should be able to tell as Orbeon will keep logging stuff: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging Did you try this? If not, it could be a bug with the loading indicator. -Erik On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen <[hidden email]> wrote: > Hi > > I'm building an XForm for adding metadata to documents described by URIs. > So far it has been going very good, but I've run into an issue which *may* > be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. > > The issue is that the Orbeon AJAX code displays the "Loading…" indicator > forever when you select a "document group" from the dropdown. > > This is caused by the <xforms:action ev:event="xforms-select"/> which causes > the insertion of part of a metadata template instance into the main > instance. > > The insertion works fine it seems (the UI is updated), so I suspect Orbeon > is ending up in an infinite loop somehow. i.e. the UI update causes events > to fire that repeat the processing indefinitely. > > I've also got a sneaking suspicion that it could be related to the fact that > it's inside an <xforms:repeat/>. I have no real evidence to back my > suspicions really. > > I would really appreciate any advise anyone can offer. The relevant snippet > from the <xhtml:body> of my XForms document is shown below. > > P.S. My problem sounds similar to this other one reported in April 2006, > which appears to have been a bug with Orbeon which was fixed May 2006. > > <xhtml:table border="1" class="gridtable"> > <xhtml:tr> > <xhtml:th>Meta data</xhtml:th> > <xhtml:th>Document URIs</xhtml:th> > </xhtml:tr> > <xforms:repeat nodeset="instance('main-instance')/processGroup" > id="processGroupRepeat"> > > <xhtml:tr> > <xhtml:td colspan="2"> > > <xforms:select1 ref="metadataScheme"> > > <xforms:label class="books-label">document > group</xforms:label> > <xforms:item> > <xforms:label>Choose One...</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset > nodeset="instance('metadataSchemes-instance')/metadataScheme"> > <xforms:label ref="name"/> > <xforms:value ref="name"/> > </xforms:itemset> > > <xforms:action > ev:event="xforms-select"> > > > <xforms:insert > nodeset="../metadata/property" > > origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" > > /> > </xforms:action> > > </xforms:select1> > > </xhtml:td> > </xhtml:tr> > > <xhtml:tr> > <xhtml:td> > <xforms:repeat nodeset="metadata/property" > id="propertiesRepeat"> > > <xforms:label for="metadatakey"><xforms:output > ref="key"/></xforms:label> > <xforms:input id="metadatakey" ref="value"/> > <xhtml:br/> > </xforms:repeat> > </xhtml:td> > <xhtml:td> > <xforms:repeat nodeset="documents/document" > id="documentsRepeat"> > <xforms:label for="resourceURI"><xforms:output > ref="uri"/></xforms:label> > <xforms:input id="resourceURI" > ref="metadata/value"> > <xhtml:br/> > </xforms:input> > </xforms:repeat> > </xhtml:td> > </xhtml:tr> > > </xforms:repeat> > </xhtml:table> > > - Stian > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Stian Sigvartsen
Thanks Erik. I have followed the instructions on that page and make the necessary changes to the log4j.xml and properties-local.xml files, but nothing is being logged to the orbeon.log at all. In fact I have never had a single byte written to this file.
I failed to mentioned that I'm using the separate portlet deploy approach. I never use form runner / builder. Is it the case that logging is not available for the execution of the XForms processor via this portlet approach maybe? -Stian -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 02 November 2011 04:44 To: [hidden email] Subject: [ops-users] Re: AJAX loading forever after <forms:insert/> Stian, If you enable XForms logging, and there is an infinite loop, you should be able to tell as Orbeon will keep logging stuff: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging Did you try this? If not, it could be a bug with the loading indicator. -Erik On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen <[hidden email]> wrote: > Hi > > I'm building an XForm for adding metadata to documents described by URIs. > So far it has been going very good, but I've run into an issue which *may* > be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. > > The issue is that the Orbeon AJAX code displays the "Loading..." indicator > forever when you select a "document group" from the dropdown. > > This is caused by the <xforms:action ev:event="xforms-select"/> which causes > the insertion of part of a metadata template instance into the main > instance. > > The insertion works fine it seems (the UI is updated), so I suspect Orbeon > is ending up in an infinite loop somehow. i.e. the UI update causes events > to fire that repeat the processing indefinitely. > > I've also got a sneaking suspicion that it could be related to the fact that > it's inside an <xforms:repeat/>. I have no real evidence to back my > suspicions really. > > I would really appreciate any advise anyone can offer. The relevant snippet > from the <xhtml:body> of my XForms document is shown below. > > P.S. My problem sounds similar to this other one reported in April 2006, > which appears to have been a bug with Orbeon which was fixed May 2006. > > <xhtml:table border="1" class="gridtable"> > <xhtml:tr> > <xhtml:th>Meta data</xhtml:th> > <xhtml:th>Document URIs</xhtml:th> > </xhtml:tr> > <xforms:repeat nodeset="instance('main-instance')/processGroup" > id="processGroupRepeat"> > > <xhtml:tr> > <xhtml:td colspan="2"> > > <xforms:select1 ref="metadataScheme"> > > <xforms:label class="books-label">document > group</xforms:label> > <xforms:item> > <xforms:label>Choose One...</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset > nodeset="instance('metadataSchemes-instance')/metadataScheme"> > <xforms:label ref="name"/> > <xforms:value ref="name"/> > </xforms:itemset> > > <xforms:action > ev:event="xforms-select"> > > > <xforms:insert > nodeset="../metadata/property" > > origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" > > /> > </xforms:action> > > </xforms:select1> > > </xhtml:td> > </xhtml:tr> > > <xhtml:tr> > <xhtml:td> > <xforms:repeat nodeset="metadata/property" > id="propertiesRepeat"> > > <xforms:label for="metadatakey"><xforms:output > ref="key"/></xforms:label> > <xforms:input id="metadatakey" ref="value"/> > <xhtml:br/> > </xforms:repeat> > </xhtml:td> > <xhtml:td> > <xforms:repeat nodeset="documents/document" > id="documentsRepeat"> > <xforms:label for="resourceURI"><xforms:output > ref="uri"/></xforms:label> > <xforms:input id="resourceURI" > ref="metadata/value"> > <xhtml:br/> > </xforms:input> > </xforms:repeat> > </xhtml:td> > </xhtml:tr> > > </xforms:repeat> > </xhtml:table> > > - Stian > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Stian,
Logging should happen no matter which way Orbeon Forms are deployed. Did you try to specify an absolute path to orbeon.log in log4j.xml? -Erik On Wed, Nov 2, 2011 at 10:19 AM, Stian Sigvartsen <[hidden email]> wrote: > Thanks Erik. I have followed the instructions on that page and make the necessary changes to the log4j.xml and properties-local.xml files, but nothing is being logged to the orbeon.log at all. In fact I have never had a single byte written to this file. > > I failed to mentioned that I'm using the separate portlet deploy approach. I never use form runner / builder. > Is it the case that logging is not available for the execution of the XForms processor via this portlet approach maybe? > > -Stian > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 02 November 2011 04:44 > To: [hidden email] > Subject: [ops-users] Re: AJAX loading forever after <forms:insert/> > > > Stian, > > If you enable XForms logging, and there is an infinite loop, you > should be able to tell as Orbeon will keep logging stuff: > > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging > > Did you try this? > > If not, it could be a bug with the loading indicator. > > -Erik > > On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen > <[hidden email]> wrote: >> Hi >> >> I'm building an XForm for adding metadata to documents described by URIs. >> So far it has been going very good, but I've run into an issue which *may* >> be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. >> >> The issue is that the Orbeon AJAX code displays the "Loading..." indicator >> forever when you select a "document group" from the dropdown. >> >> This is caused by the <xforms:action ev:event="xforms-select"/> which causes >> the insertion of part of a metadata template instance into the main >> instance. >> >> The insertion works fine it seems (the UI is updated), so I suspect Orbeon >> is ending up in an infinite loop somehow. i.e. the UI update causes events >> to fire that repeat the processing indefinitely. >> >> I've also got a sneaking suspicion that it could be related to the fact that >> it's inside an <xforms:repeat/>. I have no real evidence to back my >> suspicions really. >> >> I would really appreciate any advise anyone can offer. The relevant snippet >> from the <xhtml:body> of my XForms document is shown below. >> >> P.S. My problem sounds similar to this other one reported in April 2006, >> which appears to have been a bug with Orbeon which was fixed May 2006. >> >> <xhtml:table border="1" class="gridtable"> >> <xhtml:tr> >> <xhtml:th>Meta data</xhtml:th> >> <xhtml:th>Document URIs</xhtml:th> >> </xhtml:tr> >> <xforms:repeat nodeset="instance('main-instance')/processGroup" >> id="processGroupRepeat"> >> >> <xhtml:tr> >> <xhtml:td colspan="2"> >> >> <xforms:select1 ref="metadataScheme"> >> >> <xforms:label class="books-label">document >> group</xforms:label> >> <xforms:item> >> <xforms:label>Choose One...</xforms:label> >> <xforms:value/> >> </xforms:item> >> <xforms:itemset >> nodeset="instance('metadataSchemes-instance')/metadataScheme"> >> <xforms:label ref="name"/> >> <xforms:value ref="name"/> >> </xforms:itemset> >> >> <xforms:action >> ev:event="xforms-select"> >> >> >> <xforms:insert >> nodeset="../metadata/property" >> >> origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" >> >> /> >> </xforms:action> >> >> </xforms:select1> >> >> </xhtml:td> >> </xhtml:tr> >> >> <xhtml:tr> >> <xhtml:td> >> <xforms:repeat nodeset="metadata/property" >> id="propertiesRepeat"> >> >> <xforms:label for="metadatakey"><xforms:output >> ref="key"/></xforms:label> >> <xforms:input id="metadatakey" ref="value"/> >> <xhtml:br/> >> </xforms:repeat> >> </xhtml:td> >> <xhtml:td> >> <xforms:repeat nodeset="documents/document" >> id="documentsRepeat"> >> <xforms:label for="resourceURI"><xforms:output >> ref="uri"/></xforms:label> >> <xforms:input id="resourceURI" >> ref="metadata/value"> >> <xhtml:br/> >> </xforms:input> >> </xforms:repeat> >> </xhtml:td> >> </xhtml:tr> >> >> </xforms:repeat> >> </xhtml:table> >> >> - Stian >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Stian Sigvartsen
Thanks Erik.
I've been able to get the logging working by using an absolute path + using forward slashes in the path as opposed to backslashes (I'm running Orbeon on a Windows XP PC). From the looks of it, Orbeon is not getting stuck in any infinite loop, so this may be a bug in the Loading indicator like you suggested. I include below a complete XForm document which replicates the issue. (I've stripped out aspects that are not related to the problem) I've also included the fragment of the log relating to the activity of a user selecting an option from the rendered <xforms:select1 ref="metadataScheme"/> Not sure if it's related, but I have observed that the following error gets logged to the standard out repeatedly when requesting a new Orbeon forms: ERROR [SerializableSessionAttributeListener:39] org.orbeon.oxf.xforms.state.XFormsStateManager$1 is not serializable and will prevent this session from being replicated And when interacting with the same Orbeon form (i.e. AJAX requests), I get the following error logged: ERROR [SerializableSessionAttributeListener:39] org.apache.commons.httpclient.HttpState is not serializable and will prevent this session from being replicated I see you've previously been looking into this (last October for example) but may not have gotten to the bottom of it yet? P.S. I'm going to upgrade my setup to Orbeon 3.9 CE + Liferay 6.0.6 CE rather than Orbeon 3.8 CE + Liferay 6.0.5 CE in the near future, so will let you know if this fixes any of this. Though if you or any member of the community has at least Orbeon 3.9 CE (and maybe Liferay 6.0.6 CE) running already and could spare a minute to try the XForms mark-up below, I would be very appreciative. Just to give me a heads up. :) <?xml version="1.0" encoding="UTF-8"?> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:inf="http://www.devon.gov.uk/information_category" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xhtml:head> <xhtml:title>Add meta data to documents</xhtml:title> <xforms:model> <xforms:instance id="main-instance"> <batch> <processGroup> <resourceCount>10</resourceCount> <documents> <uri>http://www.devon.gov.uk/somedocument.pdf</uri> </documents> <metadataScheme></metadataScheme> <metadata> <property> <key>key 1</key> <value>Default value 1</value> </property> </metadata> </processGroup> </batch> </xforms:instance> <xforms:instance id="metadataSchemes-instance"> <metadataSchemes> <metadataScheme> <id>1</id> <name>FOI</name> <metadata> <property> <key>FOI metadata key 1</key> <value>Default FOI value 1</value> </property> <property> <key>FOI metadata key 2</key> <value></value> </property> </metadata> </metadataScheme> <metadataScheme> <id>2</id> <name>Other</name> <metadata> <property> <key>Other metadata key 1</key> <value>Default other value 1</value> </property> <property> <key>Other metadata key 2</key> <value>1000</value> </property> </metadata> </metadataScheme> </metadataSchemes> </xforms:instance> <xforms:submission id="all-submission" method="post" resource="?" replace="all"/> </xforms:model> <xhtml:style> table, th, td { border: 1px solid black; } th, td { padding:10px; } </xhtml:style> </xhtml:head> <xhtml:body> <xhtml:table border="1" class="gridtable"> <xhtml:tr> <xhtml:th>Meta data</xhtml:th> <xhtml:th>Document URIs</xhtml:th> </xhtml:tr> <xforms:repeat nodeset="instance('main-instance')/processGroup" id="processGroupRepeat"> <xhtml:tr> <xhtml:td colspan="2"><xforms:output ref="resourceCount"/> resource(s) of <xforms:select1 ref="metadataScheme"> <xforms:label>document group</xforms:label> <xforms:item> <xforms:label>Choose One...</xforms:label> <xforms:value/> </xforms:item> <xforms:itemset nodeset="instance('metadataSchemes-instance')/metadataScheme"> <xforms:label ref="name"/> <xforms:value ref="name"/> </xforms:itemset> <xforms:action ev:event="xforms-select"> <xforms:insert nodeset="../metadata/property" origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" /> </xforms:action> </xforms:select1> </xhtml:td> </xhtml:tr> <xhtml:tr> <xhtml:td> <xforms:repeat nodeset="metadata/property" id="propertiesRepeat"> <xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label> <xforms:input id="metadatakey" ref="value"/> <xhtml:br/> </xforms:repeat> </xhtml:td> <xhtml:td> <xforms:repeat nodeset="documents/document" id="documentsRepeat"> <xforms:label for="resourceURI"><xforms:output ref="uri"/></xforms:label> <xforms:input id="resourceURI" ref="metadata/value"> <xhtml:br/> </xforms:input> </xforms:repeat> </xhtml:td> </xhtml:tr> </xforms:repeat> </xhtml:table> <fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"/> </xhtml:body> </xhtml:html> 2011-11-03 11:30:04,697 INFO ProcessorService - /xforms-server - Received request 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng 2011-11-03 11:30:04,697 DEBUG ConcreteChooseProcessor - Choose: taking when branch with test: /request/method = 'POST' and not(starts-with(/request/headers/header[name = 'content-type']/value, 'multipart/form-data')) at line 31, column 40 of oxf:/ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-request.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/url-generator-config.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - Read configuration: [file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/temp/upload__79085652_133690758a2__7ff1_00000017.tmp|null|null|false|false|false|false|false|[false|true|false|false|false|false]] 2011-11-03 11:30:04,713 DEBUG XFormsServer - start handling external events and/or uploaded files 2011-11-03 11:30:04,713 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "xf-4·1", event name: "xxforms-value-change-with-focus-change"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-deselect", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-deselect", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-select", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start target handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "action"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "insert"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:insert - inserted nodes {count: "2", instance: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-insert", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start cloning 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end cloning {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - setting index to new node {id: "propertiesRepeat·1", new index: "3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-index-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-index-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-insert", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "insert"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "action"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end target handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-select", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:setvalue - setting instance value {source: "client", value: "FOI", changed: "true", instance: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-value-changed", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-value-changed", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-rebuild", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-rebuild", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-recalculate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-recalculate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-revalidate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-revalidate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - model - start performing refresh {container id: "#document"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start updating bindings 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end updating bindings {time (ms): "0", controls visited: "35", repeat iterations visited: "4", bindings evaluated: "34", bindings optimized: "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/format.xpl 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-transformer-config.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-preferences-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end evaluating {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-4·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-4·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - model - end performing refresh {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "processGroupRepeat·1", event name: "DOMFocusIn"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "DOMFocusIn", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "DOMFocusIn", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - end handling external events and/or uploaded files {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - start handling regular Ajax response 2011-11-03 11:30:04,729 DEBUG XFormsServer - start computing differences 2011-11-03 11:30:04,729 DEBUG XFormsServer - end computing differences {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - end handling regular Ajax response {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG ConcreteChooseProcessor - Choose: taking otherwise branch at line 61, column 47 of oxf:/ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/serializer/http-serializer-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/converter/standard-text-converter-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-response.rng 2011-11-03 11:30:04,729 DEBUG TeeProcessor - Freed SAXStore for output id: response; approximate size: 11859 bytes 2011-11-03 11:30:04,729 INFO ProcessorService - /xforms-server - Timing: 32 - Cache hits for cache.main: 44, fault: 2, adds: 1, expirations: 0, success rate: 95% -Stian -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 02 November 2011 22:24 To: [hidden email] Subject: [ops-users] Re: RE: Re: AJAX loading forever after <forms:insert/> Stian, Logging should happen no matter which way Orbeon Forms are deployed. Did you try to specify an absolute path to orbeon.log in log4j.xml? -Erik On Wed, Nov 2, 2011 at 10:19 AM, Stian Sigvartsen <[hidden email]> wrote: > Thanks Erik. I have followed the instructions on that page and make the necessary changes to the log4j.xml and properties-local.xml files, but nothing is being logged to the orbeon.log at all. In fact I have never had a single byte written to this file. > > I failed to mentioned that I'm using the separate portlet deploy approach. I never use form runner / builder. > Is it the case that logging is not available for the execution of the XForms processor via this portlet approach maybe? > > -Stian > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 02 November 2011 04:44 > To: [hidden email] > Subject: [ops-users] Re: AJAX loading forever after <forms:insert/> > > > Stian, > > If you enable XForms logging, and there is an infinite loop, you > should be able to tell as Orbeon will keep logging stuff: > > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging > > Did you try this? > > If not, it could be a bug with the loading indicator. > > -Erik > > On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen > <[hidden email]> wrote: >> Hi >> >> I'm building an XForm for adding metadata to documents described by URIs. >> So far it has been going very good, but I've run into an issue which *may* >> be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. >> >> The issue is that the Orbeon AJAX code displays the "Loading..." indicator >> forever when you select a "document group" from the dropdown. >> >> This is caused by the <xforms:action ev:event="xforms-select"/> which causes >> the insertion of part of a metadata template instance into the main >> instance. >> >> The insertion works fine it seems (the UI is updated), so I suspect Orbeon >> is ending up in an infinite loop somehow. i.e. the UI update causes events >> to fire that repeat the processing indefinitely. >> >> I've also got a sneaking suspicion that it could be related to the fact that >> it's inside an <xforms:repeat/>. I have no real evidence to back my >> suspicions really. >> >> I would really appreciate any advise anyone can offer. The relevant snippet >> from the <xhtml:body> of my XForms document is shown below. >> >> P.S. My problem sounds similar to this other one reported in April 2006, >> which appears to have been a bug with Orbeon which was fixed May 2006. >> >> <xhtml:table border="1" class="gridtable"> >> <xhtml:tr> >> <xhtml:th>Meta data</xhtml:th> >> <xhtml:th>Document URIs</xhtml:th> >> </xhtml:tr> >> <xforms:repeat nodeset="instance('main-instance')/processGroup" >> id="processGroupRepeat"> >> >> <xhtml:tr> >> <xhtml:td colspan="2"> >> >> <xforms:select1 ref="metadataScheme"> >> >> <xforms:label class="books-label">document >> group</xforms:label> >> <xforms:item> >> <xforms:label>Choose One...</xforms:label> >> <xforms:value/> >> </xforms:item> >> <xforms:itemset >> nodeset="instance('metadataSchemes-instance')/metadataScheme"> >> <xforms:label ref="name"/> >> <xforms:value ref="name"/> >> </xforms:itemset> >> >> <xforms:action >> ev:event="xforms-select"> >> >> >> <xforms:insert >> nodeset="../metadata/property" >> >> origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" >> >> /> >> </xforms:action> >> >> </xforms:select1> >> >> </xhtml:td> >> </xhtml:tr> >> >> <xhtml:tr> >> <xhtml:td> >> <xforms:repeat nodeset="metadata/property" >> id="propertiesRepeat"> >> >> <xforms:label for="metadatakey"><xforms:output >> ref="key"/></xforms:label> >> <xforms:input id="metadatakey" ref="value"/> >> <xhtml:br/> >> </xforms:repeat> >> </xhtml:td> >> <xhtml:td> >> <xforms:repeat nodeset="documents/document" >> id="documentsRepeat"> >> <xforms:label for="resourceURI"><xforms:output >> ref="uri"/></xforms:label> >> <xforms:input id="resourceURI" >> ref="metadata/value"> >> <xhtml:br/> >> </xforms:input> >> </xforms:repeat> >> </xhtml:td> >> </xhtml:tr> >> >> </xforms:repeat> >> </xhtml:table> >> >> - Stian >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Stian Sigvartsen
I've made a further observation which is very interesting I think.
The issue completely goes away if you remove the following mark-up from the XForm I included in my previous post. <xhtml:tr> <xhtml:td> <xforms:repeat nodeset="metadata/property" id="propertiesRepeat"> <xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label> <xforms:input id="metadatakey" ref="value"/> <xhtml:br/> </xforms:repeat> </xhtml:td> <xhtml:td> <xforms:repeat nodeset="documents/document" id="documentsRepeat"> <xforms:label for="resourceURI"><xforms:output ref="uri"/></xforms:label> <xforms:input id="resourceURI" ref="metadata/value"> <xhtml:br/> </xforms:input> </xforms:repeat> </xhtml:td> </xhtml:tr> -Stian -----Original Message----- From: Stian Sigvartsen [mailto:[hidden email]] Sent: 03 November 2011 11:50 To: [hidden email] Subject: [ops-users] RE: Re: RE: Re: AJAX loading forever after <forms:insert/> Thanks Erik. I've been able to get the logging working by using an absolute path + using forward slashes in the path as opposed to backslashes (I'm running Orbeon on a Windows XP PC). From the looks of it, Orbeon is not getting stuck in any infinite loop, so this may be a bug in the Loading indicator like you suggested. I include below a complete XForm document which replicates the issue. (I've stripped out aspects that are not related to the problem) I've also included the fragment of the log relating to the activity of a user selecting an option from the rendered <xforms:select1 ref="metadataScheme"/> Not sure if it's related, but I have observed that the following error gets logged to the standard out repeatedly when requesting a new Orbeon forms: ERROR [SerializableSessionAttributeListener:39] org.orbeon.oxf.xforms.state.XFormsStateManager$1 is not serializable and will prevent this session from being replicated And when interacting with the same Orbeon form (i.e. AJAX requests), I get the following error logged: ERROR [SerializableSessionAttributeListener:39] org.apache.commons.httpclient.HttpState is not serializable and will prevent this session from being replicated I see you've previously been looking into this (last October for example) but may not have gotten to the bottom of it yet? P.S. I'm going to upgrade my setup to Orbeon 3.9 CE + Liferay 6.0.6 CE rather than Orbeon 3.8 CE + Liferay 6.0.5 CE in the near future, so will let you know if this fixes any of this. Though if you or any member of the community has at least Orbeon 3.9 CE (and maybe Liferay 6.0.6 CE) running already and could spare a minute to try the XForms mark-up below, I would be very appreciative. Just to give me a heads up. :) <?xml version="1.0" encoding="UTF-8"?> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:inf="http://www.devon.gov.uk/information_category" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xhtml:head> <xhtml:title>Add meta data to documents</xhtml:title> <xforms:model> <xforms:instance id="main-instance"> <batch> <processGroup> <resourceCount>10</resourceCount> <documents> <uri>http://www.devon.gov.uk/somedocument.pdf</uri> </documents> <metadataScheme></metadataScheme> <metadata> <property> <key>key 1</key> <value>Default value 1</value> </property> </metadata> </processGroup> </batch> </xforms:instance> <xforms:instance id="metadataSchemes-instance"> <metadataSchemes> <metadataScheme> <id>1</id> <name>FOI</name> <metadata> <property> <key>FOI metadata key 1</key> <value>Default FOI value 1</value> </property> <property> <key>FOI metadata key 2</key> <value></value> </property> </metadata> </metadataScheme> <metadataScheme> <id>2</id> <name>Other</name> <metadata> <property> <key>Other metadata key 1</key> <value>Default other value 1</value> </property> <property> <key>Other metadata key 2</key> <value>1000</value> </property> </metadata> </metadataScheme> </metadataSchemes> </xforms:instance> <xforms:submission id="all-submission" method="post" resource="?" replace="all"/> </xforms:model> <xhtml:style> table, th, td { border: 1px solid black; } th, td { padding:10px; } </xhtml:style> </xhtml:head> <xhtml:body> <xhtml:table border="1" class="gridtable"> <xhtml:tr> <xhtml:th>Meta data</xhtml:th> <xhtml:th>Document URIs</xhtml:th> </xhtml:tr> <xforms:repeat nodeset="instance('main-instance')/processGroup" id="processGroupRepeat"> <xhtml:tr> <xhtml:td colspan="2"><xforms:output ref="resourceCount"/> resource(s) of <xforms:select1 ref="metadataScheme"> <xforms:label>document group</xforms:label> <xforms:item> <xforms:label>Choose One...</xforms:label> <xforms:value/> </xforms:item> <xforms:itemset nodeset="instance('metadataSchemes-instance')/metadataScheme"> <xforms:label ref="name"/> <xforms:value ref="name"/> </xforms:itemset> <xforms:action ev:event="xforms-select"> <xforms:insert nodeset="../metadata/property" origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" /> </xforms:action> </xforms:select1> </xhtml:td> </xhtml:tr> <xhtml:tr> <xhtml:td> <xforms:repeat nodeset="metadata/property" id="propertiesRepeat"> <xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label> <xforms:input id="metadatakey" ref="value"/> <xhtml:br/> </xforms:repeat> </xhtml:td> <xhtml:td> <xforms:repeat nodeset="documents/document" id="documentsRepeat"> <xforms:label for="resourceURI"><xforms:output ref="uri"/></xforms:label> <xforms:input id="resourceURI" ref="metadata/value"> <xhtml:br/> </xforms:input> </xforms:repeat> </xhtml:td> </xhtml:tr> </xforms:repeat> </xhtml:table> <fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"/> </xhtml:body> </xhtml:html> 2011-11-03 11:30:04,697 INFO ProcessorService - /xforms-server - Received request 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng 2011-11-03 11:30:04,697 DEBUG ConcreteChooseProcessor - Choose: taking when branch with test: /request/method = 'POST' and not(starts-with(/request/headers/header[name = 'content-type']/value, 'multipart/form-data')) at line 31, column 40 of oxf:/ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-request.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/url-generator-config.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - Read configuration: [file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/temp/upload__79085652_133690758a2__7ff1_00000017.tmp|null|null|false|false|false|false|false|[false|true|false|false|false|false]] 2011-11-03 11:30:04,713 DEBUG XFormsServer - start handling external events and/or uploaded files 2011-11-03 11:30:04,713 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "xf-4·1", event name: "xxforms-value-change-with-focus-change"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-deselect", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-deselect", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-select", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start target handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "action"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "insert"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:insert - inserted nodes {count: "2", instance: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-insert", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start cloning 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end cloning {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - setting index to new node {id: "propertiesRepeat·1", new index: "3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-3"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-index-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-index-changed", id: "propertiesRepeat·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-insert", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "insert"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "action"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end target handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-select", id: "xf-4·1"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:setvalue - setting instance value {source: "client", value: "FOI", changed: "true", instance: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-value-changed", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-value-changed", id: "main-instance"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-rebuild", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-rebuild", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-recalculate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-recalculate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-revalidate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-revalidate", id: "xf-2"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - model - start performing refresh {container id: "#document"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start updating bindings 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end updating bindings {time (ms): "0", controls visited: "35", repeat iterations visited: "4", bindings evaluated: "34", bindings optimized: "0"} 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/format.xpl 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-transformer-config.rng 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-preferences-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end evaluating {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - start dispatching refresh events 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-4·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-4·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-18$xf-74"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - model - end performing refresh {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "processGroupRepeat·1", event name: "DOMFocusIn"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "DOMFocusIn", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "DOMFocusIn", id: "processGroupRepeat·1"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - end handling external events and/or uploaded files {time (ms): "16"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - start handling regular Ajax response 2011-11-03 11:30:04,729 DEBUG XFormsServer - start computing differences 2011-11-03 11:30:04,729 DEBUG XFormsServer - end computing differences {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - end handling regular Ajax response {time (ms): "0"} 2011-11-03 11:30:04,729 DEBUG ConcreteChooseProcessor - Choose: taking otherwise branch at line 61, column 47 of oxf:/ops/xforms/xforms-server.xpl 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/serializer/http-serializer-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/converter/standard-text-converter-config.rng 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-response.rng 2011-11-03 11:30:04,729 DEBUG TeeProcessor - Freed SAXStore for output id: response; approximate size: 11859 bytes 2011-11-03 11:30:04,729 INFO ProcessorService - /xforms-server - Timing: 32 - Cache hits for cache.main: 44, fault: 2, adds: 1, expirations: 0, success rate: 95% -Stian -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 02 November 2011 22:24 To: [hidden email] Subject: [ops-users] Re: RE: Re: AJAX loading forever after <forms:insert/> Stian, Logging should happen no matter which way Orbeon Forms are deployed. Did you try to specify an absolute path to orbeon.log in log4j.xml? -Erik On Wed, Nov 2, 2011 at 10:19 AM, Stian Sigvartsen <[hidden email]> wrote: > Thanks Erik. I have followed the instructions on that page and make the necessary changes to the log4j.xml and properties-local.xml files, but nothing is being logged to the orbeon.log at all. In fact I have never had a single byte written to this file. > > I failed to mentioned that I'm using the separate portlet deploy approach. I never use form runner / builder. > Is it the case that logging is not available for the execution of the XForms processor via this portlet approach maybe? > > -Stian > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 02 November 2011 04:44 > To: [hidden email] > Subject: [ops-users] Re: AJAX loading forever after <forms:insert/> > > > Stian, > > If you enable XForms logging, and there is an infinite loop, you > should be able to tell as Orbeon will keep logging stuff: > > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging > > Did you try this? > > If not, it could be a bug with the loading indicator. > > -Erik > > On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen > <[hidden email]> wrote: >> Hi >> >> I'm building an XForm for adding metadata to documents described by URIs. >> So far it has been going very good, but I've run into an issue which *may* >> be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. >> >> The issue is that the Orbeon AJAX code displays the "Loading..." indicator >> forever when you select a "document group" from the dropdown. >> >> This is caused by the <xforms:action ev:event="xforms-select"/> which causes >> the insertion of part of a metadata template instance into the main >> instance. >> >> The insertion works fine it seems (the UI is updated), so I suspect Orbeon >> is ending up in an infinite loop somehow. i.e. the UI update causes events >> to fire that repeat the processing indefinitely. >> >> I've also got a sneaking suspicion that it could be related to the fact that >> it's inside an <xforms:repeat/>. I have no real evidence to back my >> suspicions really. >> >> I would really appreciate any advise anyone can offer. The relevant snippet >> from the <xhtml:body> of my XForms document is shown below. >> >> P.S. My problem sounds similar to this other one reported in April 2006, >> which appears to have been a bug with Orbeon which was fixed May 2006. >> >> <xhtml:table border="1" class="gridtable"> >> <xhtml:tr> >> <xhtml:th>Meta data</xhtml:th> >> <xhtml:th>Document URIs</xhtml:th> >> </xhtml:tr> >> <xforms:repeat nodeset="instance('main-instance')/processGroup" >> id="processGroupRepeat"> >> >> <xhtml:tr> >> <xhtml:td colspan="2"> >> >> <xforms:select1 ref="metadataScheme"> >> >> <xforms:label class="books-label">document >> group</xforms:label> >> <xforms:item> >> <xforms:label>Choose One...</xforms:label> >> <xforms:value/> >> </xforms:item> >> <xforms:itemset >> nodeset="instance('metadataSchemes-instance')/metadataScheme"> >> <xforms:label ref="name"/> >> <xforms:value ref="name"/> >> </xforms:itemset> >> >> <xforms:action >> ev:event="xforms-select"> >> >> >> <xforms:insert >> nodeset="../metadata/property" >> >> origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" >> >> /> >> </xforms:action> >> >> </xforms:select1> >> >> </xhtml:td> >> </xhtml:tr> >> >> <xhtml:tr> >> <xhtml:td> >> <xforms:repeat nodeset="metadata/property" >> id="propertiesRepeat"> >> >> <xforms:label for="metadatakey"><xforms:output >> ref="key"/></xforms:label> >> <xforms:input id="metadatakey" ref="value"/> >> <xhtml:br/> >> </xforms:repeat> >> </xhtml:td> >> <xhtml:td> >> <xforms:repeat nodeset="documents/document" >> id="documentsRepeat"> >> <xforms:label for="resourceURI"><xforms:output >> ref="uri"/></xforms:label> >> <xforms:input id="resourceURI" >> ref="metadata/value"> >> <xhtml:br/> >> </xforms:input> >> </xforms:repeat> >> </xhtml:td> >> </xhtml:tr> >> >> </xforms:repeat> >> </xhtml:table> >> >> - Stian >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Stian,
With the example you sent, am I supposed to see the issue simply by changing values in the dropdown? For sure I don't see this with the latest code. The loading indicator logic has had a bunch of fixes since June, see the many commits Alex has done on this: https://github.com/orbeon/orbeon-forms/commits/master/src/resources-packaged/ops/javascript/orbeon/xforms/LoadingIndicator.coffee So it's quite possible that the issue has been fixed since 3.9! -Erik On Thu, Nov 3, 2011 at 4:54 AM, Stian Sigvartsen <[hidden email]> wrote: > I've made a further observation which is very interesting I think. > The issue completely goes away if you remove the following mark-up from the XForm I included in my previous post. > > <xhtml:tr> > <xhtml:td> > <xforms:repeat nodeset="metadata/property" id="propertiesRepeat"> > <xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label> > <xforms:input id="metadatakey" ref="value"/> > <xhtml:br/> > </xforms:repeat> > </xhtml:td> > <xhtml:td> > <xforms:repeat nodeset="documents/document" id="documentsRepeat"> > <xforms:label for="resourceURI"><xforms:output ref="uri"/></xforms:label> > <xforms:input id="resourceURI" ref="metadata/value"> > <xhtml:br/> > </xforms:input> > </xforms:repeat> > </xhtml:td> > </xhtml:tr> > > -Stian > > > -----Original Message----- > From: Stian Sigvartsen [mailto:[hidden email]] > Sent: 03 November 2011 11:50 > To: [hidden email] > Subject: [ops-users] RE: Re: RE: Re: AJAX loading forever after <forms:insert/> > > > Thanks Erik. > I've been able to get the logging working by using an absolute path + using forward slashes in the path as opposed to backslashes (I'm running Orbeon on a Windows XP PC). > > From the looks of it, Orbeon is not getting stuck in any infinite loop, so this may be a bug in the Loading indicator like you suggested. > > > I include below a complete XForm document which replicates the issue. (I've stripped out aspects that are not related to the problem) > I've also included the fragment of the log relating to the activity of a user selecting an option from the rendered <xforms:select1 ref="metadataScheme"/> > > Not sure if it's related, but I have observed that the following error gets logged to the standard out repeatedly when requesting a new Orbeon forms: > ERROR [SerializableSessionAttributeListener:39] org.orbeon.oxf.xforms.state.XFormsStateManager$1 is not serializable and will prevent this session from being replicated > > And when interacting with the same Orbeon form (i.e. AJAX requests), I get the following error logged: > ERROR [SerializableSessionAttributeListener:39] org.apache.commons.httpclient.HttpState is not serializable and will prevent this session from being replicated > > I see you've previously been looking into this (last October for example) but may not have gotten to the bottom of it yet? > > P.S. I'm going to upgrade my setup to Orbeon 3.9 CE + Liferay 6.0.6 CE rather than Orbeon 3.8 CE + Liferay 6.0.5 CE in the near future, so will let you know if this fixes any of this. > > Though if you or any member of the community has at least Orbeon 3.9 CE (and maybe Liferay 6.0.6 CE) running already and could spare a minute to try the XForms mark-up below, I would be very appreciative. Just to give me a heads up. :) > > > <?xml version="1.0" encoding="UTF-8"?> > <xhtml:html > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > xmlns:inf="http://www.devon.gov.uk/information_category" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <xhtml:head> > <xhtml:title>Add meta data to documents</xhtml:title> > <xforms:model> > <xforms:instance id="main-instance"> > <batch> > <processGroup> > <resourceCount>10</resourceCount> > <documents> > <uri>http://www.devon.gov.uk/somedocument.pdf</uri> > </documents> > <metadataScheme></metadataScheme> > <metadata> > <property> > <key>key 1</key> > <value>Default value 1</value> > </property> > </metadata> > </processGroup> > </batch> > </xforms:instance> > <xforms:instance id="metadataSchemes-instance"> > <metadataSchemes> > <metadataScheme> > <id>1</id> > <name>FOI</name> > <metadata> > <property> > <key>FOI metadata key 1</key> > <value>Default FOI value 1</value> > </property> > <property> > <key>FOI metadata key 2</key> > <value></value> > </property> > </metadata> > </metadataScheme> > <metadataScheme> > <id>2</id> > <name>Other</name> > <metadata> > <property> > <key>Other metadata key 1</key> > <value>Default other value 1</value> > </property> > <property> > <key>Other metadata key 2</key> > <value>1000</value> > </property> > </metadata> > </metadataScheme> > </metadataSchemes> > </xforms:instance> > <xforms:submission id="all-submission" method="post" resource="?" replace="all"/> > </xforms:model> > <xhtml:style> > table, th, td { border: 1px solid black; } > th, td { padding:10px; } > </xhtml:style> > </xhtml:head> > <xhtml:body> > <xhtml:table border="1" class="gridtable"> > <xhtml:tr> > <xhtml:th>Meta data</xhtml:th> > <xhtml:th>Document URIs</xhtml:th> > </xhtml:tr> > <xforms:repeat nodeset="instance('main-instance')/processGroup" id="processGroupRepeat"> > <xhtml:tr> > <xhtml:td colspan="2"><xforms:output ref="resourceCount"/> resource(s) of > <xforms:select1 ref="metadataScheme"> > <xforms:label>document group</xforms:label> > <xforms:item> > <xforms:label>Choose One...</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset nodeset="instance('metadataSchemes-instance')/metadataScheme"> > <xforms:label ref="name"/> > <xforms:value ref="name"/> > </xforms:itemset> > <xforms:action ev:event="xforms-select"> > <xforms:insert > nodeset="../metadata/property" > origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" > /> > </xforms:action> > </xforms:select1> > </xhtml:td> > </xhtml:tr> > <xhtml:tr> > <xhtml:td> > <xforms:repeat nodeset="metadata/property" id="propertiesRepeat"> > <xforms:label for="metadatakey"><xforms:output ref="key"/></xforms:label> > <xforms:input id="metadatakey" ref="value"/> > <xhtml:br/> > </xforms:repeat> > </xhtml:td> > <xhtml:td> > <xforms:repeat nodeset="documents/document" id="documentsRepeat"> > <xforms:label for="resourceURI"><xforms:output ref="uri"/></xforms:label> > <xforms:input id="resourceURI" ref="metadata/value"> > <xhtml:br/> > </xforms:input> > </xforms:repeat> > </xhtml:td> > </xhtml:tr> > </xforms:repeat> > </xhtml:table> > <fr:xforms-inspector xmlns:fr="http://orbeon.org/oxf/xml/form-runner"/> > </xhtml:body> > </xhtml:html> > > > 2011-11-03 11:30:04,697 INFO ProcessorService - /xforms-server - Received request > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server.xpl > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng > 2011-11-03 11:30:04,697 DEBUG ConcreteChooseProcessor - Choose: taking when branch with test: /request/method = 'POST' and not(starts-with(/request/headers/header[name = 'content-type']/value, 'multipart/form-data')) at line 31, column 40 of oxf:/ops/xforms/xforms-server.xpl > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-request.rng > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/request-config.rng > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/url-generator-config.rng > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng > 2011-11-03 11:30:04,697 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/aggregator.rng > 2011-11-03 11:30:04,713 DEBUG URLGenerator - Read configuration: [file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/temp/upload__79085652_133690758a2__7ff1_00000017.tmp|null|null|false|false|false|false|false|[false|true|false|false|false|false]] > 2011-11-03 11:30:04,713 DEBUG XFormsServer - start handling external events and/or uploaded files > 2011-11-03 11:30:04,713 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "xf-4·1", event name: "xxforms-value-change-with-focus-change"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-deselect", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-deselect", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-select", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start target handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "action"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - start executing {action name: "insert"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:insert - inserted nodes {count: "2", instance: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-insert", id: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start cloning > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end cloning {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - setting index to new node {id: "propertiesRepeat·1", new index: "3"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - start creating new iteration {id: "propertiesRepeat·1", index: "3"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start adding iteration > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end adding iteration {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:repeat - end creating new iteration {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end evaluating {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-enabled", id: "metadatakey·1-3"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-enabled", id: "metadatakey·1-3"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start dispatching refresh events > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-nodeset-changed", id: "propertiesRepeat·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-index-changed", id: "propertiesRepeat·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-index-changed", id: "propertiesRepeat·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-insert", id: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "insert"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - interpreter - end executing {time (ms): "0", action name: "action"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end target handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-select", id: "xf-4·1"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - xforms:setvalue - setting instance value {source: "client", value: "FOI", changed: "true", instance: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-value-changed", id: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-value-changed", id: "main-instance"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-rebuild", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-rebuild", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-recalculate", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-recalculate", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-revalidate", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-revalidate", id: "xf-2"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - model - start performing refresh {container id: "#document"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start updating bindings > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - end updating bindings {time (ms): "0", controls visited: "35", repeat iterations visited: "4", bindings evaluated: "34", bindings optimized: "0"} > 2011-11-03 11:30:04,713 DEBUG XFormsServer - controls - start evaluating > 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/pipeline.rng > 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/format.xpl > 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-transformer-config.rng > 2011-11-03 11:30:04,713 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/xml/schemas/xslt-preferences-config.rng > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/formatting.xsl > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/utils/formatting/xml-formatting.xsl > 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end evaluating {time (ms): "16"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - start dispatching refresh events > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-4·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-4·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xforms-value-changed", id: "xf-18$xf-74"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18$xf-74"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - retargeting {name: "xforms-value-changed", original id: "xf-18$xf-74", new id: "xf-18"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xforms-value-changed", id: "xf-18$xf-74"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - controls - end dispatching refresh events {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - model - end performing refresh {time (ms): "16"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "16"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - start handling external event {target id: "processGroupRepeat·1", event name: "DOMFocusIn"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "xxforms-repeat-focus", id: "processGroupRepeat·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start dispatching {name: "DOMFocusIn", id: "processGroupRepeat·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - start default action handler > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end default action handler {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - dispatchEvent - end dispatching {time (ms): "0", name: "DOMFocusIn", id: "processGroupRepeat·1"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - executeExternalEvent - end handling external event {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - end handling external events and/or uploaded files {time (ms): "16"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - start handling regular Ajax response > 2011-11-03 11:30:04,729 DEBUG XFormsServer - start computing differences > 2011-11-03 11:30:04,729 DEBUG XFormsServer - end computing differences {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG XFormsServer - response - end handling regular Ajax response {time (ms): "0"} > 2011-11-03 11:30:04,729 DEBUG ConcreteChooseProcessor - Choose: taking otherwise branch at line 61, column 47 of oxf:/ops/xforms/xforms-server.xpl > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/serializer/http-serializer-config.rng > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /org/orbeon/oxf/processor/converter/standard-text-converter-config.rng > 2011-11-03 11:30:04,729 DEBUG URLGenerator - OXF Protocol: Using ResourceManager for key /ops/xforms/xforms-server-response.rng > 2011-11-03 11:30:04,729 DEBUG TeeProcessor - Freed SAXStore for output id: response; approximate size: 11859 bytes > 2011-11-03 11:30:04,729 INFO ProcessorService - /xforms-server - Timing: 32 - Cache hits for cache.main: 44, fault: 2, adds: 1, expirations: 0, success rate: 95% > > > -Stian > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 02 November 2011 22:24 > To: [hidden email] > Subject: [ops-users] Re: RE: Re: AJAX loading forever after <forms:insert/> > > > Stian, > > Logging should happen no matter which way Orbeon Forms are deployed. > Did you try to specify an absolute path to orbeon.log in log4j.xml? > > -Erik > > On Wed, Nov 2, 2011 at 10:19 AM, Stian Sigvartsen > <[hidden email]> wrote: >> Thanks Erik. I have followed the instructions on that page and make the necessary changes to the log4j.xml and properties-local.xml files, but nothing is being logged to the orbeon.log at all. In fact I have never had a single byte written to this file. >> >> I failed to mentioned that I'm using the separate portlet deploy approach. I never use form runner / builder. >> Is it the case that logging is not available for the execution of the XForms processor via this portlet approach maybe? >> >> -Stian >> >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez >> Sent: 02 November 2011 04:44 >> To: [hidden email] >> Subject: [ops-users] Re: AJAX loading forever after <forms:insert/> >> >> >> Stian, >> >> If you enable XForms logging, and there is an infinite loop, you >> should be able to tell as Orbeon will keep logging stuff: >> >> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging >> >> Did you try this? >> >> If not, it could be a bug with the loading indicator. >> >> -Erik >> >> On Tue, Nov 1, 2011 at 5:57 AM, Stian Sigvartsen >> <[hidden email]> wrote: >>> Hi >>> >>> I'm building an XForm for adding metadata to documents described by URIs. >>> So far it has been going very good, but I've run into an issue which *may* >>> be a bug in Orbeon 3.8 CE. Though it may be my XForms markup. >>> >>> The issue is that the Orbeon AJAX code displays the "Loading..." indicator >>> forever when you select a "document group" from the dropdown. >>> >>> This is caused by the <xforms:action ev:event="xforms-select"/> which causes >>> the insertion of part of a metadata template instance into the main >>> instance. >>> >>> The insertion works fine it seems (the UI is updated), so I suspect Orbeon >>> is ending up in an infinite loop somehow. i.e. the UI update causes events >>> to fire that repeat the processing indefinitely. >>> >>> I've also got a sneaking suspicion that it could be related to the fact that >>> it's inside an <xforms:repeat/>. I have no real evidence to back my >>> suspicions really. >>> >>> I would really appreciate any advise anyone can offer. The relevant snippet >>> from the <xhtml:body> of my XForms document is shown below. >>> >>> P.S. My problem sounds similar to this other one reported in April 2006, >>> which appears to have been a bug with Orbeon which was fixed May 2006. >>> >>> <xhtml:table border="1" class="gridtable"> >>> <xhtml:tr> >>> <xhtml:th>Meta data</xhtml:th> >>> <xhtml:th>Document URIs</xhtml:th> >>> </xhtml:tr> >>> <xforms:repeat nodeset="instance('main-instance')/processGroup" >>> id="processGroupRepeat"> >>> >>> <xhtml:tr> >>> <xhtml:td colspan="2"> >>> >>> <xforms:select1 ref="metadataScheme"> >>> >>> <xforms:label class="books-label">document >>> group</xforms:label> >>> <xforms:item> >>> <xforms:label>Choose One...</xforms:label> >>> <xforms:value/> >>> </xforms:item> >>> <xforms:itemset >>> nodeset="instance('metadataSchemes-instance')/metadataScheme"> >>> <xforms:label ref="name"/> >>> <xforms:value ref="name"/> >>> </xforms:itemset> >>> >>> <xforms:action >>> ev:event="xforms-select"> >>> >>> >>> <xforms:insert >>> nodeset="../metadata/property" >>> >>> origin="instance('metadataSchemes-instance')/metadataScheme[name/text()='FOI']/metadata/property" >>> >>> /> >>> </xforms:action> >>> >>> </xforms:select1> >>> >>> </xhtml:td> >>> </xhtml:tr> >>> >>> <xhtml:tr> >>> <xhtml:td> >>> <xforms:repeat nodeset="metadata/property" >>> id="propertiesRepeat"> >>> >>> <xforms:label for="metadatakey"><xforms:output >>> ref="key"/></xforms:label> >>> <xforms:input id="metadatakey" ref="value"/> >>> <xhtml:br/> >>> </xforms:repeat> >>> </xhtml:td> >>> <xhtml:td> >>> <xforms:repeat nodeset="documents/document" >>> id="documentsRepeat"> >>> <xforms:label for="resourceURI"><xforms:output >>> ref="uri"/></xforms:label> >>> <xforms:input id="resourceURI" >>> ref="metadata/value"> >>> <xhtml:br/> >>> </xforms:input> >>> </xforms:repeat> >>> </xhtml:td> >>> </xhtml:tr> >>> >>> </xforms:repeat> >>> </xhtml:table> >>> >>> - Stian >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] mailing >>> list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Stian Sigvartsen
That's right. I get the forever loading indicator as soon as you select
from that dropdown. Sounds like it may be an Orbeon 3.8 CE issue. Thanks for testing it with 3.9 CE! I'll upgrade ASAP. Thanks! Always impressed with the level of support you and the other community members provide. FYI - We're currently undertaking a web forms technology consolidation PoC. Once successful (I'm confident) then it's likely we will want Orbeon PE support. -Stian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Stian,
Great to hear this! There have been *lots* of fixes in 3.9 vs. 3.8 so it's probably a good idea to upgrade anyway. -Erik On Tue, Nov 8, 2011 at 3:54 AM, Stian Sigvartsen <[hidden email]> wrote: > That's right. I get the forever loading indicator as soon as you select > from that dropdown. > Sounds like it may be an Orbeon 3.8 CE issue. Thanks for testing it with > 3.9 CE! > I'll upgrade ASAP. > > Thanks! Always impressed with the level of support you and the other > community members provide. > > FYI - We're currently undertaking a web forms technology consolidation > PoC. Once successful (I'm confident) then it's likely we will want > Orbeon PE support. > > -Stian > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |