Hello everyone, I have an error in a work project that took me the whole weekend and today, I am a junior Java developer, and my tech lead also tried to help me early today and couldn't, has anyone had this error, do you know how to solve it or how I can get to the error line, since the jsp file has fewer lines than it says in the log. https://gist.github.com/Together-Java-Bot/a87b6917022c258734e9634b2c12dd70
#jsp null issue
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
it's just a bunch of null errors
they all seem to bubble up at the same point
the thing is that i run this locally and everything is ok but when i deploy it on demo/UAT the jetty server gives me the error i send nullpointer and how can i find out if locally on my tomcat it runs everything ok 🤣 🤣 🤣
at com.gsc.portaltraderspricingsystem.servlet.PricingSystemServlet.doPost(PricingSystemServlet.java:246) at com.gsc.portaltraderspricingsystem.servlet.PricingSystemServlet.doGet(PricingSystemServlet.java:154)
is this your code?
I was doing refactoring on the legacy project, backend and frontend, but some lines I changed on the frontend... are all ruined
You're working on servlets and the technical lead isn't planning on making them join the choir invisible?
Like SquidXTV indicated one of your changes is seemingly triggering a NullPointerException, so a git diff might also be a good starting point.
Are you also certain that the initial files you started from match the deployed ones?
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
jsp null issue
Changed the title to jsp null issue.
yep, PsServlet now 😅
My tech lead just used/uses programming to get high positions, he is a nice guy, smart and etc, but sometimes I know some things or solve some things more than him
I spent almost the whole day today looking for differences that I made with git diff in intellij, and it returned something like it was before, but imagine trying something and being forced to deploy every time to know if it worked or not? lol, but I have no choice, and I haven't found the cause of this for now
I haven't validated this, but the deployment is done first with git merge in gitlab and with pipeline, there's no way I can generate a war with old stuff, but I can see this, I also have no more choices
You could also just debug remotely if it's enabled on the server.