• 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.



 
Sheriff
Posts: 23874
50
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: 202
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 ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!