path must begin with a "/"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

path must begin with a "/"

Jean Luc-2
Changing as the subject as I did specify a value for action explicitly and one that does begin with a /, with I still get the same error.
Erik, any thoughts what the cause would be?

Thank you,
JL



Error Message
path must begin with a "/"

Call Stack
Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing submission
dispatching XForms event
event → xxforms-submit
target id → form-submit  <xf:submission action="/myapp/xforms/xform.nrx" id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server-submit.xpl 61 43 executing processor
name → {<a href="http://www.orbeon.com/oxf/processors}xforms-server">http://www.orbeon.com/oxf/processors}xforms-server <p:processor name="oxf:xforms-server">...</p:processor>

Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms-widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


Exception Class org.orbeon.oxf.common.OXFException
Message line 27 of oxf:/config/xforms-widgets.xsl (processing submission): Error while processing xforms:submission
path must begin with a "/" 
Resource URL oxf:/config/xforms-widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(89 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 264
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getInput PipelineProcessor.java 138
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl PipelineProcessor.java 87
 





On Dec 17, 2007 10:34 AM, Jean Luc <[hidden email]> wrote:
Yes, I've tried now. Same error. I've also tried "/." just to see if it makes a difference, but it doesn't either.

On Dec 14, 2007 5:10 PM, Stephane Ruchet < [hidden email]> wrote:
Did you try action="." ?

Jean Luc a écrit :
Hi [Erik],

I'm using Orbeon (3.6.0.200712061930) deployed as a separate WAR. I'm using a simple form in whose <submission> element I don't want to specify the action attribute - the submission would happen at the same URL. The attribute is optional as per the XForms spec.

However, I get the following errors. Please advise.

Thanks,
JL


With an empty value for the action attribute:

<xf:submission id="form-submit" action="" method="post" omit-xml-declaration="true" indent="true"/>


Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException 
Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms- widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 More... 
 

With a missing action atribute

<xf:submission id="form-submit" method="post" omit-xml-declaration="true" indent="true"/>

xforms:submission: action attribute or resource attribute is missing.

Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing xforms:submission attributes
dispatching XForms event
event → xforms-submit
target id → form-submit
dispatching XForms event
event → DOMActivate
target id → xforms-element-12  <xf:submission id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server.xpl 55 103 reading processor output
name → response
id → xml-response  <p:output name="response" id="xml-response" schema-href=" xforms-server-response.rng"/>
oxf:/ops/xforms/xforms-server.xpl 61 52 executing processor
name → {http://www.orbeon.com/oxf/processors}xml-serializer <p:processor name="oxf:xml-serializer">...</p:processor>



--
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
Reply | Threaded
Open this post in threaded view
|

Re: path must begin with a "/"

Jean Luc-2
An update. I did some debugging and the exception is thrown because the event processed by XFormsServer has no content, which is treated as an empty string (the "value" variable  at XFormsServer:191 is "").



final String value = eventElement.getText();

eventElement is:

[0] = {org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@9824 }"org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1b30cc7 [Element:
attributes = {java.util.ArrayList@9850} size = 2
content = {java.util.ArrayList@9849 } size = 0
data = {org.orbeon.oxf.xml.dom4j.LocationData@9846}""
parentBranch = {org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@9848 }"org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@1683789 [Element: ] userData: "
qname = {org.dom4j.QName@9847}"org.dom4j.QName@1f2c9a79 [name: event namespace: \"org.dom4j.Namespace@846835cc [Namespace: prefix xxforms mapped to URI \"<a href="http://orbeon.org/oxf/xml/xforms\">http://orbeon.org/oxf/xml/xforms\ "]\"]"

I'll log the http traffic to see what's being POSTed and send an update.

On Dec 17, 2007 11:08 AM, Jean Luc <[hidden email]> wrote:
Changing as the subject as I did specify a value for action explicitly and one that does begin with a /, with I still get the same error.
Erik, any thoughts what the cause would be?

Thank you,
JL



Error Message
path must begin with a "/"

Call Stack
Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing submission
dispatching XForms event
event → xxforms-submit
target id → form-submit  <xf:submission action="/myapp/xforms/xform.nrx" id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server-submit.xpl 61 43 executing processor
name → {http://www.orbeon.com/oxf/processors}xforms-server <p:processor name="oxf:xforms-server">...</p:processor>

Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms-widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


Exception Class org.orbeon.oxf.common.OXFException
Message line 27 of oxf:/config/xforms-widgets.xsl (processing submission): Error while processing xforms:submission
path must begin with a "/" 
Resource URL oxf:/config/xforms-widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(89 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 264
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getInput PipelineProcessor.java 138
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl PipelineProcessor.java 87
 





On Dec 17, 2007 10:34 AM, Jean Luc <[hidden email]> wrote:
Yes, I've tried now. Same error. I've also tried "/." just to see if it makes a difference, but it doesn't either.

On Dec 14, 2007 5:10 PM, Stephane Ruchet < [hidden email]> wrote:
Did you try action="." ?

Jean Luc a écrit :
Hi [Erik],

I'm using Orbeon (3.6.0.200712061930) deployed as a separate WAR. I'm using a simple form in whose <submission> element I don't want to specify the action attribute - the submission would happen at the same URL. The attribute is optional as per the XForms spec.

However, I get the following errors. Please advise.

Thanks,
JL


With an empty value for the action attribute:

<xf:submission id="form-submit" action="" method="post" omit-xml-declaration="true" indent="true"/>


Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException 
Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms- widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 More... 
 

With a missing action atribute

<xf:submission id="form-submit" method="post" omit-xml-declaration="true" indent="true"/>

xforms:submission: action attribute or resource attribute is missing.

Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing xforms:submission attributes
dispatching XForms event
event → xforms-submit
target id → form-submit
dispatching XForms event
event → DOMActivate
target id → xforms-element-12  <xf:submission id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server.xpl 55 103 reading processor output
name → response
id → xml-response  <p:output name="response" id="xml-response" schema-href=" xforms-server-response.rng"/>
oxf:/ops/xforms/xforms-server.xpl 61 52 executing processor
name → {http://www.orbeon.com/oxf/processors}xml-serializer <p:processor name="oxf:xml-serializer">...</p:processor>



--
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