Error when I redirect to the review page of the form with Liferay

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

Error when I redirect to the review page of the form with Liferay

yosuare
Hi!

I have the form running in the proxy-portlet(Orbeon 2017.2) within Liferay
7.0.

Once I have filled out the form, and I click on the review button to see how
the data is.

Through the language selector inside Liferay  I change the language and I
get the following error.



I review the log of Orbeon when I clicked on the review button and this is
the log:
-------------------------------------------------------------------------------------------------------
2019-03-06 10:01:24,231 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",*
"message": "start: filter", "path": "/xforms-server", "method": "POST"*}
2019-03-06 10:01:24,231 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
"message": "start: chain", "path": "/xforms-server", "method": "POST",
"wait": "0"}
2019-03-06 10:01:24,240 WARN  auth  - not setting credentials headers
because credentials are not found
2019-03-06 10:01:24,240 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle"}
2019-03-06 10:01:24,240 INFO  ProcessorService  - /xforms-server - Received
request
2019-03-06 10:01:24,248 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "ajax with update events", "uuid":
"4cec46406a52924579659bdf99b99e4fac91631c"}
2019-03-06 10:01:24,248 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "before document lock", "uuid":
"4cec46406a52924579659bdf99b99e4fac91631c"}
2019-03-06 10:01:24,248 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "got document lock", "path": "/xforms-server", "method": "POST",
"uuid": "4cec46406a52924579659bdf99b99e4fac91631c", "wait": "0"}
2019-03-06 10:01:24,261 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "fr", "message":
"start: process", "uuid": "4cec46406a52924579659bdf99b99e4fac91631c",
"scope": "oxf.fr.detail.process", "name": "review"}
2019-03-06 10:01:24,267 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "fr", "message":
"end: process", "time": "5 ms"}
2019-03-06 10:01:24,287 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "after cacheOrStore", "document cache current size": "9",
"document cache max size": "50"}
2019-03-06 10:01:24,287 INFO  ProcessorService  - /xforms-server - Timing:
47
2019-03-06 10:01:24,288 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "47 ms"}
2019-03-06 10:01:24,288 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
"message": "end: chain", "time": "57 ms"}
2019-03-06 10:01:24,288 INFO  lifecycle  - event: {"request": "94",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
"message": "end: filter", "time": "57 ms"}
2019-03-06 10:01:24,385 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
*"message": "start: nofilter", "path": "/xforms-server-submit", "method":
"POST"*}
2019-03-06 10:01:24,385 WARN  auth  - not setting credentials headers
because credentials are not found
2019-03-06 10:01:24,385 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle"}
2019-03-06 10:01:24,385 INFO  ProcessorService  - /xforms-server-submit -
Received request
2019-03-06 10:01:24,397 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "before document lock", "uuid":
"4cec46406a52924579659bdf99b99e4fac91631c"}
2019-03-06 10:01:24,397 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "got document lock", "path": "/xforms-server-submit", "method":
"POST", "uuid": "4cec46406a52924579659bdf99b99e4fac91631c", "wait": "0"}
2019-03-06 10:01:24,400 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "after cacheOrStore", "document cache current size": "9",
"document cache max size": "50"}
2019-03-06 10:01:24,400 INFO  lifecycle  - event: {"request": "96",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle", "path":
"/fr/General/Form_Name/view/9813b1cde6f7621cba5ebebaa34316573acfdb03",
"method": "POST"}
2019-03-06 10:01:24,400 INFO  ProcessorService  -
/fr/General/Form_Name/view/9813b1cde6f7621cba5ebebaa34316573acfdb03 -
Received request
2019-03-06 10:01:24,424 INFO  lifecycle  - event: {"request": "97",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle", "path":
"/fr/service/persistence/crud/General/Form_Name/form/form.xhtml", "method":
"GET"}
2019-03-06 10:01:24,424 INFO  ProcessorService  -
/fr/service/persistence/crud/General/Form_Name/form/form.xhtml - Received
request
2019-03-06 10:01:24,429 INFO  lifecycle  - event: {"request": "98",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle", "path":
"/fr/service/mysql/crud/General/Form_Name/form/form.xhtml", "method": "GET"}
2019-03-06 10:01:24,429 INFO  ProcessorService  -
/fr/service/mysql/crud/General/Form_Name/form/form.xhtml - Received request
2019-03-06 10:01:24,860 INFO  ProcessorService  -
/fr/service/mysql/crud/General/Form_Name/form/form.xhtml - Timing: 431
2019-03-06 10:01:24,861 INFO  lifecycle  - event: {"request": "98",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "432 ms"}
2019-03-06 10:01:24,862 INFO  ProcessorService  -
/fr/service/persistence/crud/General/Form_Name/form/form.xhtml - Timing: 438
2019-03-06 10:01:24,862 INFO  lifecycle  - event: {"request": "97",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "438 ms"}
2019-03-06 10:01:24,982 INFO  lifecycle  - event: {"request": "96",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "new form session", "uuid":
"4dab4378ea4d4ebcb5b9d855d7e91e09f4cbca4f"}
2019-03-06 10:01:25,083 INFO  lifecycle  - event: {"request": "96",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "xforms",
"message": "after cacheOrStore", "document cache current size": "10",
"document cache max size": "50"}
2019-03-06 10:01:25,110 INFO  ProcessorService  -
/fr/General/Form_Name/view/9813b1cde6f7621cba5ebebaa34316573acfdb03 -
Timing: 710
2019-03-06 10:01:25,110 INFO  lifecycle  - event: {"request": "96",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "710 ms"}
2019-03-06 10:01:25,112 INFO  ProcessorService  - /xforms-server-submit -
Timing: 727
2019-03-06 10:01:25,113 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "728 ms"}
2019-03-06 10:01:25,113 INFO  lifecycle  - event: {"request": "95",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
"message": "end: nofilter", "time": "728 ms"}
-------------------------------------------------------------------------------------------------------

