Issue - Orbeon Forms upgrade from 3.9 to 2017.2

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

Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Obup-2
Hi,

We recently upgraded Orbeon Forms from 3.9 to 2017.2. We use separate deployment. There are two wars. orbeon.war and myapp.war. We use XForms using the method mentioned here https://doc.orbeon.com/xforms/filter.html

The orbeon.war is deployed at localhost:8080/orbeon and myapp.war is deployed at localhost:8080/myapp

After upgrading, we are facing error duing xf:submission. The submission code is mentioned below.

<xforms:submission 
id="doAdvancedSearch" 
method="post"
ref="instance('SearchQueryInstance')"
action="http://localhost:8080/myapp/search"
instance="SearchQueryInstance"
>
</xforms:submission>

The submission is done by a xf:send. The send code is mentioned below.

<xforms:trigger ev:event="DOMActivate" id="Search"
class="stdbutton">
<xforms:label>Search</xforms:label>
<xforms:action ev:event="DOMActivate">
<xforms:send submission="doAdvancedSearch" />
</xforms:action>
</xforms:trigger>

On submission, I see the following exception. "xf:submission for submission id: doAdvancedSearch, error code received when submitting instance: 404"

Even though the URL exists in myapp, the Orbeon submit is returning a 404 error without anycode change after upgrade. The request from the orbeon never made a http call to myapp as I don't see it in access log. 

I have attached the orbeon log with submission error.

Any leads on this issue would be a lot helpful.

Thank you.

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

