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(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java: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(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.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(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.aerogear.unifiedpush.rest.util.VersionFilter.doFilter(VersionFilter.java:62) [unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.aerogear.unifiedpush.service.filter.HttpContextFilter.doFilter(HttpContextFilter.java:55) [unifiedpush-service-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.keycloak.adapters.as7.AuthenticatedActionsValve.invoke(AuthenticatedActionsValve.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(KeycloakAuthenticatorValve.java:136) [keycloak-as7-adapter-1.0.4.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.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(Http11Protocol.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(AbstractBaseEndpoint.java:91) [unifiedpush-jaxrs-1.1.0-alpha.1.jar:1.1.0-alpha.1]
at org.jboss.aerogear.unifiedpush.rest.registry.applications.PushApplicationEndpoint.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.PushApplicationEndpoint$Proxy$_$$_WeldClientProxy.listAllPushApplications(PushApplicationEndpoint$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:155) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [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(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]
... 32 more
Bye,
J.Bilkes
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users