Re: [Stripes-users] Empty requests parameters

2017-07-19 Thread Luis Tiago Rico
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

2017-07-19 14:52 GMT+01:00 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
>
>
>
> On Wed, Jul 19, 2017 at 6:00 AM, MJ  wrote:
>
>> 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
>> Stripes-users@lists.sourceforge.net
>> 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
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


-- 
Luís Tiago Barreto Rico
--
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Empty requests parameters

2017-07-19 Thread 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



On Wed, Jul 19, 2017 at 6:00 AM, MJ  wrote:

> 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
> Stripes-users@lists.sourceforge.net
> 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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Empty requests parameters

2017-07-19 Thread MJ
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.

--
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Empty requests parameters

2017-07-19 Thread VANKEISBELCK Remi
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

2017-07-19 13:00 GMT+02:00 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
> Stripes-users@lists.sourceforge.net
> 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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Empty requests parameters

2017-07-19 Thread 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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users