orb-debug.log (51K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Alessandro  Vernet
Administrator
Hi Gopalakrishnan,

It's possible that the `action` isn't supported anymore. Try using
`resource` instead. You'll let me know if this works for you.

https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_submission_Element

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Obup-2
Hi,

We replaced "action" attribute with "resource" attribute. Still the same error. The updated code is available below. Also everything seems to work fine with version 4.7. All versions after 4.7 are not working. We are trying to make it work with version 2017.2. Thanks !

<xforms:submission 
id="doAdvancedSearch" 
method="post"
ref="instance('SearchQueryInstance')"
resource="http://localhost:8080/myapp/search"
instance="SearchQueryInstance"
>
</xforms:submission>



On Wednesday, May 23, 2018 at 12:34:48 AM UTC+5:30, Alessandro Vernet wrote:
Hi Gopalakrishnan,

It's possible that the `action` isn't supported anymore. Try using
`resource` instead. You'll let me know if this works for you.

<a href="https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_submission_Element" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.w3.org%2Fcommunity%2Fxformsusers%2Fwiki%2FXForms_2.0%23The_submission_Element\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgrfL6w636asB5HYREC75zRIzRIQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.w3.org%2Fcommunity%2Fxformsusers%2Fwiki%2FXForms_2.0%23The_submission_Element\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgrfL6w636asB5HYREC75zRIzRIQ&#39;;return true;">https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_submission_Element

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Alessandro  Vernet
Administrator
Got it Gopalakrishnan, then I'd recommend you set your `properties-local.xml`
and `log4j.xml` per the "Development configuration" (see link below), and
analyze the log at the time the submission happen (or maybe doesn't happen).
You'll let me know if you find anything useful in there.

https://doc.orbeon.com/configuration/advanced/xforms-logging.html#development-configuration

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Obup-2
Hi,

In the first post I have attached the orbeon log which has the submission log information. The logging has been configured as the following. Please let me know if the log in the first post was helpful or should I generate new logs.

    <property as="xs:NMTOKENS" name="oxf.xforms.logging.error">
        submission-error-body
    </property>

    <property as="xs:NMTOKENS" name="oxf.xforms.logging.debug">
     document
     model
     submission
     control
     event
     action
     analysis
     server
     server-body
     html
     process
     submission-details
     submission-body
</property>


On Wednesday, May 30, 2018 at 6:40:13 AM UTC+5:30, Alessandro Vernet wrote:
Got it Gopalakrishnan, then I'd recommend you set your `properties-local.xml`
and `log4j.xml` per the "Development configuration" (see link below), and
analyze the log at the time the submission happen (or maybe doesn't happen).
You'll let me know if you find anything useful in there.

<a href="https://doc.orbeon.com/configuration/advanced/xforms-logging.html#development-configuration" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fadvanced%2Fxforms-logging.html%23development-configuration\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDJlPQ5lDO2zyjPy8WhGbpg3DDXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fadvanced%2Fxforms-logging.html%23development-configuration\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDJlPQ5lDO2zyjPy8WhGbpg3DDXA&#39;;return true;">https://doc.orbeon.com/configuration/advanced/xforms-logging.html#development-configuration

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Alessandro  Vernet
Administrator
Hi Gopalakrishnan,

Sorry, I missed the log file. So it seems that the `doAdvancedSearch` makes
a request to:

file:///C:/Data/myappworkspace/MYAPP/

Which explains both the 404, and the fact that your endpoint doesn't receive
anything. This shouldn't happen if you have a
`resource="http://localhost:8080/myapp/search"` on the submission. Can you
check that your change, using `resource` instead of `action`, is taken into
account? Say, you add a XML syntax error in the file and reload the page;
does the reload fail?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Obup-2
Hi,

We changed the attribute "action" to "resource". We are still facing the same issue. Also adding a XML syntax error in the file causes the page to fail. 

But we have found a new behavior. The submission error (404) occurs only when the submission URL is a servlet. The submission occurs as expected if the submission URL is a JSP page. I hope this might you in debugging. 

Log of 404 submission on using resource attribute is given below.

2018-06-08 12:27:10,474 DEBUG XFormsServer  -   opening URL connection {method: "POST", URL: "http://localhost:8080/myapp/advancedSearch", Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", Content-Type: "application/xml", Cookie: "JSESSIONID=357C6DDC1F0FD6FE44518636BAC1BAF0", User-Agent: "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", Orbeon-Token: "d54cb48c53591ee77ef440761d49a34369cd1a47"}
2018-06-08 12:27:10,474 DEBUG XFormsServer  -   response {status code: "404"}
2018-06-08 12:27:10,474 DEBUG XFormsServer  -   response headers {Cache-Control: "no-cache, no-store, must-revalidate", Pragma: "no-cache", Expires: "0", Content-Type: "text/html; charset=utf-8"}
2018-06-08 12:27:10,474 DEBUG XFormsServer  -   response has content
2018-06-08 12:27:10,475 DEBUG XFormsServer  -   saved HTTP state {scope: "session"}
2018-06-08 12:27:10,475 DEBUG XFormsServer  - end opening connection {time (ms): "21"}
2018-06-08 12:27:10,475 INFO  ProcessorService  - /xforms-renderer - Timing: 36
2018-06-08 12:27:10,483 ERROR ProcessorService  - 
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|xf:submission for submission id: doAdvancedSearch, error code received when submitting instance: 404                  |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|file:///C:/Data/appworkspace/myapp/                                     |processing submission response|  61|
|······················································································································|
|element=<xforms:submission id="doAdvancedSearch" method="post" ref="instance('SearchQueryInstance')" resource="http://|
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/pfc/xforms-xml-submission.xpl                                            |executing processor           |  57|
|······················································································································|
|element=<p:processor name="oxf:pipeline">[...]</p:processor>                                                          |
|name   ={http://www.orbeon.com/oxf/processors}pipeline                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/xforms/xforms-server-submit.xpl                                          |executing processor           |  70|
|······················································································································|
|element=<p:processor name="oxf:xforms-server">[...]</p:processor>                                                     |
|name   ={http://www.orbeon.com/oxf/processors}xforms-server                                                           |

On Friday, June 8, 2018 at 4:55:31 AM UTC+5:30, Alessandro Vernet wrote:
Hi Gopalakrishnan,

Sorry, I missed the log file. So it seems that the `doAdvancedSearch` makes
a request to:

file:///C:/Data/myappworkspace/MYAPP/

Which explains both the 404, and the fact that your endpoint doesn't receive
anything. This shouldn't happen if you have a
`resource="<a href="http://localhost:8080/myapp/search" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fmyapp%2Fsearch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCx7KOx1c7dAyBZ6NGhGdGdZe8VQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fmyapp%2Fsearch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCx7KOx1c7dAyBZ6NGhGdGdZe8VQ&#39;;return true;">http://localhost:8080/myapp/search"` on the submission. Can you
check that your change, using `resource` instead of `action`, is taken into
account? Say, you add a XML syntax error in the file and reload the page;
does the reload fail?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Alessandro  Vernet
Administrator
Hi Gopalakrishnan,

I think that the reference to `file:///C:/Data/appworkspace/myapp/` in the
log is misleading; it is maybe just the context of the XForms, so let's
ignore this for now.

But the log says Orbeon Forms does a POST to
`http://localhost:8080/myapp/advancedSearch` and gets a 404. And are you
saying that on the "other end" you're not seeing any request? If so, I'd
recommend you use a tool like WireShark to see exactly what happens with
that request.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Obup-2
Hi,

We have verified the tomcat access logs and can confirm that the request never reached the server. The behavior which might help us is that when the resource is a JSP it doesn't return a 404 but when it is a servlet, it returns a 404. Does this provide you any leads ? In the mean time we ll try to capture data with WireShark.

On Tuesday, June 12, 2018 at 10:14:47 PM UTC+5:30, Alessandro Vernet wrote:
Hi Gopalakrishnan,

I think that the reference to `file:///C:/Data/appworkspace/myapp/` in the
log is misleading; it is maybe just the context of the XForms, so let's
ignore this for now.

But the log says Orbeon Forms does a POST to
`<a href="http://localhost:8080/myapp/advancedSearch" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fmyapp%2FadvancedSearch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFagSkvdGQg2ftSjOkWOtB7gV8FqQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fmyapp%2FadvancedSearch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFagSkvdGQg2ftSjOkWOtB7gV8FqQ&#39;;return true;">http://localhost:8080/myapp/advancedSearch` and gets a 404. And are you
saying that on the "other end" you're not seeing any request? If so, I'd
recommend you use a tool like WireShark to see exactly what happens with
that request.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Issue - Orbeon Forms upgrade from 3.9 to 2017.2

Alessandro  Vernet
Administrator
Hi Gopalakrishnan,

Since when the callee is a JSP it doesn't return a 404, but when the callee
is a servlet it returns a 404, I'd think that the issue is with the callee
(the servlet), and not the caller (Orbeon Forms). But using WireShark or
similar to see exactly what goes over the wire should shed some light on
this. You'll let us know what you find.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet