Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inconsistant Code execution in jsp  RSS feed

 
Sanket Kulkarni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

In My Helpdesk application, whenever user raises a new ticket, i am updating/inserting record in 3-4 tables.
this update or insert code should (must) execute for each and every newly created request (at the time of creation).
But 5 out of 100 times it is not executing in a proper way. i.e. 2 tables are getting updated and other remains as it is, or 1 table remains as it is, (something like that).
Hence i am getting incomplete information for those tickets and hence creating problem for further processing..

Can anyone post suggestions for this issue??

Regards,

Sanket
 
Anirban Basu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the part of code you have written for inserting/editing data? See if you are getting any exception or not.

It would be a good idea to put some system outs after each important step and check if all the steps required for each request are getting execeuted or not. And check for the exceptions as well.

Hope this helps.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your code in the JSP or sequestered into Java classes? If the latter, things like this are easier to test on their own.
 
Sanket Kulkarni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anirban Basu:
Did you check the part of code you have written for inserting/editing data? See if you are getting any exception or not.

It would be a good idea to put some system outs after each important step and check if all the steps required for each request are getting execeuted or not. And check for the exceptions as well.

Hope this helps.


Thanks anirban,

I have some system outs at those lines, but they are not coming in tomcat for some tickets....and there for most of the tickets..
also tomcat is not giving any exception,,
I think i will have to check the common thing in those incomplete tickets..

regards
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!