aerogear-push and sticky-session
by Kleber Rocha
Hello,
There any way to use aerogear-push with mod_cluster and sticky-session?
I configured a wildfly and mod_cluster, with two nodes, but session is lost
when changed the node.
Thanks
9 years, 9 months
NullPointerException when clicking on "Applications" or "Send Push" in webinterface
by J. Bilkes
Hi all,
In IRC I was referred to the mailing list to present the following error and
ask for help.
Situation:
I want to run the aerogear server locally and followed every step in the
guide for using aerogear with JBoss AS7.
DataSource is fine, deployment on AS7 went fine, only after logging into the
web interface i ran into trouble by getting an internal server error 500
when clicking on "Applications" or "Send Push".
It seems the searchManager is null. I'm not able nor willing to tweak
aerogear internals..
So does anyone know what i could tweak in my server or somewhere else to
solve this issue??
If anyone could help, it would be awesome!
Error log:
15:35:54,951 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field providers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,953 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field securityContext of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,955 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field uriInfo of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,956 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field headers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,958 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field request of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,960 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field response of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,962 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field session of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:54,964 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field clientConnection of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,141 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field providers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,143 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field securityContext of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,145 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field uriInfo of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,146 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field headers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,148 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field request of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,150 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field response of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,152 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field session of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:55,154 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field clientConnection of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,335 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field providers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,340 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field securityContext of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,346 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field uriInfo of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,348 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field headers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,350 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field request of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,352 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field response of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,355 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field session of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,357 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field clientConnection of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,462 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field providers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,465 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field securityContext of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,468 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field uriInfo of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,471 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field headers of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,473 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field request of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,475 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field response of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,477 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field session of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,479 WARN [org.jboss.resteasy.core.ResourceLocator]
(http-localhost-127.0.0.1-8080-1) Field clientConnection of subresource
org.keycloak.services.resources.TokenService will not be injected according
to spec
15:35:56,535 INFO [org.keycloak.adapters.as7.CatalinaRequestAuthenticator]
(http-localhost-127.0.0.1-8080-1) Bearer role: admin
15:35:56,542 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ag-push
].[org.jboss.aerogear.unifiedpush.rest.RestApplication]]
(http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet
org.jboss.aerogear.unifiedpush.rest.RestApplication threw exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(Syn
chronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDis
patcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(Synchro
nousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatc
her.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.j
ava:502) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.j
ava:119) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service
(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Http
ServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Http
ServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:248) [jbossweb-7.0.13.Final.jar:]
at
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPr
opagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:248) [jbossweb-7.0.13.Final.jar:]
at
org.jboss.aerogear.unifiedpush.rest.util.VersionFilter.doFilter(VersionFilte
r.java:62) [unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:248) [jbossweb-7.0.13.Final.jar:]
at
org.jboss.aerogear.unifiedpush.service.filter.HttpContextFilter.doFilter(Htt
pContextFilter.java:55)
[unifiedpush-service-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:248) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:275) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:161) [jbossweb-7.0.13.Final.jar:]
at
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserVa
lve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at
org.keycloak.adapters.as7.AuthenticatedActionsValve.invoke(AuthenticatedActi
onsValve.java:53) [keycloak-as7-adapter-1.0.4.Final.jar:]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:489) [jbossweb-7.0.13.Final.jar:]
at
org.keycloak.adapters.as7.KeycloakAuthenticatorValve.invoke(KeycloakAuthenti
catorValve.java:136) [keycloak-as7-adapter-1.0.4.Final.jar:]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityCon
textAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155
) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109) [jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
[jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]
Caused by: java.lang.NullPointerException
at
org.jboss.aerogear.unifiedpush.rest.AbstractBaseEndpoint.getSearch(AbstractB
aseEndpoint.java:91) [unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at
org.jboss.aerogear.unifiedpush.rest.registry.applications.PushApplicationEnd
point.listAllPushApplications(PushApplicationEndpoint.java:89)
[unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at
org.jboss.aerogear.unifiedpush.rest.registry.applications.PushApplicationEnd
point$Proxy$_$$_WeldClientProxy.listAllPushApplications(PushApplicationEndpo
int$Proxy$_$$_WeldClientProxy.java)
[unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_71]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
) [rt.jar:1.7.0_71]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43) [rt.jar:1.7.0_71]
at java.lang.reflect.Method.invoke(Method.java:606)
[rt.jar:1.7.0_71]
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:15
5) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:25
7) [resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
[resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
[resteasy-jaxrs-2.3.2.Final.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatc
her.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]
... 32 more
Bye,
J.Bilkes
9 years, 10 months