Hi All,
I deployed code in liferay portal(5.2), tomcat 6 using 3.7.1 (dev release). For every submission made by using 'xforms:submission', call gets to XPL, final output is also fine. BUT COULD NOT REPLACE THEN SPECIFIED INSTNACE. It works fine when verified in standalone instance. Error message attached: What could be the cause for this? Any hints? Any help is greatly appreciated.log_error.txt |
Call made is as below:
<xforms:submission id="load-statuses" serialize="false" action="/forms/detail/load/report/status/?input-status={{xxforms:instance('document-instance')//wr:report-status}}" method="get" replace="instance" xxforms:instance="report-status-instance"/> expected instance to replace ------------------------------- <xforms:instance id="report-status-instance"> <statuses/> </xforms:instance>
|
Administrator
|
Not sure if that has anything to do with the problem, but I am
wondering why there is no namespace declarations on the output in the logs you sent: <statuses> <wr:status> <wr:label>Draft</wr:label> <wr:value>Draft</wr:value> </wr:status> <wr:status> <wr:label>Final</wr:label> <wr:value>Final</wr:value> </wr:status> </statuses> Do you have an HTTP analyzer tool which could show exactly the response sent? -Erik On Jun 17, 2009, at 10:29 AM, thumma wrote: > > Call made is as below: > <xforms:submission id="load-statuses" serialize="false" > action="/forms/detail/load/report/status/?input- > status={{xxforms:instance('document-instance')//wr:report-status}}" > method="get" replace="instance" xxforms:instance="report-status- > instance"/> > > expected instance to replace > ------------------------------- > <xforms:instance id="report-status-instance"> > <statuses/> > </xforms:instance> > > > thumma wrote: >> >> Hi All, >> >> I deployed code in liferay portal(5.2), tomcat 6 using 3.7.1 (dev >> release). >> >> For every submission made by using 'xforms:submission', call gets >> to XPL, >> final output is also fine. BUT COULD NOT REPLACE THEN SPECIFIED >> INSTNACE. >> It works fine when verified in standalone instance. Error message >> attached: >> >> What could be the cause for this? Any hints? >> >> Any help is greatly appreciated. >> http://www.nabble.com/file/p24078076/log_error.txt log_error.txt >> > > -- > View this message in context: http://www.nabble.com/Stuck-with-Error-in-Orbeon-3.7.1-Submission-replacing-instance%28liferay-portal%29-tp24078076p24078364.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Hi Erik,
I actually removed the namespaces when posting. Sorry for that confusion. I have attached output from the logs as it is now. log_error_with_namespaces.txt Could you please have a look at attached log. Description: ------------- After default submissions load, from xforms-ready(in my .xhtml file), I make following two load calls. Both call fails even I have succesfull output in my XPL's. 1) /forms/detail/load/task --------------------------- CALL: <xforms:submission id="load-task-details" serialize="false" action="/forms/detail/load/task/?task-id={{xxforms:instance('parameters-instance')/task-id}}" validate="false" method="get" replace="instance" xxforms:instance="task-instance" > </xforms:submission> EXPECTED INSTANCE TO REPLACE: <xforms:instance id="task-instance"> <task/> </xforms:instance> OUTPUT IN LOG FILE: at line number 187 2)/forms/detail/load/report/status/ ------------------------------------- CALL:<xforms:submission id="load-statuses" serialize="false" action="/forms/detail/load/report/status/?input-status={{xxforms:instance('document-instance')//wr:report-status}}" validate="false" method="get" replace="instance" xxforms:instance="report-status-instance"/> EXPECTED INSTANCE TO REPLACE: xforms:instance id="report-status-instance"> <statuses/> </xforms:instance> OUTPUT IN LOG FILE: at line number 1119
log_error_with_namespaces.txt |
In reply to this post by thumma
Hi Thumma,
I encountered the exact same problem. Did you manage to solve this problem? How did you fix it? Thanks. Hoi Chong
|
Administrator
|
Thumma, Hoi,
Is this issue Liferay-specific? Can you reproduce it outside of Liferay, in a "just" Tomcat? Next, if can, can you create a simple/minimal test case that we can run here to reproduce this? I am asking as this really looks like a case we would need to debug to figure it out. Alex |
Hi Alex,
It seem to be Liferay specific, but I have to double-check it against other Portals (maybe will try on Jetspeed). I tried to re-produce it on a stand-alone Tomcat by setting "oxf.epilogue.embeddable" property to "true" but did not encounter any problems. It just works fine in a stand-alone Tomcat. I have been looking at the "xforms-translate" App, and this App will work fine in Orbeon Forms Portlet within Liferay. I will try to change my App to follow the flow and behavior of the Translate app, will report back whether it makes a different. Thanks. Hoi Chong
|
Administrator
|
Hoi,
I was hoping that we would be able reproduce it on Tomcat as well, as issues happening on portal servers are harder to reproduce and debug. Alright, good luck with that, and you'll let us know how it goes. Alex |
Alex,
I did some testing and this is my findings. I will explain the 2 scenarios which I tested with, one is working the other is not. Not Working ----------- 2 XHTML (xforms) file. File A, will show a text input box for the user to input a search term, File B, should show a results page, with the search result return from an XPL and replacing the instance('main') File A, has a button, that when trigger will load File B and passing the input via the parameter. eg: <xforms:load resource="/search/fileB?search={xxforms:instance('input-field')/input}"/> File B, will then submit the input parameter to the XPL via parameter passing as well. eg: <xforms:submission id="query1" ref="instance('main')" replace="instance" method="post" action="/search/getResults?search={xxforms:instance('parameters')/searchterm}"/> What happen is, if the button is click, FileB gets loaded up, but did not get any search results. The error message is as per what thumma mention in the start of this thread. Basically replacing of search results into instance('main') will throw an exception WARN XFormsServer - XForms - submission - error while parsing response body as XML, defaulting to plain text. org.orbeon.oxf.common.OXFException: org.xml.sax.SAXParseException:Premature end of file. at org.orbeon.oxf.xml.TransformerUtils.readTinyTree(TransformerUtils.java:379) at org.orbeon.oxf.xml.TransformerUtils.readTinyTree(TransformerUtils.java:359) at org.orbeon.oxf.xforms.event.events.XFormsSubmitErrorEvent.<init>(XFormsSubmitErrorEvent.java:92) at org.orbeon.oxf.xforms.submission.InstanceReplacer.deserializeInstance(InstanceReplacer.java:85) at org.orbeon.oxf.xforms.submission.InstanceReplacer.deserialize(InstanceReplacer.java:51) at org.orbeon.oxf.xforms.submission.OptimizedSubmission.connect(OptimizedSubmission.java:191) at org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:432) /more logs...... 2009-08-09 09:01:12,677 ERROR XFormsServer - XForms - submission - xforms-submit-error throwable: org.xml.sax.SAXParseException: The prefix "f" for element "f:xml-source" is not bound. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.orbeon.saxon.event.Sender.sendSAXSource(Sender.java:269) at org.orbeon.saxon.event.Sender.send(Sender.java:144) at org.orbeon.saxon.IdentityTransformer.transform(IdentityTransformer.java:29) WORKING --------- However, if I will to use a single XHTML file for the user to input the search term, and also to display the results. This scenario will work fine. This scenario do not use the passing of input via parameter to the XPL but instead will submit the input to the XPL via the ref instance. eg; <xforms:submission id="query" ref="instance('input-field')" replace="instance" instance="main" method="post" action="/search/getResults"/> Hope the above will help you with debugging this issue. Thanks and regards. Hoi
|
Alex,
I did more testing, and notice this condition that will cause the error. Using ev:event="xforms-ready" to trigger a submission to the XPL will cause the error no matter whether the Input is pass to XPL via ref=instance or parameter. Whereas, if the submission to the XPL is trigger via a click on a button, it will work fine, Input pass to XPL via ref=instance or parameter. Thx and regards. Hoi
|
Administrator
|
Hi Hoi,
Thank for sharing your findings with us, but I have to tell you that we won't be able to help much with this type of problems on the mailing list. Investigating issues that happen on a portal server or specific application server (other than Tomcat), require more time that we can dedicate to the mailing list, and gets into the realm of things that can only do for our clients who have subscribed to a support plan. Alex |
Free forum by Nabble | Edit this page |