Sreeju PK Posted July 2, 2020 Share Posted July 2, 2020 HTTP Status 500 – Internal Server Error Type Exception Report Message java.lang.NullPointerException Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: java.lang.NullPointerException org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:432) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Root Cause java.lang.NullPointerException org.red5.server.util.ScopeUtils.findRoot(ScopeUtils.java:103) io.antmedia.console.AdminApplication.getRootScope(AdminApplication.java:92) io.antmedia.console.AdminApplication.getApplications(AdminApplication.java:190) io.antmedia.console.AdminApplication.getApplicationInfo(AdminApplication.java:109) io.antmedia.console.rest.RestService.getApplicationInfo(RestService.java:569) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:243) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103) org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104) org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) org.glassfish.jersey.internal.Errors.process(Errors.java:316) org.glassfish.jersey.internal.Errors.process(Errors.java:298) org.glassfish.jersey.internal.Errors.process(Errors.java:268) org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703) org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/8.5.38 Link to comment Share on other sites More sharing options...
0 Selim Emre Posted July 3, 2020 Share Posted July 3, 2020 Hi Sreeju, It seems you did some changes in root application. If you say what you did, we can diagnose more accurately. Best Regards, SelimOn Thursday, July 2, 2020 at 12:46:48 PM UTC+3, Sreeju PK wrote: HTTP Status 500 – Internal Server Error Type Exception Report Message java.lang.NullPointerException Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: java.lang.NullPointerException org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:432) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Root Cause java.lang.NullPointerException org.red5.server.util.ScopeUtils.findRoot(ScopeUtils.java:103) io.antmedia.console.AdminApplication.getRootScope(AdminApplication.java:92) io.antmedia.console.AdminApplication.getApplications(AdminApplication.java:190) io.antmedia.console.AdminApplication.getApplicationInfo(AdminApplication.java:109) io.antmedia.console.rest.RestService.getApplicationInfo(RestService.java:569) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:243) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103) org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104) org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) org.glassfish.jersey.internal.Errors.process(Errors.java:316) org.glassfish.jersey.internal.Errors.process(Errors.java:298) org.glassfish.jersey.internal.Errors.process(Errors.java:268) org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703) org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/8.5.38 Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 3, 2020 Author Share Posted July 3, 2020 I had to update my WHM software and restart server. After that server stopped working Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Selim Emre Posted July 3, 2020 Share Posted July 3, 2020 Hi Sreeju, I think it's not just about WHM upgrade and restart server. Could you please share AMS logs(ant-media-server.log and antmedia-error.log) files. Log files are under this folder -> /usr/local/antmedia/logs/ Best Regards, Selim On Friday, July 3, 2020 at 8:38:45 PM UTC+3, Sreeju PK wrote: I had to update my WHM software and restart server. After that server stopped working Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 4, 2020 Author Share Posted July 4, 2020 Please find the log files attached. https://drive.google.com/file/d/14kkDGuDdnFALSvxO3rP4Mpg-oGNvaU_O/view?usp=sharing https://drive.google.com/file/d/1naN7lmvHB5G6QEt9dd6v2XiW76vPuy2K/view?usp=sharingOn Saturday, July 4, 2020 at 1:59:42 AM UTC+5:30, Selim Emre wrote:Hi Sreeju, I think it's not just about WHM upgrade and restart server. Could you please share AMS logs(ant-media-server.log and antmedia-error.log) files. Log files are under this folder -> /usr/local/antmedia/logs/ Best Regards, Selim On Friday, July 3, 2020 at 8:38:45 PM UTC+3, Sreeju PK wrote: I had to update my WHM software and restart server. After that server stopped working Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 7, 2020 Author Share Posted July 7, 2020 Hello Selim, Have you got a chance to look at my server logs yet? Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Selim Emre Posted July 7, 2020 Share Posted July 7, 2020 Hi Sreeju, Have a good day. I reviewed your logs. As I understand from your logs, your AMS is already running on your server. Are you trying with ./start.sh script? Best Regards, SelimOn Tuesday, July 7, 2020 at 9:13:43 AM UTC+3, Sreeju PK wrote: Hello Selim, Have you got a chance to look at my server logs yet? Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 7, 2020 Author Share Posted July 7, 2020 No, I was using service antmedia start/restart. Service is running fine but stream is in not working. When I login to the admin dashboard, it automatically logs out after few seconds . Console I can see errors as given below headers: t, status: 500, statusText: "OK", url: "https://camrebels.com:5443/rest/getApplicationsInfo", ok: false, {headers: t, status: 500, statusText: "OK", url: "https://camrebels.com:5443/rest/getApplications", ok: false, When trying to stream I am getting alert(WebSocketNotConnected) Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 8, 2020 Author Share Posted July 8, 2020 Basically the REST API calls are not working Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 8, 2020 Author Share Posted July 8, 2020 HTTP Status 500 – Internal Server Error Type Exception Report Message java.lang.NullPointerException Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: java.lang.NullPointerException org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:432) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Root Cause java.lang.NullPointerException org.red5.server.util.ScopeUtils.findRoot(ScopeUtils.java:103) io.antmedia.console.AdminApplication.getRootScope(AdminApplication.java:92) io.antmedia.console.rest.RestService.getSystemResourcesInfo(RestService.java:492) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191) org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:243) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103) org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104) org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277) org.glassfish.jersey.internal.Errors$1.call(Errors.java:272) org.glassfish.jersey.internal.Errors$1.call(Errors.java:268) org.glassfish.jersey.internal.Errors.process(Errors.java:316) org.glassfish.jersey.internal.Errors.process(Errors.java:298) org.glassfish.jersey.internal.Errors.process(Errors.java:268) org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703) org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84) Note The full stack trace of the root cause is available in the server logs. Above error when accessing the page /rest/getSystemResourcesInfo Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 8, 2020 Author Share Posted July 8, 2020 Basically the issue is the wss is not working wsConn = WebSocket {url: "wss://camrebels.com:5443/WebRTCApp/websocket", readyState: 0, bufferedAmount: 0, onopen: null, onerror: null, …} Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 8, 2020 Author Share Posted July 8, 2020 I have tryied reinstalling the latest community version now and this is what I get systemctl status antmedia.service● antmedia.service - AntMedia Loaded: loaded (/usr/lib/systemd/system/antmedia.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2020-07-08 07:16:07 EDT; 4s ago Process: 3597 ExecStop=/usr/bin/jsvc -stop -pidfile ${PID} org.red5.daemon.EngineLauncher 9999 (code=exited, status=255) Process: 15061 ExecStart=/usr/bin/jsvc -home ${JAVA_HOME} -user antmedia -cwd ${ANTMEDIA_HOME} -Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -cp ${ANTMEDIA_HOME}/commons-daemon-1.0.15.jar:${ANTMEDIA_HOME}/ant-media-server-service.jar:${ANTMEDIA_HOME}/conf -Djava.security.debug=failure -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dcatalina.home=${ANTMEDIA_HOME} -Dcatalina.useNaming=true -Dorg.terracotta.quartz.skipUpdateCheck=true -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=10 -XX:ConcGCThreads=5 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5599 -Dcom.sun.management.jmxremote.local.only=true -Dcom.sun.management.jmxremote.host=127.0.0.1 -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.useLocalHostname=true -Dcom.sun.management.jmxremote.rmi.port=5599 -XX:+HeapDumpOnOutOfMemoryError -Djava.library.path=/usr/local/antmedia/lib/native -Djava.library.path=/usr/local/antmedia/lib/native -Xverify:none -XX:+TieredCompilation -XX:+UseBiasedLocking -XX:InitialCodeCacheSize=8m -XX:ReservedCodeCacheSize=32m -errfile ${ANTMEDIA_HOME}/log/antmedia-error.log -Djava.net.preferIPv4Stack=true -Dorg.bytedeco.javacpp.maxbytes=0 -Dorg.bytedeco.javacpp.maxphysicalbytes=0 -umask 133 -pidfile ${PID} org.red5.daemon.EngineLauncher 9999 (code=exited, status=1/FAILURE) Main PID: 2813 (code=exited, status=0/SUCCESS)Jul 08 07:16:07 host.wavesideentertainment.com systemd[1]: antmedia.service: control process exited, code=exited status=1Jul 08 07:16:07 host.wavesideentertainment.com systemd[1]: Failed to start AntMedia.Jul 08 07:16:07 host.wavesideentertainment.com systemd[1]: Unit antmedia.service entered failed state.Jul 08 07:16:07 host.wavesideentertainment.com systemd[1]: antmedia.service failed.[root@host /usr/local/antmedia]# Thanks & Regards, Sreeju PK Link to comment Share on other sites More sharing options...
0 Sreeju PK Posted July 9, 2020 Author Share Posted July 9, 2020 I have installed the latest version of ant media community edition and its still not working. Please find attached log. On Tuesday, July 7, 2020 at 6:22:45 PM UTC+5:30, Selim Emre wrote:Hi Sreeju, Have a good day. I reviewed your logs. As I understand from your logs, your AMS is already running on your server. Are you trying with ./start.sh script? Best Regards, SelimOn Tuesday, July 7, 2020 at 9:13:43 AM UTC+3, Sreeju PK wrote: Hello Selim, Have you got a chance to look at my server logs yet? Thanks & Regards, Sreeju PK ant-media-server.zip Link to comment Share on other sites More sharing options...
Question
Sreeju PK
HTTP Status 500 – Internal Server Error
Type Exception Report
Message java.lang.NullPointerException
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
Root Cause
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/8.5.38
Link to comment
Share on other sites
Top Posters For This Question
10
3
Popular Days
Jul 8
4
Jul 3
3
Jul 7
3
Jul 2
1
Top Posters For This Question
Sreeju PK 10 posts
Selim Emre 3 posts
Popular Days
Jul 8 2020
4 posts
Jul 3 2020
3 posts
Jul 7 2020
3 posts
Jul 2 2020
1 post
12 answers to this question
Recommended Posts