Я запускаю приложение Spring Boot локально (используя локальный обход аутентификации Auth0).
Во время тестирования приложения я получаю Внутреннюю ошибку сервера HTTP 500. Проверив серверные журналы, я обнаружил следующее исключение:
Error Details from Logs:
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2026-02-04T11:21:22.478+05:30 WARN 15172 --- [ restartedMain] org.hibernate.orm.deprecation : HHH90000026: MySQL8Dialect has been deprecated; use org.hibernate.dialect.MySQLDialect instead
2026-02-04T11:21:28.515+05:30 ERROR 15172 --- [ restartedMain] com.sharefable.api.config.AppSettings : Something went wrong with getting #featurePerPlan argument "content" is null
2026-02-04T11:21:28.524+05:30 INFO 15172 --- [ restartedMain] com.sharefable.api.config.AppSettings : Settings loaded currentSchemaVersion=[V1] customDomainProxyClusters=[[]] onboardingTourIds=[150,151] migrationFlag=[false] dataEntryFlag=[false] featurePlanMatrix=[null], globalOpts=[null]
2026-02-04T11:21:29.430+05:30 WARN 15172 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2026-02-04T12:15:32.188+05:30 ERROR 15172 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
java.lang.NullPointerException: Cannot invoke "com.sharefable.api.service.UserService$UserClaimFromAuth0.email()" because "fableUser" is null
at com.sharefable.api.config.SentryUserInfoConfig.provideUser(SentryUserInfoConfig.java:27) ~[classes/:na]
at io.sentry.spring.jakarta.SentryUserFilter.doFilterInternal(SentryUserFilter.java:47) ~[sentry-spring-jakarta-6.28.0.jar:na]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.10.jar:6.0.10]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.10.jar:10.1.10]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.10.jar:10.1.10]
at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231) ~[spring-security-web-6.0.4.jar:6.0.4]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:365) ~[spring-security-web-6.0.4.jar:6.0.4]
at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:100) ~[spring-security-web-6.0.4.jar:6.0.4]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.0.4.jar:6.0.4]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) ~[spring-security-web-6.0.4.jar:6.0.4]
Локальная установка использует обход аутентификации (нет настоящего токена Auth0)
Я пытался запустить серверную часть из следующего общедоступного репозитория: https://github.com/sharefable/api
Я клонировал репозиторий и запустил его локально, используя предоставленные инструкции по установке. Приложение запускается успешно, но при взаимодействии с защищенными конечными точками я сталкиваюсь с упомянутым выше NullPointerException.
Я запускаю приложение Spring Boot локально (используя локальный обход аутентификации Auth0). Во время тестирования приложения я получаю [b]Внутреннюю ошибку сервера HTTP 500[/b]. Проверив серверные журналы, я обнаружил следующее исключение: [code]Error Details from Logs:
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts 2026-02-04T11:21:22.478+05:30 WARN 15172 --- [ restartedMain] org.hibernate.orm.deprecation : HHH90000026: MySQL8Dialect has been deprecated; use org.hibernate.dialect.MySQLDialect instead 2026-02-04T11:21:28.515+05:30 ERROR 15172 --- [ restartedMain] com.sharefable.api.config.AppSettings : Something went wrong with getting #featurePerPlan argument "content" is null 2026-02-04T11:21:28.524+05:30 INFO 15172 --- [ restartedMain] com.sharefable.api.config.AppSettings : Settings loaded currentSchemaVersion=[V1] customDomainProxyClusters=[[]] onboardingTourIds=[150,151] migrationFlag=[false] dataEntryFlag=[false] featurePlanMatrix=[null], globalOpts=[null] 2026-02-04T11:21:29.430+05:30 WARN 15172 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2026-02-04T12:15:32.188+05:30 ERROR 15172 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
java.lang.NullPointerException: Cannot invoke "com.sharefable.api.service.UserService$UserClaimFromAuth0.email()" because "fableUser" is null at com.sharefable.api.config.SentryUserInfoConfig.provideUser(SentryUserInfoConfig.java:27) ~[classes/:na] at io.sentry.spring.jakarta.SentryUserFilter.doFilterInternal(SentryUserFilter.java:47) ~[sentry-spring-jakarta-6.28.0.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.10.jar:6.0.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.10.jar:10.1.10] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.10.jar:10.1.10] at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231) ~[spring-security-web-6.0.4.jar:6.0.4] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:365) ~[spring-security-web-6.0.4.jar:6.0.4] at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:100) ~[spring-security-web-6.0.4.jar:6.0.4] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374) ~[spring-security-web-6.0.4.jar:6.0.4] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) ~[spring-security-web-6.0.4.jar:6.0.4]
[/code] Контекст [list] [*]Spring Boot 3.x
[*]Spring Security 6.x
[*]Интеграция Sentry Spring ([code]sentry-spring-jakarta-6.28.0[/code])
[*]Auth0 для аутентификации
[*]Локальная установка использует обход аутентификации (нет настоящего токена Auth0)
[/list] Я пытался запустить серверную часть из следующего общедоступного репозитория: https://github.com/sharefable/api Я клонировал репозиторий и запустил его локально, используя предоставленные инструкции по установке. Приложение запускается успешно, но при взаимодействии с защищенными конечными точками я сталкиваюсь с упомянутым выше NullPointerException.