Once I change the language this is the log:

----------------------------------------------------------------------------------------------------------
2019-03-06 10:06:59,302 INFO  lifecycle  - event: {"request": "99",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",*
"message": "start: nofilter", "path": "/xforms-server-submit", "method":
"GET"*}
2019-03-06 10:06:59,313 WARN  auth  - not setting credentials headers
because credentials are not found
2019-03-06 10:06:59,313 INFO  lifecycle  - event: {"request": "99",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "start: handle"}
2019-03-06 10:06:59,313 INFO  ProcessorService  - /xforms-server-submit -
Received request
2019-03-06 10:06:59,315 INFO  PageFlowControllerProcessor  - not found
{controller: "oxf:/page-flow.xml", method: "GET", path:
"/xforms-server-submit"}
2019-03-06 10:06:59,323 INFO  ProcessorService  - /xforms-server-submit -
Timing: 10
2019-03-06 10:06:59,324 INFO  lifecycle  - event: {"request": "99",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "service",
"message": "end: handle", "time": "10 ms"}
2019-03-06 10:06:59,324 INFO  lifecycle  - event: {"request": "99",
"session": "1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter",
"message": "end: nofilter", "time": "22 ms"}
-------------------------------------------------------------------------------------------------------

These messages suggest me that the controller wait for the method as *POST*,
but when I click on the "review" button the URL change with more parameters.

/Before/
Url: http://localhost:8181/web/guest/home
/After/
Url:
http://localhost:8181/web/guest/home?*p_p_id*=orbeonformsproxyportlet_WAR_proxyportlet_INSTANCE_F4bFPDu7OCdV&*p_p_lifecycle*=1&*p_p_state*=normal&*p_p_mode*=view&*_orbeonformsproxyportlet_WAR_proxyportlet_INSTANCE_F4bFPDu7OCdV_orbeon.path*=%2Fxforms-server-submit&*p_auth*=4K8pZVgZ

So, I change the language and redirect to:

http://localhost:8181/c/portal/update_language?p_l_id=20148&redirect=/web/guest/home?*p_p_id*=orbeonformsproxyportlet_WAR_proxyportlet_INSTANCE_F4bFPDu7OCdV&*p_p_lifecycle*=1&*p_p_state*=normal&*p_p_mode*=view&*_orbeonformsproxyportlet_WAR_proxyportlet_INSTANCE_F4bFPDu7OCdV_orbeon.path*=%2Fxforms-server-submit&*p_auth*=4K8pZVgZ&languageId=en_US


I can solve this problem in some way?

Thank!




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

Re: Error when I redirect to the review page of the form with Liferay

Alessandro  Vernet
Administrator
Hi,

You're saying "I get the following error", but I then don't see any error
message that you're quoting. And the extract from the log file doesn't
contain errors either. Maybe you intended to include a screenshot and it is
missing? If so, could you attach that screenshot to a response?

‑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: Error when I redirect to the review page of the form with Liferay

yosuare
Hello Alex,

I Sorry, here is the error in the browser when I change the lenguage.

<http://discuss.orbeon.com/file/t375731/error_change_lenguage.png>

About extract from the log not describe as ERROR but as INFO when it said:

INFO  PageFlowControllerProcessor  -* not found {controller:
"oxf:/page-flow.xml", method: "GET", path: "/xforms-server-submit"*}

But when I click in the review button the log about this "path" said that
service receive the petition as POST.

INFO  lifecycle  - event: {"request": "95", "session":
"1C5DE1BFF54FCAA16D0DEE60D4CC310D", "source": "limiter", "message": "start:
nofilter",* "path": "/xforms-server-submit", "method": "POST"*}

Thank!

Yosu.




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

Re: Error when I redirect to the review page of the form with Liferay

Alessandro  Vernet
Administrator
Got it Yosu, thank you for the screenshot, and I'll let Erik follow-up on
this one as he knows more about the Liferay integration. So you can expect
to see a message from him on this thread soon.

‑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: Error when I redirect to the review page of the form with Liferay

Erik Bruchez
Administrator
I reproduce this and I have entered an issue:

    https://github.com/orbeon/orbeon-forms/issues/3978

-Erik

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

Re: Error when I redirect to the review page of the form with Liferay

Erik Bruchez
Administrator
For reference, we now have a fix for this.

-Erik

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