添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi am using Springboot 1.5.3 with this tutorial and I had this exception
web - 2017-06-02 20:14:05,199 [http-nio-8081-exec-3] ERROR o.m.w.e.RestResponseEntityExceptionHandler - 500 Status Code
j.v.ValidationException: HV000028: Unexpected exception during isValid call.
at o.h.v.i.e.c.ConstraintTree.validateSingleConstraint(ConstraintTree.java:451)
at o.h.v.i.e.c.ConstraintTree.validateConstraints(ConstraintTree.java:127)
at o.h.v.i.e.c.ConstraintTree.validateConstraints(ConstraintTree.java:87)
at o.h.v.i.m.c.MetaConstraint.validateConstraint(MetaConstraint.java:73)
at o.h.v.i.e.ValidatorImpl.validateMetaConstraint(ValidatorImpl.java:620)
... 95 frames truncated
Caused by: j.l.NullPointerException: null
at o.m.v.PasswordMatchesValidator.isValid(PasswordMatchesValidator.java:18)
at o.h.v.i.e.c.ConstraintTree.validateSingleConstraint(ConstraintTree.java:448)
... 99 common frames omitted

Hey @1988gadocansey - can you give me a bit more info on this one?
What module are you running exactly?
And what are the steps you're running in order to hit this NPE?

  • Spring Security Registration Tutorial
  • The Registration Process With Spring Security
  • Registration – Activate a New Account by Email
  • Registration with Spring Security – Password Encoding
  • Spring Security – Roles and Privileges
  • Prevent Brute Force Authentication Attempts with Spring Security
  • Spring Security – Reset Your Password
  • Spring Security Registration – Resend Verification Email
  • The Registration API becomes RESTful
  • Registration – Password Strength and Rules
  • Updating your Password
  • Registration - Integrate reCAPTCHA
  • Two Factor Auth with Spring Security
  • Registration with Spring – Integrate reCAPTCHA
  • Purging Expired Tokens Generated By The Registration
  • Build and Deploy the Project

    mvn clean install
    

    This is a Spring Boot project, so you can deploy it by simply using the main class: Application.java

    Set up MySQL

    mysql -u root -p 
    > CREATE USER 'tutorialuser'@'localhost' IDENTIFIED BY 'tutorialmy5ql';
    > GRANT ALL PRIVILEGES ON *.* TO 'tutorialuser'@'localhost';
    > FLUSH PRIVILEGES;
    

    Set up Email

    You need to configure the email by renaming file "email.properties.sample" to "email.properties" and provide your own username and password.
    You also need to use your own host, you can use Amazon or Google for example.
    You may also setup an email server locally. See "email.properties.localhost.sample" for more details.

    *Takoradi Polytechnic+233243348522, +233505284060* *[email protected] <[email protected]>*