Error "500 java.lang.NullPointerException " after upgrading the BBB from 0.9 to 1.0.

1,025 views
Skip to first unread message

aayush kamboj

unread,
Oct 29, 2016, 8:34:44 AM10/29/16
to BigBlueButton-dev
Hi i i have tried upgrading my BBB server and its updated successfully without an error. but when i am creating the demo class getting below error. The same 500 error is coming through i am accessing it with API.



An Error has occured:

Status Code500
Exception Typenull
Messagenull
Exception
java.lang.NullPointerException
	at org.apache.jsp.demo1_jsp.getJoinURL(demo1_jsp.java:222)
	at org.apache.jsp.demo1_jsp._jspService(demo1_jsp.java:1278)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Root Cause

Header List
NameValue
x-forwarded-for42.111.44.247
host127.0.0.1:8080
connectionclose
upgrade-insecure-requests1
user-agentMozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
accepttext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
refererhttp://IP/
accept-encodinggzip, deflate, sdch
accept-languageen-US,en;q=0.8
Attribute List
javax.servlet.forward.request_uri/demo/demo1.jsp
javax.servlet.forward.context_path/demo
javax.servlet.forward.servlet_path/demo1.jsp
javax.servlet.forward.query_stringusername=aayush&action=create
javax.servlet.jsp.jspExceptionjava.lang.NullPointerException
javax.servlet.error.status_code500
javax.servlet.error.servlet_namejsp
javax.servlet.error.exceptionjava.lang.NullPointerException
javax.servlet.error.request_uri/demo/demo1.jsp

Fred Dixon

unread,
Oct 30, 2016, 11:59:20 AM10/30/16
to BigBlueButton-dev

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-dev+unsubscribe@googlegroups.com.
To post to this group, send email to bigbluebutton-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

aayush kamboj

unread,
Oct 31, 2016, 10:59:59 AM10/31/16
to BigBlueButton-dev
Hi Fred,

Thanks for reverting back. i have below configuration in the defined file and that is fine as per my Observation.


<%!
// This is the security salt that must match the value set in the BigBlueButton server
String salt = "b53fa16******************************";

// This is the URL for the BigBlueButton server
String BigBlueButtonURL = "http://69.64.94.183/bigbluebutton/";
%>
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.

Chad Pilkey

unread,
Oct 31, 2016, 1:02:30 PM10/31/16
to BigBlueButton-dev
You can use Mconf's BBB API Mate (http://mconf.github.io/api-mate/) to test out the raw calls to see which ones are failing. You just have to plug in your salt and server info.

Also, what are you getting back when you run "bbb-conf --check"?

aayush kamboj

unread,
Oct 31, 2016, 2:14:32 PM10/31/16
to bigblueb...@googlegroups.com
Hi Fred, 

Thanks for your revert again. I tried filling all the information related to server and salt and i am getting error 504 while accessing the api.


Also please find below the command "sudo bbb-conf --check"


bbb@ubuntu:~$ sudo bbb-conf --check

BigBlueButton Server 1.0.0 (1058)
                    Kernel version: 4.2.0-42-generic
                      Distribution: Ubuntu 14.04.5 LTS (64-bit)
                            Memory: 7981 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): 69.64.94.183
                              Red5: 69.64.94.183
              useWebrtcIfAvailable: true

/opt/freeswitch/conf/sip_profiles/external.xml (FreeSWITCH)
                    websocket port: 5066
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: 69.64.94.183
                              port: 80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: 69.64.94.183

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: 69.64.94.183

/var/www/bigbluebutton/check/conf/config.xml (client check)
                      client check: 69.64.94.183

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: 69.64.94.183


** Potential problems described below **
# Error: FreeSWITCH is listening on IP address 127.0.0.1 for SIP calls, but
# The IP address (69.64.94.183) set bbb.sip.app.ip.
#

# Warning: The API demos are installed and accessible from:
#
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo

# Warning: The client self check is installed and accessible from:
#


To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-dev+unsubscribe@googlegroups.com.
To post to this group, send email to bigbluebutton-dev@googlegroups.com.

aayush kamboj

unread,
Oct 31, 2016, 2:16:03 PM10/31/16
to BigBlueButton-dev
Hi, 

Thanks for your revert again. I tried filling all the information related to server and salt and i am getting error 503 while accessing the api.

Chad Pilkey

unread,
Oct 31, 2016, 2:26:31 PM10/31/16
to BigBlueButton-dev
Both codes basically mean that the service (bbb-web) was unavailable. Have you made any manual changes to configuration files? The result from "bbb-conf --check" shows that the wrong IP is set in one of the files.

aayush kamboj

unread,
Oct 31, 2016, 2:31:51 PM10/31/16
to BigBlueButton-dev
no i did not made any changes related to IP. i just followed the upgrading information given in the bbb doc for 0.9 to 1.0

aayush kamboj

unread,
Oct 31, 2016, 2:41:01 PM10/31/16
to BigBlueButton-dev
i have made change in "/usr/share/red5/webapp/sip/WEB-INF/bigbluebutton-sip.properties" now. i replaced the the public ip with localhost 127.0.0.1 and clean the bbb. i am getting the below response now on check command.

bbb@ubuntu:/usr/share/red5/webapps/sip/WEB-INF$ sudo bbb-conf --check
# Warning: The API demos are installed and accessible from:
#
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo

# Warning: The client self check is installed and accessible from:
#
#

Chad Pilkey

unread,
Oct 31, 2016, 2:46:47 PM10/31/16
to BigBlueButton-dev
Can you try running "bbb-conf --clean" which will restart everything and clean out the old log files. Then access the API. Then check "bbb-conf --debug".

The last command will hopefully  output an error message that can help track down the issue.

aayush kamboj

unread,
Oct 31, 2016, 2:54:45 PM10/31/16
to BigBlueButton-dev
Ran the clean command but got the same response again

Please find below logs of debig command.


bbb@ubuntu:/usr/share/red5/webapps/sip/WEB-INF$ sudo bbb-conf --debug

   -- Exceptions found in /var/lib/tomcat7/logs/ --
/var/lib/tomcat7/logs/catalina.out:java.lang.NullPointerException

bbb@ubuntu:/usr/share/red5/webapps/sip/WEB-INF$

Chad Pilkey

unread,
Oct 31, 2016, 2:59:41 PM10/31/16
to BigBlueButton-dev
That's the extent of my knowledge about bbb-web unfortunately. Everything looks fine on the surface, but it's still returning at 503 and I'm not sure what the potential scenarios are that could cause it.

aayush kamboj

unread,
Oct 31, 2016, 3:02:57 PM10/31/16
to BigBlueButton-dev
Thanks for the help

@Fred Need your support here. Please help. 

Fred Dixon

unread,
Nov 1, 2016, 6:49:38 AM11/1/16
to BigBlueButton-dev
Hi Aayush,

I just did a quick test on your server and was able to login to one of the demo meetings -- Did you resolve the issue.  What did you change to make the login from the API demos work?

Regards,... Fred

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-dev+unsubscribe@googlegroups.com.
To post to this group, send email to bigbluebutton-dev@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages