Discussion:
[Stripes-users] Empty requests parameters
MJ
2017-07-13 10:20:40 UTC
Permalink
Hi all,

I have a serious problem with stripes, Several queries are erroneous with
empty parameters.
The framework is unable to answer request and i have no default handler
exception in the log.
Making the application unusable

This problem is random, in dev does not reproduce but in prod with for many
connected user the application unusable.

Thank you for your urgent help.



--
View this message in context: http://stripes.996289.n3.nabble.com/Empty-requests-parameters-tp18061.html
Sent from the stripes-users mailing list archive at Nabble.com.
Nestor Hernandez
2017-07-13 14:49:23 UTC
Permalink
Hi, can you show some code?. An ActionBean? It's hard to tell what is the
problem with no more information.
Post by MJ
Hi all,
I have a serious problem with stripes, Several queries are erroneous with
empty parameters.
The framework is unable to answer request and i have no default handler
exception in the log.
Making the application unusable
This problem is random, in dev does not reproduce but in prod with for many
connected user the application unusable.
Thank you for your urgent help.
--
View this message in context: http://stripes.996289.n3.
nabble.com/Empty-requests-parameters-tp18061.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
Rick Grashel
2017-07-13 15:05:23 UTC
Permalink
Hi MJ,

I agree with Nestor. If you can show some ActionBean code, this will help
a lot.

Thanks.

-- Rick
Post by MJ
Hi all,
I have a serious problem with stripes, Several queries are erroneous with
empty parameters.
The framework is unable to answer request and i have no default handler
exception in the log.
Making the application unusable
This problem is random, in dev does not reproduce but in prod with for many
connected user the application unusable.
Thank you for your urgent help.
--
View this message in context: http://stripes.996289.n3.
nabble.com/Empty-requests-parameters-tp18061.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
MJ
2017-07-19 11:00:19 UTC
Permalink
Hello,

Nothing special, a sample action bean like

@UrlBinding(Bindings.LOGIN)
public class LoginActionBean extends ActionBean {
@DefaultHandler
@HandlesEvent("connect")
public Resolution connect() throws Exception {
return new ForwardResolution(Resolutions.HOME);
}
}

I am using Glassfish 4 and Stripes 1.5.7, the problem is many request are
empty parameters in entry point of ActionBean, and i can't understand what
is wrong. NB: the some request work fine but sometimes server recive it with
empty parameters (1/10 request failed).

Thank you for your help.




--
View this message in context: http://stripes.996289.n3.nabble.com/Empty-requests-parameters-tp18061p18077.html
Sent from the stripes-users mailing list archive at Nabble.com.
VANKEISBELCK Remi
2017-07-19 11:45:48 UTC
Permalink
Hello,

Have you turned on logs ? Stripes can tell you everything it does, which
could help pinpoint the problem (binding/validation ? bean resolution ?
etc.).

HTH

Rémi
Post by MJ
Hello,
Nothing special, a sample action bean like
@UrlBinding(Bindings.LOGIN)
public class LoginActionBean extends ActionBean {
@DefaultHandler
@HandlesEvent("connect")
public Resolution connect() throws Exception {
return new ForwardResolution(Resolutions.HOME);
}
}
I am using Glassfish 4 and Stripes 1.5.7, the problem is many request are
empty parameters in entry point of ActionBean, and i can't understand what
is wrong. NB: the some request work fine but sometimes server recive it with
empty parameters (1/10 request failed).
Thank you for your help.
--
View this message in context: http://stripes.996289.n3.
nabble.com/Empty-requests-parameters-tp18061p18077.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
MJ
2017-07-19 13:25:09 UTC
Permalink
Hi Rémi,

Nothing in the log, stripes detecte the ActionBean URL, but with empty
parameter and excute the default handler.

Thanks



--
View this message in context: http://stripes.996289.n3.nabble.com/Empty-requests-parameters-tp18061p18079.html
Sent from the stripes-users mailing list archive at Nabble.com.
Rick Grashel
2017-07-19 13:52:34 UTC
Permalink
If the parameters are posted parameters are not being received by Stripes,
then something is hijacking the request before Stripes has a chance to
process them. If only 1 out of 10 requests fail, then you are try to find
the commonality where those requests fail.

My guess is that there is a defect in your application in certain
circumstances where it is consuming the request before the ActionBean has a
chance to have the parameters bound to it.

I also use Stripes on Glassfish 4, so I am very confident that it works
well. The only times I have encountered the situation you describe is when
I have a defect in an interceptor or Java filter which hijacks the request
before Stripes has a chance to perform binding.

Thanks.

-- Rick
Post by MJ
Hello,
Nothing special, a sample action bean like
@UrlBinding(Bindings.LOGIN)
public class LoginActionBean extends ActionBean {
@DefaultHandler
@HandlesEvent("connect")
public Resolution connect() throws Exception {
return new ForwardResolution(Resolutions.HOME);
}
}
I am using Glassfish 4 and Stripes 1.5.7, the problem is many request are
empty parameters in entry point of ActionBean, and i can't understand what
is wrong. NB: the some request work fine but sometimes server recive it with
empty parameters (1/10 request failed).
Thank you for your help.
--
View this message in context: http://stripes.996289.n3.
nabble.com/Empty-requests-parameters-tp18061p18077.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
Luis Tiago Rico
2017-07-19 15:32:37 UTC
Permalink
Hi,
I agree with Rick last message, specially if you can only reproduce this
problem in PROD environment as said.
Just guessing but, sounds like some of your requests are going trough a
load balancer / reverse proxy in PROD (like nginx) and there is url rewrite
rule stripping down the parameters!

Cheers
Post by Rick Grashel
If the parameters are posted parameters are not being received by Stripes,
then something is hijacking the request before Stripes has a chance to
process them. If only 1 out of 10 requests fail, then you are try to find
the commonality where those requests fail.
My guess is that there is a defect in your application in certain
circumstances where it is consuming the request before the ActionBean has a
chance to have the parameters bound to it.
I also use Stripes on Glassfish 4, so I am very confident that it works
well. The only times I have encountered the situation you describe is when
I have a defect in an interceptor or Java filter which hijacks the request
before Stripes has a chance to perform binding.
Thanks.
-- Rick
Post by MJ
Hello,
Nothing special, a sample action bean like
@UrlBinding(Bindings.LOGIN)
public class LoginActionBean extends ActionBean {
@DefaultHandler
@HandlesEvent("connect")
public Resolution connect() throws Exception {
return new ForwardResolution(Resolutions.HOME);
}
}
I am using Glassfish 4 and Stripes 1.5.7, the problem is many request are
empty parameters in entry point of ActionBean, and i can't understand what
is wrong. NB: the some request work fine but sometimes server recive it with
empty parameters (1/10 request failed).
Thank you for your help.
--
View this message in context: http://stripes.996289.n3.nabbl
e.com/Empty-requests-parameters-tp18061p18077.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
--
Luís Tiago Barreto Rico
Loading...