This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

don't work update jsp mvc jdbc mysql  RSS feed

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm making the connection with mysql in the code below,


This is the servlet file that does the update



when it run the project leaves in the browser:

>HTTP Status 500 - Internal Server Error type Exception report messageInternal Server Error description: The server encountered an internal error that prevented it from fulfilling this request. exception **java.lang.NullPointerException**

>note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition

when it debug the project no error appears.



 
Marshal
Posts: 24492
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ives rodriguez wrote:>note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition



I strongly recommend you go and find that stack trace. It will tell you exactly what line of code threw the exception.

Don't hesitate to post back here if you need help in deciphering the stack trace.
 
ives rodriguez
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fix a problem with the database but when it run the project leaves in the browser:

Ha ocurrido un error: Ingresar solo Numeros...

does not retrieve the saved information that needs to be edited, does not appear the form with the information to edit.
 
Ranch Hand
Posts: 212
1
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ives,.

  When the debug mode start, does the debugger reaches the break point that you set ? Can you debug the code at which point err is thrown ?
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!