#jsp null issue

1 messages · Page 1 of 1 (latest)

loud cliff
#

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

wanton berryBOT
#

<@&987246399047479336> please have a look, thanks.

wanton berryBOT
dusky flume
#

they all seem to bubble up at the same point

loud cliff
#

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 🤣 🤣 🤣

frosty jetty
#
at com.gsc.portaltraderspricingsystem.servlet.PricingSystemServlet.doPost(PricingSystemServlet.java:246)
at com.gsc.portaltraderspricingsystem.servlet.PricingSystemServlet.doGet(PricingSystemServlet.java:154)

is this your code?

loud cliff
#

I was doing refactoring on the legacy project, backend and frontend, but some lines I changed on the frontend... are all ruined

queen jolt
#

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?

wanton berryBOT
#

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.

loud cliff
loud cliff
loud cliff
queen jolt
#

You could also just debug remotely if it's enabled on the server.