java.lang.NullPointerException on demo page

1,020 views
Skip to first unread message

Abderrazak EL YOUSFI

unread,
Jul 4, 2017, 10:25:19 AM7/4/17
to BigBlueButton-Setup
hi,
 
Every time i try to join a session on my server i got this error:

Status Code500
Exception Typenull
Messagenull
Exception
java.lang.NullPointerException
	at org.apache.jsp.demo1_jsp.getJoinURL(demo1_jsp.java:223)
	at org.apache.jsp.demo1_jsp._jspService(demo1_jsp.java:1302)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Root Cause

Header List
NameValue
x-forwarded-for172.26.5.7
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/59.0.3071.115 Safari/537.36
accepttext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
refererhttp://webconf.ensfea.fr/
accept-encodinggzip, deflate
accept-languagefr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
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=test&action=create
javax.servlet.error.status_code500
javax.servlet.jsp.jspExceptionjava.lang.NullPointerException
javax.servlet.error.request_uri/demo/demo1.jsp
javax.servlet.error.servlet_namejsp
javax.servlet.error.exceptionjava.lang.NullPointerException

my current configuration:

root@webconf:~# bbb-conf --check

BigBlueButton Server 1.1.0 (571)
                    Kernel version: 4.4.0-62-generic
                      Distribution: Ubuntu 16.04.2 LTS (64-bit)
                            Memory: 4046 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): webconf.ensfea.fr
                              red5: webconf.ensfea.fr
              useWebrtcIfAvailable: true

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

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: webconf.ensfea.fr
                              port: 80, [::]:80
                    bbb-client dir: /var/www/bigbluebutton

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

/var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp (API demos)
                               url: webconf.ensfea.fr

/var/www/bigbluebutton/check/conf/config.xml (client check)
                      client check: webconf.ensfea.fr

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

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: webconf.ensfea.fr


** Potential problems described below **
# Warning: API URL IPs do not match host:
#
#                                IP from ifconfig: 192.168.200.19
#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: webconf.ensfea.fr

....................
# Error: Could not connect to the configured hostname/IP address
#
#
# If your BigBlueButton server is behind a firewall, see FAQ.

# Error: Unable to connect to port 1935 (RTMP) on webconf.ensfea.fr

# 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:
#
#

# Error: Unable to reach default URL for presentation:
#
#
# Check value for beans.presentationService.defaultUploadedPresentation in
#   /var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties

Any idea what can cause that java error ?

Best regards

Abderrazak

Fred Dixon

unread,
Jul 4, 2017, 11:43:40 AM7/4/17
to bigbluebu...@googlegroups.com
Hi Abderrazak,

It looks like the server is unable to connect to itself.  Can you login via SSH and try


and see if it downloads.  If not, check the DNS entry for webconf.ensfea.fr and the firewall rules for the server.


Regards,... Fred


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



--
BigBlueButton Developer
@bigbluebutton

Abderrazak EL YOUSFI

unread,
Jul 5, 2017, 3:04:22 AM7/5/17
to BigBlueButton-Setup
Hello Mr DIXON,

First of all thank you for your quick reply, I launched the order below

Wget http://webconf.ensfea.fr/default.pdf

And I get the following result

Root @ webconf: ~ # wget http://webconf.ensfea.fr/default.pdf
--2017-07-05 08: 56: 37-- http://webconf.ensfea.fr/default.pdf
Resolution of webconf.ensfea.fr (webconf.ensfea.fr) ... 192.168.200.5
Connection to webconf.ensfea.fr (webconf.ensfea.fr) | 192.168.200.5 |: 80 ... failure: Connection refused.

Is this a blockage at the firewall?

cordially

Abderrazak.

Fred Dixon

unread,
Jul 5, 2017, 7:24:24 AM7/5/17
to bigbluebu...@googlegroups.com
When trying


we get

   400 Bad Request

  The plain HTTP request was sent to HTTPS port
  nginx/1.10.3 (Ubuntu)

Can you post the contents of

  /etc/nginx/sites-available/bigbluebutton


Regards,... Fred


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

Abderrazak EL YOUSFI

