SourcePageNotFoundException issue with validators

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

SourcePageNotFoundException issue with validators

Chris Cheshire-2
I have an action that has a few properties with validation attached (@Validate), with a couple of further validation methods (@ValidationMethod).

There are two handlers, view (@DefaultHandler @DontValidate) and save.

There is an associated JSP with a stripes:form tag on it that view() forwards to.

All the validation works as it should, the handlers work just fine. However, there is one weird issue I have noticed while testing in development. I get a SPNFE if I upload and redeploy the action after creating a validation error and not refreshing the form.

Here is the sequence :
1) Call URL for the action, triggers view handler
2) Enter a value in the form which will trigger a validation error, either via the initial declaration validation or the subsequent validation methods
3) Page re-renders with errors
4) Change action code, upload and redeploy
5) Hit save button without refreshing the page and receive a SPNFE.

If I refresh the page between steps 4 and 5 and re-enter the invalid values then hit save, the exception is not generated.

Why do I need to refresh the page after redeploying action changes?

Chris


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: SourcePageNotFoundException issue with validators

Iwao AVE!
Hi Chris,

See http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/util/CryptoUtil.html
In short, you need to set Stripes.EncryptionKey parameter.

Regards,
Iwao


2014-03-05 0:06 GMT+09:00 Chris Cheshire <[hidden email]>:

> I have an action that has a few properties with validation attached
> (@Validate), with a couple of further validation methods
> (@ValidationMethod).
>
> There are two handlers, view (@DefaultHandler @DontValidate) and save.
>
> There is an associated JSP with a stripes:form tag on it that view()
> forwards to.
>
> All the validation works as it should, the handlers work just fine. However,
> there is one weird issue I have noticed while testing in development. I get
> a SPNFE if I upload and redeploy the action after creating a validation
> error and not refreshing the form.
>
> Here is the sequence :
> 1) Call URL for the action, triggers view handler
> 2) Enter a value in the form which will trigger a validation error, either
> via the initial declaration validation or the subsequent validation methods
> 3) Page re-renders with errors
> 4) Change action code, upload and redeploy
> 5) Hit save button without refreshing the page and receive a SPNFE.
>
> If I refresh the page between steps 4 and 5 and re-enter the invalid values
> then hit save, the exception is not generated.
>
> Why do I need to refresh the page after redeploying action changes?
>
> Chris
>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and
> the
> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: SourcePageNotFoundException issue with validators

Chris Cheshire-2
Cheers, that did the trick :)

Chris


On Tuesday, March 4, 2014 10:16 AM, Iwao AVE! <[hidden email]> wrote:
Hi Chris,

See http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/util/CryptoUtil.html
In short, you need to set Stripes.EncryptionKey parameter.

Regards,
Iwao


2014-03-05 0:06 GMT+09:00 Chris Cheshire <[hidden email]>:

> I have an action that has a few properties with validation attached
> (@Validate), with a couple of further validation methods
> (@ValidationMethod).
>
> There are two handlers, view (@DefaultHandler @DontValidate) and save.
>
> There is an associated JSP with a stripes:form tag on it that view()
> forwards to.
>
> All the validation works as it should, the handlers work just fine. However,
> there is one weird issue I have noticed while testing in development. I get
> a SPNFE if I upload and redeploy the action after creating a validation
> error and not refreshing the form.
>
> Here is the sequence :
> 1) Call URL for the action, triggers view handler
> 2) Enter a value in the form which will trigger a validation error, either
> via the initial declaration validation or the subsequent validation methods
> 3) Page re-renders with errors
> 4) Change action code, upload and redeploy
> 5) Hit save button without refreshing the page and receive a SPNFE.
>
> If I refresh the page between steps 4 and 5 and re-enter the invalid values
> then hit save, the exception is not generated.
>
> Why do I need to refresh the page after redeploying action changes?
>
> Chris
>
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and

> the

> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users

>



------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users