Jetty WARs errors

Running application packaged as two WARs using Jetty server results in error:

Caused by:
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [gdpr_OrganizationService]; nested exception is java.lang.NullPointerException

Same appliction runs fine with Tomcat fast deployment.

Hello @pavel

Could you describe the problem in more details? Is it possible to share the project? Please also attach full stacktrace of the exception.

Regards

Application responds to REST call storing and retrieving entities from database. Application starts in Jetty fine, exception occurs with incoming rest call and attempt to access middleware services from web module.

web-spring.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:gui="http://schemas.haulmont.com/cuba/spring/cuba-gui.xsd">
    <bean class="com.haulmont.cuba.web.sys.remoting.WebRemoteProxyBeanCreator">
        <property name="remoteServices">
            <map>
                <entry key="gdpr_PersonService" value="ru.mt.gdpr.service.PersonService"/>
                <entry key="gdpr_OrganizationService" value="ru.mt.gdpr.service.OrganizationService"/>
                <entry key="gdpr_GenerateKeyService" value="ru.mt.gdpr.service.GenerateKeyService"/>
                <entry key="gdpr_DocumentService" value="ru.mt.gdpr.service.DocumentService"/>
            </map>
        </property>
    </bean>

    <!-- Annotation-based beans -->
    <context:component-scan base-package="ru.mt.gdpr"/>

</beans>

Log:

2019-11-11 09:35:14.369:INFO:oejs.Server:main: jetty-9.4.7.v20180619
2019-11-11 09:35:14.402:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///home/aicar/deploy/gdpr_jetty/webapps/] at interval 1
2019-11-11 09:35:20.348:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=4578ms
2019-11-11 09:35:20.709:INFO:oejshC.gdpr:main: Initializing AtmosphereFramework
2019-11-11 09:35:20.723:INFO:oejshC.gdpr:main: No Spring WebApplicationInitializer types detected on classpath
2019-11-11 09:35:20.730:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2019-11-11 09:35:20.730:INFO:oejs.session:main: No SessionScavenger set, using defaults
2019-11-11 09:35:20.731:INFO:oejs.session:main: Scavenging every 660000ms
09:35:20.995 INFO  c.h.cuba.core.sys.AppComponents         - Using app components: [com.haulmont.cuba]
09:35:21.024 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from classpath:ru/mt/gdpr/web-app.properties
09:35:21.030 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from /WEB-INF/local.app.properties
09:35:22.759 INFO  c.h.c.c.s.r.d.StaticServerSelector      - Server URLs: [http://localhost:9080/gdpr-core/remoting]
09:35:22.772 INFO  c.h.c.c.s.r.RemoteProxyBeanCreator      - Configuring remote proxy beans: [cuba_LoginService, cuba_AuthenticationService, cuba_TrustedClientService, cuba_ServerInfoService, cuba_UserSettingService, cuba_UserManagementService, cuba_DataService, cuba_ConfigStorageService, cuba_PersistenceManagerService, cuba_LockService, cuba_UserSessionService, cuba_FoldersService, cuba_EmailService, cuba_FileStorageService, cuba_EntitySnapshotService, cuba_UniqueNumbersService, cuba_LocalizedMessageService, cuba_ResourceService, cuba_ScheduledTasksService, cuba_EntityLogService, cuba_TestingService, cuba_DomainDescriptionService, cuba_RelatedEntitiesService, cuba_EntitySqlGenerationService, cuba_NumberIdService, cuba_QueryResultsService, cuba_DynamicAttributesCacheService, cuba_EntityRestoreService, cuba_LocalFileExchangeService, cuba_EntityImportExportService, cuba_ServerTokenStore, cuba_ConstraintLocalizationService, cuba_AttributeAccessService, cuba_ExceptionReportService, cuba_BulkEditorDataService]
09:35:22.775 INFO  c.h.c.c.s.r.RemoteProxyBeanCreator      - Configuring remote proxy beans: [gdpr_PersonService, gdpr_OrganizationService, gdpr_GenerateKeyService, gdpr_DocumentService]
09:35:24.176 INFO  c.h.c.c.s.CubaThreadPoolTaskScheduler   - Initializing ExecutorService 'scheduler'
09:35:24.346 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [gdpr.cuba:type=ConfigStorage, gdpr.cuba:type=CachingFacade, gdpr.cuba:type=FileUploading, gdpr.cuba:type=JmxNodeIdentifier, gdpr.cuba:type=JmxLogControl, gdpr.cuba:type=ClassLoaderManager, gdpr.cuba:type=StatisticsCounter]
09:35:24.421 INFO  c.h.cuba.core.sys.MetadataImpl          - Initializing metadata
09:35:24.598 INFO  c.h.cuba.core.sys.MetadataImpl          - Metadata initialized in 176 ms
09:35:24.617 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - AppContext started
2019-11-11 09:35:24.694:INFO:oejshC.gdpr:main: Initializing Spring CubaDispatcherServlet 'dispatcher'
09:35:24.695 INFO  c.h.c.web.sys.CubaDispatcherServlet     - Initializing Servlet 'dispatcher'
09:35:25.611 INFO  c.h.c.web.sys.CubaDispatcherServlet     - Completed initialization in 916 ms
2019-11-11 09:35:25.612:INFO:oejshC.gdpr:main: Initializing Spring CubaRestApiServlet 'rest_api'
09:35:25.612 INFO  c.h.restapi.sys.CubaRestApiServlet      - Initializing Servlet 'rest_api'
09:35:26.778 INFO  s.d.s.w.PropertySourcedRequestMappingHandlerMapping- Mapped URL path [/swagger-api] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
09:35:26.799 INFO  s.d.s.w.p.DocumentationPluginsBootstrapper- Context refreshed
09:35:26.820 INFO  s.d.s.w.p.DocumentationPluginsBootstrapper- Found 1 custom documentation plugin(s)
09:35:26.897 INFO  s.d.s.w.s.ApiListingReferenceScanner    - Scanning for api listing references
09:35:27.126 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: cloneUsingGET_1
09:35:27.137 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: createUsingPOST_1
09:35:27.139 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: deleteUsingDELETE_1
09:35:27.144 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: findUsingGET_1
09:35:27.162 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: searchUsingGET_1
09:35:27.167 INFO  s.d.s.w.r.o.CachingOperationNameGenerator- Generating unique operation named: searchAllUsingGET_1
09:35:27.192 INFO  c.h.restapi.sys.CubaRestApiServlet      - Completed initialization in 1580 ms
2019-11-11 09:35:27.192:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@1817d444{/gdpr,[file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/object-fit-images-3.2.3.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/diff-match-patch-0.1.cuba.1.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/jquery-ui-1.12.1.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/ace-builds-1.1.9-1-cuba.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/jquery-file-upload-9.22.0.cuba.0.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/jquery-3.3.1.jar!/META-INF/resources, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr.war-_gdpr-any-3527724864566878972.dir/webapp/WEB-INF/lib/springfox-swagger-ui-2.9.2.jar!/META-INF/resources],AVAILABLE}{/gdpr.war}
2019-11-11 09:35:30.316:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=2198ms
2019-11-11 09:35:30.485:INFO:oejshC.gdpr_core:main: No Spring WebApplicationInitializer types detected on classpath
09:35:30.575 INFO  c.h.cuba.core.sys.AppComponents         - Using app components: [com.haulmont.cuba]
09:35:30.601 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from classpath:ru/mt/gdpr/app.properties
09:35:30.606 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from /WEB-INF/local.app.properties
09:35:30.658 INFO  c.h.cuba.core.sys.AppContextLoader      - DbmsType of the main database is set to postgres
09:35:30.802 INFO  c.h.c.c.s.p.PersistenceConfigProcessor  - Creating file /home/aicar/deploy/gdpr_home/gdpr-core/work/persistence.xml
09:35:34.200 INFO  c.h.c.c.s.CubaThreadPoolTaskScheduler   - Initializing ExecutorService 'scheduler'
09:35:34.317 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [gdpr-core.cuba:type=PersistenceManager, gdpr-core.cuba:type=ConfigStorage, gdpr-core.cuba:type=UserSessions, gdpr-core.cuba:type=UniqueNumbers, gdpr-core.cuba:type=Emailer, gdpr-core.cuba:type=EntityLog, gdpr-core.cuba:type=FileStorage, gdpr-core.cuba:type=LockManager, gdpr-core.cuba:type=CachingFacade, gdpr-core.cuba:type=ClusterManager, gdpr-core.cuba:type=ScriptingManager, gdpr-core.cuba:type=ServerInfo, gdpr-core.cuba:type=Scheduling, gdpr-core.cuba:type=PasswordEncryptionSupport, gdpr-core.cuba:type=JmxNodeIdentifier, gdpr-core.cuba:type=JmxLogControl, gdpr-core.cuba:type=ClassLoaderManager, gdpr-core.cuba:type=StatisticsCounter, gdpr-core.cuba:type=BruteForceProtection, gdpr-core.cuba:type=QueryCacheSupport, gdpr-core.cuba:type=ServerTokenStore]
09:35:34.450 INFO  c.h.cuba.core.sys.MetadataImpl          - Initializing metadata
09:35:34.581 INFO  c.h.cuba.core.sys.MetadataImpl          - Metadata initialized in 131 ms
09:35:34.763 INFO  c.h.c.c.sys.dbupdate.DbUpdaterEngine    - Updating database...
09:35:34.908 INFO  c.h.c.c.sys.dbupdate.DbUpdaterEngine    - Database is up-to-date
09:35:35.287 INFO  c.h.cuba.core.app.ConfigStorage         - Loading DB-stored app properties cache
09:35:35.611 INFO  c.h.c.c.s.DefaultPermissionValuesConfig - Initializing default permission values
09:35:35.727 INFO  c.h.c.s.a.AuthenticationManagerBean     - Logged in: 2003b54f-ddfe-177a-1f71-ff762550a1b5 [anonymous]
09:35:35.730 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - AppContext started
2019-11-11 09:35:35.753:INFO:oejshC.gdpr_core:main: Initializing Spring RemotingServlet 'remoting'
09:35:35.753 INFO  c.h.c.c.sys.remoting.RemotingServlet    - Initializing Servlet 'remoting'
09:35:35.778 INFO  c.h.c.c.s.r.RemoteServicesBeanCreator   - Configuring remote services
09:35:36.220 INFO  c.h.c.c.sys.remoting.RemotingServlet    - Completed initialization in 466 ms
2019-11-11 09:35:36.220:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@5f27d271{/gdpr-core,[file:///tmp/jetty-0.0.0.0-9080-gdpr-core.war-_gdpr-core-any-1008003546652051408.dir/webapp/, jar:file:///tmp/jetty-0.0.0.0-9080-gdpr-core.war-_gdpr-core-any-1008003546652051408.dir/webapp/WEB-INF/lib/springfox-swagger-ui-2.9.2.jar!/META-INF/resources],AVAILABLE}{/gdpr-core.war}
2019-11-11 09:35:36.363:INFO:oejs.AbstractConnector:main: Started ServerConnector@32818880{HTTP/1.1,[http/1.1]}{0.0.0.0:9080}
2019-11-11 09:35:36.363:INFO:oejs.Server:main: Started @22437ms
09:38:05.939 INFO  c.h.c.s.a.AuthenticationManagerBean     - Logged in: 41ef3955-3c96-3076-ead2-371af9e1ac56 [evcc]
09:38:06.193 INFO  c.h.r.auth.ClientProxyTokenStore        - REST API access token stored: [evcc] ***-cbcc2696e425
2019-11-11 09:38:06.291:WARN:oejs.HttpChannel:qtp36202360-16: /gdpr/rest/api/organization/ORG0000001
javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [gdpr_OrganizationService]; nested exception is java.lang.NullPointerException
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.Server.handle(Server.java:561)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
        at java.lang.Thread.run(Thread.java:748)
Caused by:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [gdpr_OrganizationService]; nested exception is java.lang.NullPointerException
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1013)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:206)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at com.haulmont.restapi.auth.CubaAnonymousAuthenticationFilter.doFilter(CubaAnonymousAuthenticationFilter.java:116)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
        at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:103)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.Server.handle(Server.java:561)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
        at java.lang.Thread.run(Thread.java:748)
Caused by:
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [gdpr_OrganizationService]; nested exception is java.lang.NullPointerException
        at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:231)
        at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:157)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy74.get(Unknown Source)
        at ru.mt.gdpr.controller.OrganizationController.findOne(OrganizationController.java:68)
        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:498)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:206)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at com.haulmont.restapi.auth.CubaAnonymousAuthenticationFilter.doFilter(CubaAnonymousAuthenticationFilter.java:116)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
        at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:103)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
        at org.eclipse.jetty.server.Server.handle(Server.java:561)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
        at java.lang.Thread.run(Thread.java:748)

Hello @tsarev

Do you have any ideas, what might be the cause?

Unfortunately the stacktrace does not contain information I needed. Have you tried to deploy the app into the Tomcat container?

It will save us a time if you’ll prepare or share a project to investigate the problem

Hello @tsarev

I’ve sent you project archive in PM. Please take a look.