unread,
Jul 6, 2017, 4:37:33 AM7/6/17
to BigBlueButton-Setup
Hi Fred, We found with the system administrator, the problem was related to a 192.168.200.5 address that was referenced in the virtual machine, the administrator changed it to 192.168.200.19 and the bigbluebutton demo is doing well. Now the problem is at the SSL level. We have filed 4 files in the ssl directory created (root @ webconf: / etc / nginx / ssl # ls DBH-2048.pem Webconf_ensfea_en.crt webconf.ensfea.fr.key DigiCertCA.crt webconf.ensfea.fr.csr The system administrator modified the nginx.conf file and added the lines below because it does not understand the command, actually we already have the certificate files. # Cat> /etc/nginx/ssl/bigbluebutton.example.com.key << 'END'  ##         # SSL Settings         ##         Ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE         Ssl_prefer_server_ciphers on;         Ssl on;         #include /etc/nginx/ssl/DigiCertCA.crt;         Ssl_certificate /etc/nginx/ssl/webconf_ensfea_en.crt;         #include /etc/nginx/ssl/webconf.ensfea.fr.csr;         Ssl_certificate_key /etc/nginx/ssl/webconf.ensfea.fr.key;         ##   I then created the dhp-2048.pem file with the command # Openssl dhparam -out /etc/nginx/ssl/dhp-2048.pem 2048 I followed the procedure until the restart of bigbluebutton # Bbb-conf --restart When I go to the following address https://www.ssllabs.com/ssltest/ This server's certificate chain is incomplete. Grade capped to B. When I login to https://webconf.ensfea.fr I get the login page to start the demo of bigbluebutton but after entering the name and clicked "join", I have the error below which appears
Name Value
x-forwarded-for 172.26.4.22
host 127.0.0.1:8080
connection close
user-agent Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-language fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
accept-encoding gzip, deflate, br
referer https://webconf.ensfea.fr/
upgrade-insecure-requests 1
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_string username=toto&action=create
javax.servlet.error.status_code 500
javax.servlet.jsp.jspException java.lang.NullPointerException
javax.servlet.error.request_uri /demo/demo1.jsp
javax.servlet.error.servlet_name jsp
javax.servlet.error.exception java.lang.NullPointerException
When I run the command Wget https://webconf.ensfea.fr/default.pdf I get the result below Root @ webconf: / etc / nginx # wget https://webconf.ensfea.fr/default.pdf --2017-07-06 10: 21: 54-- https://webconf.ensfea.fr/default.pdf Resolution of webconf.ensfea.fr (webconf.ensfea.fr) ... 192.168.200.19 Sign in to webconf.ensfea.fr (webconf.ensfea.fr) | 192.168.200.19 |: 443 ... connected. Error: Can not check the webconf.ensfea.com attribute of the certificate, issued by "CN = TERENA SSL CA 3, O = TERENA, L = Amsterdam, ST = Noord-Holland, C = NL"   The authority of the issuer can not be verified locally. To establish an unsecured connection to webconf.ensfea.fr, use "--no-check-certificate". Thank you in advance for your help !!! Abderrazak.

Abderrazak EL YOUSFI

unread,
Jul 6, 2017, 4:44:04 AM7/6/17
to BigBlueButton-Setup
Hi Fred,


I forgot to submit the contents of the file / etc / nginx / sites-available / bigbluebutton Root @ webconf: / etc / nginx # vi / etc / nginx / sites-available / bigbluebutton           Keepalive_requests 1000000000;       }          # Handle desktop sharing tunneling. forwards          # Requests to Red5 on port 5080.        Location / deskshare {            Proxy_pass http://127.0.0.1:5080;            Proxy_redirect default;            Proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;            Client_max_body_size 10m;            Client_body_buffer_size 128k;            Proxy_connect_timeout 90;            Proxy_send_timeout 90;            Proxy_read_timeout 90;            Proxy_buffer_size 4k;            Proxy_buffers 4 32k;            Proxy_busy_buffers_size 64k;            Proxy_temp_file_write_size 64k;            Include fastcgi_params;        }         # BigBlueButton landing page.         Location / {           Root / var / www / bigbluebutton-default;           Index.html index.htm;           Expires 1m;         }         # Include specific rules for record and playback         Include /etc/bigbluebutton/nginx/*.nginx;         #error_page 404 /404.html;         # Redirect server error pages to the static page /50x.html         #         Error_page 500 502 503 504 /50x.html;         Location = /50x.html {                 Root / var / www / nginx-default;         } }


Thank you again for your help Cordially. Abderrazak

Fred Dixon

unread,
Jul 6, 2017, 6:30:07 AM7/6/17
to bigbluebu...@googlegroups.com
Hi Abderrazak,

I just tried opening your site in FireFox (https://webconf.ensfea.fr/) and got a certificate warning.  It looks like the configuration might be missing the intermediate certificate.

> The system administrator modified the nginx.conf file and added the lines below because it does not understand the command, 

You can try using the steps for LetsEncrypt


as we know they work.  Be sure to test your SSL certificate after configuration



Regards,... Fred

  

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