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


Re: [Stripes-users] Empty requests parameters

2017-07-13 Thread Rick Grashel
Hi MJ,

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

Thanks.

-- Rick

On Thu, Jul 13, 2017 at 5:20 AM, MJ  wrote:

> 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
> 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-13 Thread Nestor Hernandez
Hi, can you show some code?. An ActionBean? It's hard to tell what is the
problem with no more information.

2017-07-13 5:20 GMT-05:00 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
> 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


[Stripes-users] Empty requests parameters

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