Unknown Error - When Calling http://192.168.43.14:8080/gitora/main.html?name=Gitora

Hello,

I got the following error when I call http://192.168.43.14:8080/gitora/main.html?name=Gitora :slight_smile:
Tomcat server is started :

2020-01-23 22:16:12,055 ERROR [http-bio-8080-exec-2] co.gerger.bdf.view.BDFServlet: Unknown error
java.lang.NullPointerException: null
at co.gerger.bdf.view.BDFServlet.doPost(BDFServlet.java:192) ~[classes/:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) [servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at co.gerger.filters.GZIPFilter.doFilter(GZIPFilter.java:55) [classes/:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.69]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) [catalina.jar:7.0.69]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.69]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.69]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) [catalina.jar:7.0.69]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) [tomcat-coyote.jar:7.0.69]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-coyote.jar:7.0.69]
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-coyote.jar:7.0.69]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_232]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.69]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_232]

Hi Lazhar,

Looks like there is a problem with your database connection. Please make sure your database is up and running and then restart the tomcat and try again please.

Kind regards,

Hi Serdar,

Thanks for your answers, db was UP but the following files contains bad db HOST IP Adress (dynamic adress I got each time I start my VM):
/home/oracle/Gerger/GitoraServer/apache-tomcat-7.0.69/webapps/gitora/META-INF/context.xml
/home/oracle/Gerger/GitoraServer/apache-tomcat-7.0.69/webapps/gitora/WEB-INF/web.xml

After the modifcation the connection is OK, but I got a new error when I try to create a new repo (see new post).

Cheers
Lazhar

HI Serdar,

I found an old subject related to this problem, I solved my problem like that :

update gitora.T_BDF_SC_SETUP set value_tx=‘http://192.168.0.50:8080/gitora/’ where param_cd = ‘baseURL’;

SELECT * FROM dba_network_acls;
update dba_network_acls set host = ‘192.168.0.50’ where host = ‘192.168.0.12’;

I know I have to use hostname instead ip adress…

Hi Lazhar,

I am glad you solved your issue.

You are right about using an hostname if your IP address dynamic since the connection between the database and the Gitora middle-tier is bidirectional.

Kind regards,