I am create page Login in Spring Security and primefaces 7.0 with Theme Serenity, my problem is when load page Login , my app find bean GrestPreferences, and it's now not have user.
2019-09-27 17:01:19.728 ERROR 41292 --- [nio-8081-exec-1] o.p.a.e.PrimeExceptionHandler : Error creating bean with name 'scopedTarget.guestPreferences': Invocation of init method failed; nested exception is java.lang.NullPointerException
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.guestPreferences':
But, I register with a page by default of Spring-security, I not have problems with my application and configure the theme with SERENITY success.
I'm developed page Login, and setter Guest Preferences basicas, this bean is empty (configured theme default blue/blue), my question ? how reload my bean preferences with Bean-Preferences-of-my-user in my menu, with Java?????.
Error to create page login
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Please remove guestPreferences file from your project and edit links/class names that reference #{guestPreferences.???}
Best Regards,
Please remove guestPreferences file from your project and edit links/class names that reference #{guestPreferences.???}
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests