Jump to content
  • 0

antmedia server not working for me. Can anyone help me with the error below?


Sreeju PK
 Share

Question

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

  • Answers 12
  • Created
  • Last Reply

Top Posters For This Question

12 answers to this question

Recommended Posts

  • 0
Hi Sreeju,

It seems you did some changes in root application. If you say what you did, we can diagnose more accurately.

Best Regards,
Selim

On 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

  • 0
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

  • 0
Please find the log files attached.

https://drive.google.com/file/d/1naN7lmvHB5G6QEt9dd6v2XiW76vPuy2K/view?usp=sharing

On 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

  • 0
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,
Selim

On 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

  • 0
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

  • 0

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

  • 0
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=1
Jul 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

  • 0
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,
Selim

On 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...