• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.apache.catalina.connector.CoyoteAdapter service

 
Ranch Hand
Posts: 100
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Team,

I have deployed a war file in tomcat and trying to login to the application. When I try to login to the application,I have updated the database details and the application is able to connect to the db fine. Once the user click on the login button, the control is taken to the LoginValidate.java servlet page. The request from the servlet does not contain the details specified by the user(i.e username/password). The request data is not being passed to the servlet and it throws the below NullPointer Error. The application got deployed fine and all the files/folders are generated fine. Im getting the below error.



When I try to debug the code via eclipse, Im getting the below error



Im not sure on the reason for the above error. Any help on this is much appreciated.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ignore the "CoyoteAdapterService" for the moment. You have a bug in your login servlet on line 77 where you are assuming that an object is valid and it's actually null.

Then again, my technical term for "login servlet" is "hacked", as even when they work, they're 90% likely to be insecure. Java has a built-in security system that can handle logins without any user code at all and I highly recommend using it. It's more secure and it was debugged well over a decade ago.
 
You may have just won ten million dollars! Or, maybe a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic