• 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

Inconsistant Code execution in jsp

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic