Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ma2tani
, 1 year ago
token if success, so it may be token-not-found exception if validation error. (validation error's response may need session token) For example: (x): public HtmlResponse update(Integer memberId) { verifyToken(...); // *Bad: session token is
org.lastaflute.web.token.exception.DoubleSubmitVerifyTokenBeforeValidationException: Look! Read the message below.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The verifyToken() was called before validate() in action.
[Advice]
The verifyToken() should be after validate().
The verifyToken() deletes session token if success,
so it may be token-not-found exception if validation error.
(validation error's response may need session token)
For example:
  (x):
    public HtmlResponse update(Integer memberId) {
        verifyToken(...); // *Bad: session token is deleted here
        validate(form, messages -> {}, () -> { // may be this exception if validation error
            return asHtml(path_...); // the html may need token...
        });
        ...
    }
  (o):
    public HtmlResponse update(Integer memberId) {
        validate(form, messages -> {}, () -> {
            return asHtml(path_...); // session token remains
        });
        verifyToken(...); // Good
        ...
    }
[Execute Method]
public HtmlResponse AdminDictSynonymAction@delete(EditForm)
[Requested Token]
opt:{e4670a3200e0e013595607123ce05a53}
[Saved Token]
opt:{{class org.codelibs.fess.app.web.admin.dict.synonym.AdminDictSynonymAction=e4670a3200e0e013595607123ce05a53, class org.codelibs.fess.app.web.admin.fileconfig.AdminFileconfigAction=d2d3aa563436c7898342874242e52b8f}}
* * * * * * * * * */	at org.lastaflute.web.token.SimpleDoubleSubmitManager.throwDoubleSubmitVerifyTokenBeforeValidationException(SimpleDoubleSubmitManager.java:349)	at org.lastaflute.web.token.SimpleDoubleSubmitManager.checkVerifyTokenAfterValidatorCall(SimpleDoubleSubmitManager.java:302)	at org.lastaflute.web.token.SimpleDoubleSubmitManager.doVerifyToken(SimpleDoubleSubmitManager.java:255)	at org.lastaflute.web.token.SimpleDoubleSubmitManager.verifyToken(SimpleDoubleSubmitManager.java:245)	at org.lastaflute.web.TypicalAction.verifyToken(TypicalAction.java:297)	at org.codelibs.fess.app.web.admin.dict.synonym.AdminDictSynonymAction.delete(AdminDictSynonymAction.java:312)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.lastaflute.web.ruts.GodHandableAction.invokeExecuteMethod(GodHandableAction.java:345)	at org.lastaflute.web.ruts.GodHandableAction.actuallyExecute(GodHandableAction.java:316)	at org.lastaflute.web.ruts.GodHandableAction.doExecute(GodHandableAction.java:156)	at org.lastaflute.web.ruts.GodHandableAction.lambda$transactionalExecute$148(GodHandableAction.java:147)